Home
last modified time | relevance | path

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

/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVType.cpp49 SPIRVType*
50 SPIRVType::getArrayElementType() const { in getArrayElementType()
56 SPIRVType::getArrayLength() const { in getArrayLength()
63 SPIRVType::getBitWidth() const { in getBitWidth()
72 SPIRVType::getFloatBitWidth()const { in getFloatBitWidth()
78 SPIRVType::getIntegerBitWidth()const { in getIntegerBitWidth()
86 SPIRVType *
87 SPIRVType::getFunctionReturnType() const { in getFunctionReturnType()
92 SPIRVType *
93 SPIRVType::getPointerElementType()const { in getPointerElementType()
[all …]
DSPIRVType.h58 class SPIRVType: public SPIRVEntry {
61 SPIRVType(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, in SPIRVType() function
65 SPIRVType(Op TheOpCode):SPIRVEntry(TheOpCode){} in SPIRVType() function
67 SPIRVType *getArrayElementType() const;
71 SPIRVType *getFunctionReturnType() const;
73 SPIRVType *getPointerElementType() const;
75 SPIRVType *getStructMemberType(size_t) const;
78 SPIRVType *getVectorComponentType() const;
106 class SPIRVTypeVoid:public SPIRVType {
110 :SPIRVType(M, 2, OpTypeVoid, TheId){} in SPIRVTypeVoid()
[all …]
DSPIRVModule.h59 class SPIRVType; variable
130 virtual SPIRVType *getValueType(SPIRVId TheId)const = 0;
131 virtual std::vector<SPIRVType *> getValueTypes(const std::vector<SPIRVId>&)
183 virtual SPIRVForward *addForward(SPIRVType *Ty) = 0;
184 virtual SPIRVForward *addForward(SPIRVId, SPIRVType *Ty) = 0;
191 virtual SPIRVTypeArray *addArrayType(SPIRVType *, SPIRVConstant *) = 0;
194 virtual SPIRVTypeFunction *addFunctionType(SPIRVType *,
195 const std::vector<SPIRVType *> &) = 0;
196 virtual SPIRVTypeImage *addImageType(SPIRVType *,
198 virtual SPIRVTypeImage *addImageType(SPIRVType *,
[all …]
DSPIRVModule.cpp102 virtual SPIRVType *getValueType(SPIRVId TheId)const;
103 virtual std::vector<SPIRVType *> getValueTypes(const std::vector<SPIRVId>&)
179 virtual SPIRVForward *addForward(SPIRVType *Ty);
180 virtual SPIRVForward *addForward(SPIRVId, SPIRVType *Ty);
187 virtual SPIRVTypeArray *addArrayType(SPIRVType *, SPIRVConstant *);
190 virtual SPIRVTypeFunction *addFunctionType(SPIRVType *,
191 const std::vector<SPIRVType *> &);
194 virtual SPIRVTypePointer *addPointerType(SPIRVStorageClassKind, SPIRVType *);
195 virtual SPIRVTypeImage *addImageType(SPIRVType *,
197 virtual SPIRVTypeImage *addImageType(SPIRVType *,
[all …]
DSPIRVValue.h60 SPIRVType *TheType, SPIRVId TheId) in SPIRVValue()
66 SPIRVType *TheType) in SPIRVValue()
89 SPIRVType *getType()const { in getType()
104 void setType(SPIRVType *Ty) { in setType()
124 SPIRVType *Type; // Value Type
130 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, in SPIRVConstant()
138 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, float TheValue) in SPIRVConstant()
145 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, double TheValue) in SPIRVConstant()
198 SPIRVConstantEmpty(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId) in SPIRVConstantEmpty()
215 SPIRVConstantBool(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId) in SPIRVConstantBool()
[all …]
DSPIRVInstruction.cpp50 SPIRVType *TheType, SPIRVId TheId, SPIRVBasicBlock *TheBB) in SPIRVInstruction()
57 SPIRVType *TheType, SPIRVId TheId, SPIRVBasicBlock *TheBB, SPIRVModule *TheBM) in SPIRVInstruction()
76 SPIRVType *TheType, SPIRVBasicBlock *TheBB) in SPIRVInstruction()
117 std::vector<SPIRVType*>
119 std::vector<SPIRVType*> Tys; in getOperandTypes()
121 SPIRVType* Ty = nullptr; in getOperandTypes()
132 std::vector<SPIRVType*>
DSPIRVInstruction.h93 std::vector<SPIRVType *> getCompOperandTypes() { in getCompOperandTypes()
94 std::vector<SPIRVType *> Tys; in getCompOperandTypes()
106 SPIRVInstruction(unsigned TheWordCount, Op TheOC, SPIRVType *TheType,
110 SPIRVType *TheType, SPIRVId TheId, SPIRVBasicBlock *TheBB,
119 SPIRVInstruction(unsigned TheWordCount, Op TheOC, SPIRVType *TheType,
129 std::vector<SPIRVType*> getOperandTypes();
130 static std::vector<SPIRVType*> getOperandTypes(
189 static SPIRVInstTemplateBase *create(Op TheOC, SPIRVType *TheType, in create()
197 static SPIRVInstTemplateBase *create(Op TheOC, SPIRVType *TheType, in create()
211 SPIRVInstTemplateBase *init(SPIRVType *TheType, in init()
[all …]
DSPIRVEntry.cpp130 SPIRVType *
215 std::vector<SPIRVType *>
217 std::vector<SPIRVType *> TypeVec; in getValueTypes()
DSPIRVFunction.cpp49 SPIRVFunctionParameter::SPIRVFunctionParameter(SPIRVType *TheType, SPIRVId TheId, in SPIRVFunctionParameter()
DSPIRVFunction.h52 SPIRVFunctionParameter(SPIRVType *TheType, SPIRVId TheId,
DSPIRVEntry.h59 class SPIRVType; variable
239 SPIRVType *getValueType(SPIRVId TheId)const;
240 std::vector<SPIRVType *> getValueTypes(const std::vector<SPIRVId>&)const;
/external/spirv-llvm/lib/SPIRV/
DSPIRVWriter.cpp187 SPIRVType *transType(Type *T);
188 SPIRVType *transSPIRVOpaqueType(Type *T);
219 typedef DenseMap<Type *, SPIRVType *> LLVMToSPIRVTypeMap;
233 SPIRVType *mapType(Type *T, SPIRVType *BT) { in mapType()
257 SPIRVType *getSPIRVType(Type *T) { in getSPIRVType()
441 SPIRVType *
573 SPIRVType *RT = transType(FT->getReturnType()); in transType()
574 std::vector<SPIRVType *> PT; in transType()
585 SPIRVType *
708 auto BT = static_cast<SPIRVType *>(transType(V->getType())); in transConstant()
[all …]
DCMakeLists.txt19 libSPIRV/SPIRVType.cpp
DSPIRVReader.cpp292 Type *transType(SPIRVType *BT, bool IsClassMember = false);
293 std::string transTypeToOCLTypeName(SPIRVType *BT, bool IsSigned = true);
294 std::vector<Type *> transTypeVector(const std::vector<SPIRVType *>&);
390 typedef DenseMap<SPIRVType *, Type *> SPIRVToLLVMTypeMap;
410 Type *mapType(SPIRVType *BT, Type *T) { in mapType()
466 Type *getTranslatedType(SPIRVType *BT);
479 Type *transFPType(SPIRVType* T);
514 SPIRVToLLVM::getTranslatedType(SPIRVType *BV){ in getTranslatedType()
629 SPIRVToLLVM::transFPType(SPIRVType* T) { in transFPType()
678 SPIRVToLLVM::transType(SPIRVType *T, bool IsClassMember) { in transType()
[all …]
DAndroid.bp35 "libSPIRV/SPIRVType.cpp",
DSPIRVInternal.h527 std::string mapSPIRVTypeToOCLType(SPIRVType* Ty, bool Signed);
836 getSPIRVImageSampledTypeName(SPIRVType *Ty);
DSPIRVUtil.cpp156 mapSPIRVTypeToOCLType(SPIRVType* Ty, bool Signed) { in mapSPIRVTypeToOCLType()
1248 getSPIRVImageSampledTypeName(SPIRVType *Ty) { in getSPIRVImageSampledTypeName()