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

Method AddOrderedInstruction

source/val/validation_state.cpp:571–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571Instruction* ValidationState_t::AddOrderedInstruction(
572 const spv_parsed_instruction_t* inst) {
573 ordered_instructions_.emplace_back(inst);
574 ordered_instructions_.back().SetLineNum(ordered_instructions_.size());
575 return &ordered_instructions_.back();
576}
577
578// Improves diagnostic messages by collecting names of IDs
579void ValidationState_t::RegisterDebugInstruction(const Instruction* inst) {

Callers 1

ProcessInstructionFunction · 0.80

Calls 4

emplace_backMethod · 0.80
SetLineNumMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected