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

Method GetDebugFunction

source/opt/debug_info_manager.h:112–115  ·  view source on GitHub ↗

Returns DebugFunction whose Function operand is |fn_id|. If it does not exist, return nullptr.

Source from the content-addressed store, hash-verified

110 // Returns DebugFunction whose Function operand is |fn_id|. If it does not
111 // exist, return nullptr.
112 Instruction* GetDebugFunction(uint32_t fn_id) {
113 auto dbg_fn_it = fn_id_to_dbg_fn_.find(fn_id);
114 return dbg_fn_it == fn_id_to_dbg_fn_.end() ? nullptr : dbg_fn_it->second;
115 }
116
117 // Clones DebugInlinedAt whose id is |clone_inlined_at_id|. If
118 // |clone_inlined_at_id| is not an id of DebugInlinedAt, returns nullptr.

Callers 1

TESTFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 1

TESTFunction · 0.64