summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-08-13 12:17:59 -0700
committerGitHub <noreply@github.com>2020-08-13 12:17:59 -0700
commit876968ccadf96ff592061c61855d77c6071f89f5 (patch)
tree7615ff80b7db8540d4a8034e699b3f1e3a58739e /source/slang/slang-emit.cpp
parent09adf10f646f01e177d412ba2d86602a51579b4f (diff)
IR support for Tuple types. (#1492)
* Tuple types. * Fix x86 warning * Improved deduplication Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 31ff3c4f9..0b09338b3 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -17,6 +17,7 @@
#include "slang-ir-legalize-varying-params.h"
#include "slang-ir-link.h"
#include "slang-ir-lower-generics.h"
+#include "slang-ir-lower-tuple-types.h"
#include "slang-ir-restructure.h"
#include "slang-ir-restructure-scoping.h"
#include "slang-ir-specialize.h"
@@ -323,6 +324,10 @@ Result linkAndOptimizeIR(
if (sink->getErrorCount() != 0)
return SLANG_FAIL;
+ lowerTuples(irModule, sink);
+ if (sink->getErrorCount() != 0)
+ return SLANG_FAIL;
+
// TODO(DG): There are multiple DCE steps here, which need to be changed
// so that they don't just throw out any non-entry point code
// Debugging code for IR transformations...