summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2025-01-22 11:57:53 -0500
committerGitHub <noreply@github.com>2025-01-22 08:57:53 -0800
commit14211ec3c4e56e59f479dbac23123ea61eab7d91 (patch)
tree2ccc5c02bfbdfc3d34f077036b9ab8cd8c4d4def /source/slang/slang-emit.cpp
parentea98e24d304f99f9d49daa8d870a953bdf3d49e7 (diff)
Remove unnecessary parameters from Metal entry point signature (#6131)
* fix metal entry point global params * address review comments, cleanup and test * remove dead code * undo accidental change * address review comments and cleanup * minor fix and cleanup --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index d5c13121a..ea209b598 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -93,10 +93,8 @@
#include "slang-ir-ssa-simplification.h"
#include "slang-ir-ssa.h"
#include "slang-ir-string-hash.h"
-#include "slang-ir-strip-cached-dict.h"
#include "slang-ir-strip-default-construct.h"
-#include "slang-ir-strip-witness-tables.h"
-#include "slang-ir-strip.h"
+#include "slang-ir-strip-legalization-insts.h"
#include "slang-ir-synthesize-active-mask.h"
#include "slang-ir-translate-glsl-global-var.h"
#include "slang-ir-uniformity.h"
@@ -1501,12 +1499,10 @@ Result linkAndOptimizeIR(
break;
}
- stripCachedDictionaries(irModule);
-
// TODO: our current dynamic dispatch pass will remove all uses of witness tables.
// If we are going to support function-pointer based, "real" modular dynamic dispatch,
// we will need to disable this pass.
- stripWitnessTables(irModule);
+ stripLegalizationOnlyInstructions(irModule);
switch (target)
{