summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-strip-cached-dict.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-ir-strip-cached-dict.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-ir-strip-cached-dict.cpp')
-rw-r--r--source/slang/slang-ir-strip-cached-dict.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/source/slang/slang-ir-strip-cached-dict.cpp b/source/slang/slang-ir-strip-cached-dict.cpp
deleted file mode 100644
index 202b3a4a2..000000000
--- a/source/slang/slang-ir-strip-cached-dict.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// slang-ir-strip-cached-dict.cpp
-#include "slang-ir-strip-cached-dict.h"
-
-#include "slang-ir-insts.h"
-
-namespace Slang
-{
-
-void stripCachedDictionaries(IRModule* module)
-{
- List<IRInst*> toRemove;
- for (auto inst : module->getGlobalInsts())
- {
- switch (inst->getOp())
- {
- case kIROp_GenericSpecializationDictionary:
- case kIROp_ExistentialFuncSpecializationDictionary:
- case kIROp_ExistentialTypeSpecializationDictionary:
- toRemove.add(inst);
- break;
- default:
- continue;
- }
- }
- for (auto inst : toRemove)
- inst->removeAndDeallocate();
-}
-
-} // namespace Slang