diff options
| author | Yong He <yonghe@outlook.com> | 2020-08-07 18:36:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-07 18:36:01 -0700 |
| commit | dd980b492aba9ea1540193434184489d9d04608d (patch) | |
| tree | 2974ad7462bc540729f1685ea6cf31d337f39648 /source/slang/slang-ir.cpp | |
| parent | 20af567033dedea15abb22fb7d344d116d7b99c5 (diff) | |
AnyValue packing/unpacking pass. (#1480)
* AnyValue packing/unpacking pass.
* Add diagnostic for types that does not fit in required AnyValueSize.
* Add expected test result
* Fix warnings.
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 2c9aee817..1a6187a92 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -2222,6 +2222,11 @@ namespace Slang return (IRBasicType*)getType(kIROp_IntType); } + IRBasicType* IRBuilder::getUIntType() + { + return (IRBasicType*)getType(kIROp_UIntType); + } + IRStringType* IRBuilder::getStringType() { return (IRStringType*)getType(kIROp_StringType); |
