From 73a61edda8893901acad05bb4e7d3110db5041a8 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 28 Feb 2024 22:57:07 -0800 Subject: [SPIRV] Add NonSemanticDebugInfo for step-through debugging. (#3644) * [SPIRV] Add NonSemanticDebugInfo for step-through debugging. * Fix. * Fix. --- source/slang/slang-ir-util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-ir-util.h') diff --git a/source/slang/slang-ir-util.h b/source/slang/slang-ir-util.h index c290f9392..648ba3531 100644 --- a/source/slang/slang-ir-util.h +++ b/source/slang/slang-ir-util.h @@ -167,8 +167,10 @@ inline IRInst* unwrapAttributedType(IRInst* type) IRType* dropNormAttributes(IRType* const t); void getTypeNameHint(StringBuilder& sb, IRInst* type); -void copyNameHintDecoration(IRInst* dest, IRInst* src); +void copyNameHintAndDebugDecorations(IRInst* dest, IRInst* src); IRInst* getRootAddr(IRInst* addrInst); +IRInst* getRootAddr(IRInst* addrInst, List& outAccessChain); + bool canAddressesPotentiallyAlias(IRGlobalValueWithCode* func, IRInst* addr1, IRInst* addr2); String dumpIRToString( -- cgit v1.2.3