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

Function GetInlinedOperand

source/opt/debug_info_manager.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64uint32_t GetInlinedOperand(Instruction* dbg_inlined_at) {
65 assert(dbg_inlined_at);
66 assert(dbg_inlined_at->GetCommonDebugOpcode() ==
67 CommonDebugInfoDebugInlinedAt);
68 if (dbg_inlined_at->NumOperands() <= kDebugInlinedAtOperandInlinedIndex)
69 return kNoInlinedAt;
70 return dbg_inlined_at->GetSingleWordOperand(
71 kDebugInlinedAtOperandInlinedIndex);
72}
73
74bool IsEmptyDebugExpression(Instruction* instr) {
75 return (instr->GetCommonDebugOpcode() == CommonDebugInfoDebugExpression) &&

Callers 1

Calls 3

GetCommonDebugOpcodeMethod · 0.80
NumOperandsMethod · 0.80
GetSingleWordOperandMethod · 0.80

Tested by

no test coverage detected