Lines Matching refs:ptrInst
82 Instruction* ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() local
83 while (ptrInst->opcode() == SpvOpCopyObject) { in IsPtr()
84 varId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in IsPtr()
85 ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr()
87 const SpvOp op = ptrInst->opcode(); in IsPtr()
90 const uint32_t varTypeId = ptrInst->type_id(); in IsPtr()
97 Instruction* ptrInst = get_def_use_mgr()->GetDef(*varId); in GetPtr() local
100 if (ptrInst->opcode() != SpvOpVariable && in GetPtr()
101 ptrInst->opcode() != SpvOpFunctionParameter) { in GetPtr()
102 varInst = ptrInst->GetBaseAddress(); in GetPtr()
104 varInst = ptrInst; in GetPtr()
112 while (ptrInst->opcode() == SpvOpCopyObject) { in GetPtr()
113 uint32_t temp = ptrInst->GetSingleWordInOperand(0); in GetPtr()
114 ptrInst = get_def_use_mgr()->GetDef(temp); in GetPtr()
117 return ptrInst; in GetPtr()