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

Method GetTypes

source/opt/module.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40std::vector<Instruction*> Module::GetTypes() {
41 std::vector<Instruction*> type_insts;
42 for (auto& inst : types_values_) {
43 if (IsTypeInst(inst.opcode())) type_insts.push_back(&inst);
44 }
45 return type_insts;
46}
47
48std::vector<const Instruction*> Module::GetTypes() const {
49 std::vector<const Instruction*> type_insts;

Callers 2

AnalyzeTypesMethod · 0.80
ApplyMethod · 0.80

Calls 3

IsTypeInstFunction · 0.85
opcodeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected