Home
last modified time | relevance | path

Searched refs:SPIRVType (Results 1 – 9 of 9) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.h25 using SPIRVType = const MachineInstr; variable
34 DenseMap<const MachineFunction *, DenseMap<Register, SPIRVType *>>
39 DenseMap<SPIRVType *, const Type *> SPIRVToLLVMType;
47 DenseMap<const Type *, SPIRVType *> ForwardPointerTypes;
53 SPIRVType *createSPIRVType(const Type *Type, MachineIRBuilder &MIRBuilder,
57 SPIRVType *findSPIRVType(const Type *Ty, MachineIRBuilder &MIRBuilder,
61 SPIRVType *
106 SPIRVType *assignTypeToVReg(const Type *Type, Register VReg,
111 SPIRVType *assignIntTypeToVReg(unsigned BitWidth, Register VReg,
113 SPIRVType *assignVectTypeToVReg(SPIRVType *BaseType, unsigned NumElements,
[all …]
H A DSPIRVGlobalRegistry.cpp28 SPIRVType *SPIRVGlobalRegistry::assignIntTypeToVReg(unsigned BitWidth, in assignIntTypeToVReg()
32 SPIRVType *SpirvType = getOrCreateSPIRVIntegerType(BitWidth, I, TII); in assignIntTypeToVReg()
37 SPIRVType *SPIRVGlobalRegistry::assignVectTypeToVReg( in assignVectTypeToVReg()
38 SPIRVType *BaseType, unsigned NumElements, Register VReg, MachineInstr &I, in assignVectTypeToVReg()
40 SPIRVType *SpirvType = in assignVectTypeToVReg()
46 SPIRVType *SPIRVGlobalRegistry::assignTypeToVReg( in assignTypeToVReg()
50 SPIRVType *SpirvType = in assignTypeToVReg()
56 void SPIRVGlobalRegistry::assignSPIRVTypeToVReg(SPIRVType *SpirvType, in assignSPIRVTypeToVReg()
75 SPIRVType *SPIRVGlobalRegistry::getOpTypeBool(MachineIRBuilder &MIRBuilder) { in getOpTypeBool()
80 SPIRVType *SPIRVGlobalRegistry::getOpTypeInt(uint32_t Width, in getOpTypeInt()
[all …]
H A DSPIRVInstructionSelector.cpp79 bool spvSelect(Register ResVReg, const SPIRVType *ResType,
85 bool selectUnOpWithSrc(Register ResVReg, const SPIRVType *ResType,
88 bool selectUnOp(Register ResVReg, const SPIRVType *ResType, MachineInstr &I,
91 bool selectLoad(Register ResVReg, const SPIRVType *ResType,
97 bool selectAtomicRMW(Register ResVReg, const SPIRVType *ResType,
100 bool selectAtomicCmpXchg(Register ResVReg, const SPIRVType *ResType,
105 bool selectAddrSpaceCast(Register ResVReg, const SPIRVType *ResType,
108 bool selectBitreverse(Register ResVReg, const SPIRVType *ResType,
111 bool selectConstVector(Register ResVReg, const SPIRVType *ResType,
114 bool selectCmp(Register ResVReg, const SPIRVType *ResType,
[all …]
H A DSPIRVBuiltins.cpp45 const SPIRVType *ReturnType;
49 const Register ReturnRegister, const SPIRVType *ReturnType, in IncomingCall()
153 Register ReturnRegister, const SPIRVType *ReturnType, in lookupBuiltin()
275 static std::tuple<Register, SPIRVType *>
276 buildBoolRegister(MachineIRBuilder &MIRBuilder, const SPIRVType *ResultType, in buildBoolRegister()
279 SPIRVType *BoolType = GR->getOrCreateSPIRVBoolType(MIRBuilder); in buildBoolRegister()
302 const SPIRVType *ReturnType, in buildSelectInst()
321 static Register buildLoadInst(SPIRVType *BaseType, Register PtrRegister, in buildLoadInst()
341 SPIRVType *VariableType, in buildBuiltinVariableLoad()
350 SPIRVType *PtrType = GR->getOrCreateSPIRVPointerType( in buildBuiltinVariableLoad()
[all …]
H A DSPIRVCallLowering.cpp225 SmallVector<SPIRVType *, 4> ArgTypeVRegs; in lowerFormalArguments()
309 SPIRVType *RetTy = GR->getOrCreateSPIRVType(FTy->getReturnType(), MIRBuilder); in lowerFormalArguments()
310 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments()
392 SPIRVType *SPIRVTy = GR->getOrCreateSPIRVType(Arg.Ty, MIRBuilder); in lowerCall()
425 SPIRVType *RetType = in lowerCall()
H A DSPIRVPreLegalizer.cpp145 static SPIRVType *propagateSPIRVType(MachineInstr *MI, SPIRVGlobalRegistry *GR, in propagateSPIRVType()
148 SPIRVType *SpirvTy = nullptr; in propagateSPIRVType()
195 Register insertAssignInstr(Register Reg, Type *Ty, SPIRVType *SpirvTy, in insertAssignInstr()
306 SPIRVType *SpvType = GR.getSPIRVTypeForVReg(ValReg); in createNewIdReg()
446 SPIRVType *Ty = GR->getSPIRVTypeForVReg(MI.getOperand(1).getReg()); in processSwitches()
458 SPIRVType *SpirvTy = GR->getOrCreateSPIRVType(LLVMTy, MIB); in processSwitches()
H A DSPIRVBuiltins.h48 SPIRVType *lowerBuiltinType(const StructType *Type,
H A DSPIRVLegalizerInfo.cpp277 static Register convertPtrToInt(Register Reg, LLT ConvTy, SPIRVType *SpirvType, in convertPtrToInt()
308 SPIRVType *SpirvTy = GR->getOrCreateSPIRVType(LLVMTy, Helper.MIRBuilder); in legalizeCustom()
H A DSPIRVModuleAnalysis.cpp733 SPIRVType *TypeDef = MRI.getVRegDef(MI.getOperand(2).getReg()); in addInstrRequirements()
806 SPIRVType *TypeDef = MRI.getVRegDef(TypeReg); in addInstrRequirements()