diff options
| author | Yong He <yonghe@outlook.com> | 2024-08-18 21:57:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-18 21:57:24 -0700 |
| commit | ecf85df6eee3da76ef54b14e4ab083f22da89e46 (patch) | |
| tree | 4656f9c11a1f7f40550d469fecbcd7a16c541f52 /source/slang/core.meta.slang | |
| parent | ca5d303748517889a5d5849224671fa8945e1c6d (diff) | |
Variadic Generics Part 2: IR lowering and specialization. (#4849)
* Variadic Generics Part 2: IR lowering and specialization.
* Update design doc status.
* Update design doc.
* Resolve review comments.
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 695423285..6c51ccef0 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -870,6 +870,14 @@ bool operator!=(__none_t noneVal, Optional<T> val) return val.hasValue; } +__generic<each T> +__magic_type(TupleType) +struct Tuple +{ + __intrinsic_op($(0)) + __init(expand each T); +} + __generic<T> __magic_type(NativeRefType) __intrinsic_type($(kIROp_NativePtrType)) |
