summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.h
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-06-02 10:27:13 +0800
committerGitHub <noreply@github.com>2024-06-01 19:27:13 -0700
commit0bc89bc13251fedc9ed90cf473d2e6eb7fda3abf (patch)
tree564e5160660c8b65e9f7b9b15c1e7d3c0d863f11 /source/slang/slang-ir.h
parentc5a453e56985022deb820cbbb2ff5cd6a8347e34 (diff)
Prevent hoisting of non-hoistable instructions in non-function values with code (#4250)
Diffstat (limited to 'source/slang/slang-ir.h')
-rw-r--r--source/slang/slang-ir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-ir.h b/source/slang/slang-ir.h
index 3a5384e8d..9e8be7fc5 100644
--- a/source/slang/slang-ir.h
+++ b/source/slang/slang-ir.h
@@ -2538,6 +2538,9 @@ bool isBuiltin(IRInst* inst);
// Get the enclosuing function of an instruction.
IRFunc* getParentFunc(IRInst* inst);
+ // Is child a descendent of inst
+bool hasDescendent(IRInst* inst, IRInst* child);
+
// True if moving this inst will not change the semantics of the program
bool isMovableInst(IRInst* inst);