Lines Matching refs:inst
64 void Builder::postProcessType(const Instruction& inst, Id typeId)
73 switch (inst.getOpCode()) {
84 StorageClass storageClass = getStorageClass(inst.getIdOperand(0));
158 switch (inst.getImmediateOperand(1)) {
203 void Builder::postProcess(Instruction& inst)
206 switch (inst.getOpCode()) {
208 switch (inst.getImmediateOperand(1)) {
248 Instruction *accessChain = module.getInstruction(inst.getIdOperand(0));
303 assert(inst.getNumOperands() >= 3);
304 unsigned int memoryAccess = inst.getImmediateOperand((inst.getOpCode() == OpStore) ? 2 : 1);
309 if (inst.getOpCode() == OpStore)
312 alignment |= inst.getImmediateOperand(alignmentIdx);
316 inst.setImmediateOperand(alignmentIdx, alignment);
326 if (inst.getTypeId() != NoType)
327 postProcessType(inst, inst.getTypeId());
328 for (int op = 0; op < inst.getNumOperands(); ++op) {
329 if (inst.isIdOperand(op)) {
332 if (getTypeId(inst.getIdOperand(op)) != NoType)
333 postProcessType(inst, getTypeId(inst.getIdOperand(op)));
431 const Instruction& inst = *vi->get();
432 Id resultId = inst.getResultId();