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

Method GetPointeeTypeId

source/opt/pass.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48uint32_t Pass::GetPointeeTypeId(const Instruction* ptrInst) const {
49 const uint32_t ptrTypeId = ptrInst->type_id();
50 const Instruction* ptrTypeInst = get_def_use_mgr()->GetDef(ptrTypeId);
51 return ptrTypeInst->GetSingleWordInOperand(kTypePointerTypeIdInIdx);
52}
53
54Instruction* Pass::GetBaseType(uint32_t ty_id) {
55 Instruction* ty_inst = get_def_use_mgr()->GetDef(ty_id);

Callers 1

ApplyReplacementsMethod · 0.80

Calls 3

type_idMethod · 0.45
GetDefMethod · 0.45

Tested by

no test coverage detected