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

Method MappedInst

source/diff/diff.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 return from < id_map_.size() ? id_map_[from] : 0;
89 }
90 const opt::Instruction* MappedInst(const opt::Instruction* from_inst) const {
91 assert(from_inst != nullptr);
92 assert(!from_inst->HasResultId());
93
94 auto mapped = inst_map_.find(from_inst);
95 if (mapped == inst_map_.end()) {
96 return nullptr;
97 }
98 return mapped->second;
99 }
100
101 bool IsMapped(uint32_t from) const {
102 assert(from != 0);

Callers 1

MappedInstImplMethod · 0.80

Calls 2

HasResultIdMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected