Home
last modified time | relevance | path

Searched refs:SpvType (Results 1 – 3 of 3) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp119 SPIRVGlobalRegistry::getOrCreateConstIntReg(uint64_t Val, SPIRVType *SpvType, in getOrCreateConstIntReg() argument
124 if (SpvType) in getOrCreateConstIntReg()
125 LLVMIntTy = cast<IntegerType>(getTypeForSPIRVType(SpvType)); in getOrCreateConstIntReg()
133 unsigned BitWidth = SpvType ? getScalarOrVectorBitWidth(SpvType) : 32; in getOrCreateConstIntReg()
147 SPIRVType *SpvType, in getOrCreateConstInt() argument
149 assert(SpvType); in getOrCreateConstInt()
154 getOrCreateConstIntReg(Val, SpvType, nullptr, &I, &TII); in getOrCreateConstInt()
164 .addUse(getSPIRVTypeID(SpvType)); in getOrCreateConstInt()
165 addNumImm(APInt(getScalarOrVectorBitWidth(SpvType), Val), MIB); in getOrCreateConstInt()
169 .addUse(getSPIRVTypeID(SpvType)); in getOrCreateConstInt()
[all …]
H A DSPIRVGlobalRegistry.h217 uint64_t Val, SPIRVType *SpvType, MachineIRBuilder *MIRBuilder,
221 SPIRVType *SpvType,
227 SPIRVType *SpvType, bool EmitIR,
233 SPIRVType *SpvType = nullptr, bool EmitIR = true);
235 SPIRVType *SpvType, const SPIRVInstrInfo &TII);
237 SPIRVType *SpvType = nullptr);
239 SPIRVType *SpvType,
242 SPIRVType *SpvType,
245 SPIRVType *SpvType, bool EmitIR = true);
247 SPIRVType *SpvType, bool EmitIR = true);
[all …]
H A DSPIRVPreLegalizer.cpp306 SPIRVType *SpvType = GR.getSPIRVTypeForVReg(ValReg); in createNewIdReg() local
307 assert(SpvType && "VReg is expected to have SPIRV type"); in createNewIdReg()
308 bool IsFloat = SpvType->getOpcode() == SPIRV::OpTypeFloat; in createNewIdReg()
310 SpvType->getOpcode() == SPIRV::OpTypeVector && in createNewIdReg()
311 GR.getSPIRVTypeForVReg(SpvType->getOperand(1).getReg())->getOpcode() == in createNewIdReg()