MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / IsDebugDeclare

Method IsDebugDeclare

source/opt/debug_info_manager.cpp:670–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670bool DebugInfoManager::IsDebugDeclare(Instruction* instr) {
671 if (!instr->IsCommonDebugInstr()) return false;
672 return instr->GetCommonDebugOpcode() == CommonDebugInfoDebugDeclare ||
673 GetVariableIdOfDebugValueUsedForDeclare(instr) != 0;
674}
675
676void DebugInfoManager::ReplaceAllUsesInDebugScopeWithPredicate(
677 uint32_t before, uint32_t after,

Callers 1

KillDebugDeclaresMethod · 0.80

Calls 2

IsCommonDebugInstrMethod · 0.80
GetCommonDebugOpcodeMethod · 0.80

Tested by

no test coverage detected