summaryrefslogtreecommitdiffstats
path: root/tests/compute/dynamic-generics-simple.slang
Commit message (Collapse)AuthorAge
* Fix#8082: Batch-6: Enable cuda tests (#8266)Harsh Aggarwal (NVIDIA)2025-08-25
|
* Enable lower-generics pass universally. (#1518)Yong He2020-08-28
| | | | | | | | | | | | | | | * Enable lower-generics pass universally. * Exclude builtin interfaces and functions from lower-generics pass. * Update stdlib. * Fixup. * Fixes handling of nested intrinsic generic functions. * Fixes. * Fixes.
* `AnyValue` based dynamic dispatch code gen (#1477)Yong He2020-08-05
| | | | | * AnyValue based dynamic code gen * Fix aarch64 build error
* Disable dynamic dispatch tests on CUDA - as fails with exception about ↵jsmall-nvidia2020-07-01
| | | | unhandled op. (#1425)
* Generate dynamic C++ code for the minimal test case. (#1391)Yong He2020-06-17
| | | | | | | | | | | | | * Add IR pass to lower generics into ordinary functions. * Fix project files * Emit dynamic C++ code for simple generics and witness tables. Fixes #1386. * Remove -dump-ir flag. * Fixups.
* Generate IRType for interfaces, and reference them as `operand[0]` in ↵Yong He2020-06-15
IRWitnessTable values (#1387) * Generate IRType for interfaces, and use them as the type of IRWitnessTable values. This results the following IR for the included test case: ``` [export("_S3tu010IInterface7Computep1pii")] let %1 : _ = key [export("_ST3tu010IInterface")] [nameHint("IInterface")] interface %IInterface : _(%1); [export("_S3tu04Impl7Computep1pii")] [nameHint("Impl.Compute")] func %Implx5FCompute : Func(Int, Int) { block %2( [nameHint("inVal")] param %inVal : Int): let %3 : Int = mul(%inVal, %inVal) return_val(%3) } [export("_SW3tu04Impl3tu010IInterface")] witness_table %4 : %IInterface { witness_table_entry(%1,%Implx5FCompute) } ``` * Fixes per code review comments. Moved interface type reference in IRWitnessTable from their type to operand[0]. * Fix typo in comment.