summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDietrich Geisler <dag368@cornell.edu>2020-07-27 12:14:17 -0400
committerGitHub <noreply@github.com>2020-07-27 09:14:17 -0700
commit348058f96e81d11da2698acf8343a99a199f1f24 (patch)
treeb795625654f7696b50e98127a9b745bdb8f68fc3 /source
parent87940a649e3b4f757905015de95225d57ec2f27c (diff)
Baseline Heterogeneous Example (#1460)
* Baseline Heterogeneous Example This PR introduces a baseline heterogeneous example, including both a Slang file and an associated C++ helper file. This refactoring primarily moves the Slang file "into the driver's seat" while maintaining that the C++ side still does most of the actual work. * Fix to prelude path
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-lower-to-ir.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp
index c72f7aca5..54e82848c 100644
--- a/source/slang/slang-lower-to-ir.cpp
+++ b/source/slang/slang-lower-to-ir.cpp
@@ -1416,6 +1416,12 @@ struct ValLoweringVisitor : ValVisitor<ValLoweringVisitor, LoweredValInfo, Lower
resultType);
}
+ IRType* visitPtrType(PtrType* type)
+ {
+ IRType* valueType = lowerType(context, type->getValueType());
+ return getBuilder()->getPtrType(valueType);
+ }
+
IRType* visitDeclRefType(DeclRefType* type)
{
auto declRef = type->declRef;