Home
last modified time | relevance | path

Searched refs:ResVReg (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp111 bool spvSelect(Register ResVReg, const SPIRVType *ResType,
114 bool selectGlobalValue(Register ResVReg, MachineInstr &I,
117 bool selectUnOpWithSrc(Register ResVReg, const SPIRVType *ResType,
120 bool selectUnOp(Register ResVReg, const SPIRVType *ResType, MachineInstr &I,
123 bool selectBitcast(Register ResVReg, const SPIRVType *ResType,
126 bool selectLoad(Register ResVReg, const SPIRVType *ResType,
130 bool selectStackSave(Register ResVReg, const SPIRVType *ResType,
134 bool selectMemOperation(Register ResVReg, MachineInstr &I) const;
136 bool selectAtomicRMW(Register ResVReg, const SPIRVType *ResType,
140 bool selectAtomicCmpXchg(Register ResVReg, const SPIRVType *ResType,
[all …]
H A DSPIRVPostLegalizer.cpp100 Register ResVReg = I.getOperand(i).getReg(); in processNewInstrs() local
101 SPIRVType *ResType = GR->getSPIRVTypeForVReg(ResVReg); in processNewInstrs()
105 MRI.setRegClass(ResVReg, &SPIRV::IDRegClass); in processNewInstrs()
106 MRI.setType(ResVReg, in processNewInstrs()
108 GR->assignSPIRVTypeToVReg(ResType, ResVReg, *GR->CurMF); in processNewInstrs()
116 Register ResVReg = I.getOperand(0).getReg(); in processNewInstrs() local
117 SPIRVType *ResVType = GR->getSPIRVTypeForVReg(ResVReg); in processNewInstrs()
127 MRI.setRegClass(ResVReg, &SPIRV::IDRegClass); in processNewInstrs()
128 MRI.setType(ResVReg, in processNewInstrs()
130 GR->assignSPIRVTypeToVReg(ResVType, ResVReg, *GR->CurMF); in processNewInstrs()
[all …]
H A DSPIRVGlobalRegistry.cpp603 Register ResVReg, SPIRVType *BaseType, StringRef Name, in buildGlobalVariable() argument
627 if (Reg != ResVReg) in buildGlobalVariable()
628 MIRBuilder.buildCopy(ResVReg, Reg); in buildGlobalVariable()
629 return ResVReg; in buildGlobalVariable()
633 .addDef(ResVReg) in buildGlobalVariable()
654 assert(MRI->getType(ResVReg).isPointer() && "Pointer type is expected"); in buildGlobalVariable()
655 if (Reg != ResVReg) { in buildGlobalVariable()
657 LLT::pointer(MRI->getType(ResVReg).getAddressSpace(), getPointerSize()); in buildGlobalVariable()
664 SPIRVType *DefType = getSPIRVTypeForVReg(ResVReg); in buildGlobalVariable()
723 Register ResVReg = createTypeVReg(MIRBuilder); in getOpTypeOpaque() local
[all …]
H A DSPIRVCallLowering.cpp520 Register ResVReg = in lowerCall() local
544 ResVReg, OrigRetTy, ArgVRegs, GR)) in lowerCall()
598 if (!ResVReg.isValid()) in lowerCall()
599 ResVReg = MIRBuilder.getMRI()->createVirtualRegister(&SPIRV::IDRegClass); in lowerCall()
600 SPIRVType *RetType = GR->assignTypeToVReg(OrigRetTy, ResVReg, MIRBuilder); in lowerCall()
604 .addDef(ResVReg) in lowerCall()