From 14211ec3c4e56e59f479dbac23123ea61eab7d91 Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:57:53 -0500 Subject: 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 --- source/slang/slang-ir-strip-cached-dict.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 source/slang/slang-ir-strip-cached-dict.cpp (limited to 'source/slang/slang-ir-strip-cached-dict.cpp') 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 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 -- cgit v1.2.3