summaryrefslogtreecommitdiff
path: root/source/slang/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/compiler.h')
-rw-r--r--source/slang/compiler.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h
index 845de5c81..fe3ee9533 100644
--- a/source/slang/compiler.h
+++ b/source/slang/compiler.h
@@ -448,6 +448,7 @@ namespace Slang
RefPtr<Type> errorType;
RefPtr<Type> initializerListType;
RefPtr<Type> overloadedType;
+ RefPtr<Type> constExprRate;
RefPtr<Type> irBasicBlockType;
Dictionary<int, RefPtr<Type>> builtinTypes;
@@ -467,6 +468,17 @@ namespace Slang
Type* getOverloadedType();
Type* getErrorType();
+ Type* getConstExprRate();
+ RefPtr<RateQualifiedType> getRateQualifiedType(
+ Type* rate,
+ Type* valueType);
+
+ RefPtr<RateQualifiedType> getConstExprType(
+ Type* valueType)
+ {
+ return getRateQualifiedType(getConstExprRate(), valueType);
+ }
+
// Should not be used in front-end code
Type* getIRBasicBlockType();