Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.h48 SPIRVType *
52 SPIRVType *findSPIRVType(
101 SPIRVType *assignTypeToVReg(
107 SPIRVType *assignVectTypeToVReg(SPIRVType *BaseType, unsigned NumElements,
177 SPIRVType *getOpTypeVector(uint32_t NumElems, SPIRVType *ElemType,
180 SPIRVType *getOpTypeArray(uint32_t NumElems, SPIRVType *ElemType,
189 SPIRVType *getOpTypePointer(SPIRV::StorageClass SC, SPIRVType *ElemType,
195 SPIRVType *getOpTypeFunction(SPIRVType *RetType,
201 SPIRVType *finishCreatingSPIRVType(const Type *LLVMTy, SPIRVType *SpirvType);
230 SPIRVType *getOrCreateSPIRVVectorType(SPIRVType *BaseType,
[all …]
H A DSPIRVGlobalRegistry.cpp39 SPIRVType *SpirvType = in assignVectTypeToVReg()
49 SPIRVType *SpirvType = in assignTypeToVReg()
454 SPIRVType *
463 SPIRVType *RetType, const SmallVectorImpl<SPIRVType *> &ArgTypes, in getOpTypeFunction()
526 SPIRVType *El = in createSPIRVType()
549 SPIRVType *SpvElementType; in createSPIRVType()
619 SPIRVType *STy2 = CU.second; in getOrCreateSPIRVType()
686 SPIRVType *
717 SPIRVType *
724 SPIRVType *
[all …]
H A DSPIRVInstructionSelector.cpp74 bool spvSelect(Register ResVReg, const SPIRVType *ResType,
86 bool selectLoad(Register ResVReg, const SPIRVType *ResType,
109 bool selectCmp(Register ResVReg, const SPIRVType *ResType,
112 bool selectICmp(Register ResVReg, const SPIRVType *ResType,
136 const SPIRVType *intTy, const SPIRVType *boolTy,
151 bool selectGEP(Register ResVReg, const SPIRVType *ResType,
160 bool selectPhi(Register ResVReg, const SPIRVType *ResType,
579 SPIRVType *SpvValTy = GR.getSPIRVTypeForVReg(Val); in selectAtomicCmpXchg()
660 SPIRVType *SrcPtrTy = GR.getSPIRVTypeForVReg(SrcPtr); in selectAddrSpaceCast()
875 const SPIRVType *SpvI32Ty = in buildI32Constant()
[all …]
H A DSPIRVCallLowering.cpp126 SmallVector<SPIRVType *, 4> ArgTypeVRegs; in lowerFormalArguments()
215 SPIRVType *RetTy = GR->getOrCreateSPIRVType(FTy->getReturnType(), MIRBuilder); in lowerFormalArguments()
216 SPIRVType *FuncTy = GR->getOrCreateOpTypeFunctionWithArgs( in lowerFormalArguments()
310 SPIRVType *RetType = in lowerCall()
H A DSPIRVPreLegalizer.cpp146 static SPIRVType *propagateSPIRVType(MachineInstr *MI, SPIRVGlobalRegistry *GR, in propagateSPIRVType()
149 SPIRVType *SpirvTy = nullptr; in propagateSPIRVType()
194 static Register insertAssignInstr(Register Reg, Type *Ty, SPIRVType *SpirvTy, in insertAssignInstr()
301 SPIRVType *SpvType = GR.getSPIRVTypeForVReg(ValReg); in createNewIdReg()
422 SPIRVType *SpirvTy = GR->getOrCreateSPIRVType(LLVMTy, MIB); in processSwitches()
H A DSPIRVLegalizerInfo.cpp262 static Register convertPtrToInt(Register Reg, LLT ConvTy, SPIRVType *SpirvType, in convertPtrToInt()
293 SPIRVType *SpirvTy = GR->getOrCreateSPIRVType(LLVMTy, Helper.MIRBuilder); in legalizeCustom()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVTypes.h41 class SPIRVType : public Type {
79 class ScalarType : public SPIRVType {
81 using SPIRVType::SPIRVType;
90 void getExtensions(SPIRVType::ExtensionArrayRefVector &extensions,
99 class CompositeType : public SPIRVType {
101 using SPIRVType::SPIRVType;
118 void getExtensions(SPIRVType::ExtensionArrayRefVector &extensions,
146 void getExtensions(SPIRVType::ExtensionArrayRefVector &extensions,
196 class PointerType : public Type::TypeBase<PointerType, SPIRVType,
215 : public Type::TypeBase<RuntimeArrayType, SPIRVType,
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp72 SPIRVType::CapabilityArrayRefVector &capabilities, in getCapabilities()
147 SPIRVType::ExtensionArrayRefVector &extensions, in getExtensions()
161 SPIRVType::CapabilityArrayRefVector &capabilities, in getCapabilities()
241 SPIRVType::ExtensionArrayRefVector &extensions, in getExtensions()
470 SPIRVType::ExtensionArrayRefVector &extensions, in getExtensions()
651 bool SPIRVType::classof(Type type) { in classof()
662 bool SPIRVType::isScalarOrVector() { in isScalarOrVector()
666 void SPIRVType::getExtensions(SPIRVType::ExtensionArrayRefVector &extensions, in getExtensions()
685 void SPIRVType::getCapabilities( in getCapabilities()
705 Optional<int64_t> SPIRVType::getSizeInBytes() { in getSizeInBytes()
[all …]
H A DSPIRVCanonicalization.cpp402 .cast<spirv::SPIRVType>() in canCanonicalizeSelection()
H A DSPIRVOps.cpp1889 if (!type.isa<spirv::SPIRVType>()) in isBuildableWith()
3512 if (!value.getType().isa<spirv::SPIRVType>()) in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DUpdateVCEPass.cpp45 const spirv::SPIRVType::ExtensionArrayRefVector &candidates, in checkAndUpdateExtensionRequirements()
73 const spirv::SPIRVType::CapabilityArrayRefVector &candidates, in checkAndUpdateCapabilityRequirements()
153 valueType.cast<spirv::SPIRVType>().getExtensions(typeExtensions); in runOnOperation()
159 valueType.cast<spirv::SPIRVType>().getCapabilities(typeCapabilities); in runOnOperation()
H A DUnifyAliasedResourcePass.cpp79 static Optional<int> deduceCanonicalResource(ArrayRef<spirv::SPIRVType> types) { in deduceCanonicalResource()
85 for (spirv::SPIRVType type : types) { in deduceCanonicalResource()
170 spirv::SPIRVType getElementType(spirv::GlobalVariableOp varOp) const;
188 DenseMap<spirv::GlobalVariableOp, spirv::SPIRVType> elementTypeMap;
242 spirv::SPIRVType
253 SmallVector<spirv::SPIRVType> elementTypes; in recordIfUnifiable()
259 auto type = elementType.cast<spirv::SPIRVType>(); in recordIfUnifiable()
338 spirv::SPIRVType srcElemType = analysis.getElementType(srcVarOp); in matchAndRewrite()
339 spirv::SPIRVType dstElemType = analysis.getElementType(dstVarOp); in matchAndRewrite()
H A DSPIRVConversion.cpp41 const spirv::SPIRVType::ExtensionArrayRefVector &candidates) { in checkExtensionRequirements()
69 const spirv::SPIRVType::CapabilityArrayRefVector &candidates) { in checkCapabilityRequirements()
498 addConversion([](spirv::SPIRVType type) { return type; }); in SPIRVTypeConverter()
879 [](Type t) { return !t.isa<spirv::SPIRVType>(); })) in isLegalOp()
893 valueType.cast<spirv::SPIRVType>().getExtensions(typeExtensions); in isLegalOp()
899 valueType.cast<spirv::SPIRVType>().getCapabilities(typeCapabilities); in isLegalOp()
H A DLowerABIAttributesPass.cpp43 if (varType.cast<spirv::SPIRVType>().isScalarOrVector()) { in createGlobalVarForEntryPointArgument()
215 if (argType.value().cast<spirv::SPIRVType>().isScalarOrVector()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp253 auto sizeInBytes = elementType.cast<spirv::SPIRVType>().getSizeInBytes(); in convertArrayType()