| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.cpp | 284 SPIRVType *SpvType, in getOrCreateConstFP() argument 293 return createConstFP(CF, I, SpvType, TII, ZeroAsNull); in getOrCreateConstFP() 297 MachineInstr &I, SPIRVType *SpvType, in createConstFP() argument 300 unsigned BitWidth = getScalarOrVectorBitWidth(SpvType); in createConstFP() 306 MachineInstr *DepMI = const_cast<MachineInstr *>(SpvType); in createConstFP() 315 .addUse(getSPIRVTypeID(SpvType)); in createConstFP() 319 .addUse(getSPIRVTypeID(SpvType)); in createConstFP() 335 SPIRVType *SpvType, in getOrCreateConstInt() argument 338 const IntegerType *Ty = cast<IntegerType>(getTypeForSPIRVType(SpvType)); in getOrCreateConstInt() 344 return createConstInt(CI, I, SpvType, TII, ZeroAsNull); in getOrCreateConstInt() [all …]
|
| H A D | SPIRVPreLegalizer.cpp | 294 SPIRVType *SpvType = nullptr; in propagateSPIRVType() local 298 SpvType = GR->getSPIRVTypeForVReg(Reg); in propagateSPIRVType() 299 if (!SpvType) { in propagateSPIRVType() 305 SpvType = GR->getOrCreateSPIRVType( in propagateSPIRVType() 315 SpvType = GR->getOrCreateSPIRVType( in propagateSPIRVType() 330 SpvType = GR->getOrCreateSPIRVIntegerType(ExpectedBW, MIB); in propagateSPIRVType() 332 SpvType = GR->getOrCreateSPIRVVectorType(SpvType, NumElements, in propagateSPIRVType() 340 SpvType = GR->getOrCreateSPIRVIntegerType( in propagateSPIRVType() 350 SpvType = propagateSPIRVType(Def, GR, MRI, MIB); in propagateSPIRVType() 356 if (SpvType) { in propagateSPIRVType() [all …]
|
| H A D | SPIRVGlobalRegistry.h | 474 SPIRVType *SpvType, 478 SPIRVType *SpvType, 485 SPIRVType *SpvType, bool EmitIR, 513 SPIRVType *SpvType, bool EmitIR, 516 SPIRVType *SpvType, const SPIRVInstrInfo &TII, 519 SPIRVType *SpvType, const SPIRVInstrInfo &TII, 521 Register getOrCreateConstFP(APFloat Val, MachineInstr &I, SPIRVType *SpvType, 525 SPIRVType *SpvType, const SPIRVInstrInfo &TII, 528 SPIRVType *SpvType = nullptr); 531 SPIRVType *SpvType, const SPIRVInstrInfo &TII, [all …]
|
| H A D | SPIRVUtils.cpp | 768 void setRegClassType(Register Reg, SPIRVType *SpvType, SPIRVGlobalRegistry *GR, in setRegClassType() argument 771 GR->assignSPIRVTypeToVReg(SpvType, Reg, MF); in setRegClassType() 773 MRI->setRegClass(Reg, GR->getRegClass(SpvType)); in setRegClassType() 774 MRI->setType(Reg, GR->getRegType(SpvType)); in setRegClassType() 792 Register createVirtualRegister(SPIRVType *SpvType, SPIRVGlobalRegistry *GR, in createVirtualRegister() argument 795 Register Reg = MRI->createVirtualRegister(GR->getRegClass(SpvType)); in createVirtualRegister() 796 MRI->setType(Reg, GR->getRegType(SpvType)); in createVirtualRegister() 797 GR->assignSPIRVTypeToVReg(SpvType, Reg, MF); in createVirtualRegister() 803 Register createVirtualRegister(SPIRVType *SpvType, SPIRVGlobalRegistry *GR, in createVirtualRegister() argument 805 return createVirtualRegister(SpvType, GR, MIRBuilder.getMRI(), in createVirtualRegister()
|
| H A D | SPIRVCallLowering.cpp | 609 SPIRVType *SpvType = GR->getSPIRVTypeForVReg(ArgReg); in lowerCall() local 610 if (!SpvType) { in lowerCall() 626 SpvType = GR->getOrCreateSPIRVType( in lowerCall() 628 GR->assignSPIRVTypeToVReg(SpvType, ArgReg, MF); in lowerCall() 635 MRI->setRegClass(ArgReg, SpvType ? GR->getRegClass(SpvType) in lowerCall() 639 SpvType ? GR->getRegType(SpvType) in lowerCall()
|
| H A D | SPIRVUtils.h | 459 void setRegClassType(Register Reg, const MachineInstr *SpvType, 462 Register createVirtualRegister(const MachineInstr *SpvType, 466 Register createVirtualRegister(const MachineInstr *SpvType,
|
| H A D | SPIRVLegalizerInfo.cpp | 342 static Register convertPtrToInt(Register Reg, LLT ConvTy, SPIRVType *SpvType, in convertPtrToInt() argument 347 MRI.setRegClass(ConvReg, GR->getRegClass(SpvType)); in convertPtrToInt() 348 GR->assignSPIRVTypeToVReg(SpvType, ConvReg, Helper.MIRBuilder.getMF()); in convertPtrToInt()
|
| H A D | SPIRVBuiltins.cpp | 606 SPIRVType *SpvType = GR->getSPIRVTypeForVReg(Reg); in setRegClassIfNull() local 608 SpvType ? GR->getRegClass(SpvType) : &SPIRV::iIDRegClass); in setRegClassIfNull() 2851 SPIRVType *SpvType = GR->getSPIRVTypeForVReg(OrigRet); in lowerBuiltin() local 2852 assert(SpvType && "Inconsistent return register: expected valid type info"); in lowerBuiltin() 2854 lookupBuiltin(DemangledCall, Set, OrigRet, SpvType, Args); in lowerBuiltin()
|