Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp104 bool spvSelect(Register ResVReg, const SPIRVType *ResType,
107 bool selectFirstBitHigh(Register ResVReg, const SPIRVType *ResType,
110 bool selectFirstBitLow(Register ResVReg, const SPIRVType *ResType,
113 bool selectFirstBitSet16(Register ResVReg, const SPIRVType *ResType,
117 bool selectFirstBitSet32(Register ResVReg, const SPIRVType *ResType,
121 bool selectFirstBitSet64(Register ResVReg, const SPIRVType *ResType,
125 bool selectFirstBitSet64Overflow(Register ResVReg, const SPIRVType *ResType,
130 bool selectGlobalValue(Register ResVReg, MachineInstr &I,
133 bool selectOpWithSrcs(Register ResVReg, const SPIRVType *ResType,
137 bool selectUnOp(Register ResVReg, const SPIRVType *ResType, MachineInstr &I,
[all …]
H A DSPIRVPostLegalizer.cpp82 Register ResVReg = I.getOperand(i).getReg(); in processNewInstrs() local
83 SPIRVType *ResType = GR->getSPIRVTypeForVReg(ResVReg); in processNewInstrs()
87 setRegClassType(ResVReg, ResType, GR, &MRI, *GR->CurMF, true); in processNewInstrs()
95 Register ResVReg = I.getOperand(0).getReg(); in processNewInstrs() local
99 bool IsKnownReg = MRI.getRegClassOrNull(ResVReg); in processNewInstrs()
101 IsKnownReg ? ResVReg : I.getOperand(1).getReg()); in processNewInstrs()
106 setRegClassType(ResVReg, ResVType, GR, &MRI, *GR->CurMF, true); in processNewInstrs()
110 processInstr(I, MIB, MRI, GR, GR->getSPIRVTypeForVReg(ResVReg)); in processNewInstrs()
111 if (IsKnownReg && MRI.hasOneUse(ResVReg)) { in processNewInstrs()
112 MachineInstr &UseMI = *MRI.use_instr_begin(ResVReg); in processNewInstrs()
[all …]
H A DSPIRVCallLowering.cpp579 Register ResVReg = in lowerCall() local
585 if (ResVReg.isValid()) { in lowerCall()
586 if (!GR->getSPIRVTypeForVReg(ResVReg)) { in lowerCall()
597 setRegClassType(ResVReg, RetTy, GR, MIRBuilder, in lowerCall()
601 ResVReg = createVirtualRegister(OrigRetTy, GR, MIRBuilder, in lowerCall()
646 MIRBuilder, ResVReg, OrigRetTy, ArgVRegs, GR)) in lowerCall()
710 if (!ResVReg.isValid()) in lowerCall()
711 ResVReg = MIRBuilder.getMRI()->createVirtualRegister(&SPIRV::iIDRegClass); in lowerCall()
713 OrigRetTy, ResVReg, MIRBuilder, SPIRV::AccessQualifier::ReadWrite, true); in lowerCall()
717 .addDef(ResVReg) in lowerCall()
[all …]
H A DSPIRVGlobalRegistry.cpp701 Register ResVReg, SPIRVType *BaseType, StringRef Name, in buildGlobalVariable() argument
727 if (Reg != ResVReg) in buildGlobalVariable()
728 MIRBuilder.buildCopy(ResVReg, Reg); in buildGlobalVariable()
729 return ResVReg; in buildGlobalVariable()
733 .addDef(ResVReg) in buildGlobalVariable()
753 if (Reg != ResVReg) { in buildGlobalVariable()
755 LLT::pointer(MRI->getType(ResVReg).getAddressSpace(), getPointerSize()); in buildGlobalVariable()
762 SPIRVType *DefType = getSPIRVTypeForVReg(ResVReg); in buildGlobalVariable()
861 Register ResVReg = createTypeVReg(MIRBuilder); in getOpTypeOpaque() local
863 auto MIB = MIRBuilder.buildInstr(SPIRV::OpTypeOpaque).addDef(ResVReg); in getOpTypeOpaque()
[all …]
H A DSPIRVPreLegalizer.cpp176 Register ResVReg, Register OpReg) { in buildOpBitcast() argument
177 SPIRVType *ResType = GR->getSPIRVTypeForVReg(ResVReg); in buildOpBitcast()
183 if (!MRI->getRegClassOrNull(ResVReg)) in buildOpBitcast()
184 MRI->setRegClass(ResVReg, GR->getRegClass(ResType)); in buildOpBitcast()
186 MIB.buildInstr(TargetOpcode::COPY).addDef(ResVReg).addUse(OpReg); in buildOpBitcast()
189 .addDef(ResVReg) in buildOpBitcast()