/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
SPIRVType.cpp | 1 //===- SPIRVtype.cpp ? Class to represent a SPIR-V type ----------*- C++ -*-===// 40 #include "SPIRVType.h" 49 SPIRVType* 50 SPIRVType::getArrayElementType() const { 56 SPIRVType::getArrayLength() const { 63 SPIRVType::getBitWidth() const { 72 SPIRVType::getFloatBitWidth()const { 78 SPIRVType::getIntegerBitWidth()const { 86 SPIRVType * 87 SPIRVType::getFunctionReturnType() const [all...] |
SPIRVType.h | 1 //===- SPIRVType.h - Class to represent a SPIR-V Type -----------*- C++ -*-===// 58 class SPIRVType: public SPIRVEntry { 61 SPIRVType(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, 65 SPIRVType(Op TheOpCode):SPIRVEntry(TheOpCode){} 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 { [all...] |
SPIRVModule.h | 59 class SPIRVType; 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...] |
SPIRVValue.h | 47 #include "SPIRVType.h" 60 SPIRVType *TheType, SPIRVId TheId) 66 SPIRVType *TheType) 89 SPIRVType *getType()const { 104 void setType(SPIRVType *Ty) { 124 SPIRVType *Type; // Value Type 130 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, 138 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, float TheValue) 145 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, double TheValue) 198 SPIRVConstantEmpty(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId [all...] |
SPIRVModule.cpp | 43 #include "SPIRVType.h" 102 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 *, [all...] |
SPIRVInstruction.cpp | 50 SPIRVType *TheType, SPIRVId TheId, SPIRVBasicBlock *TheBB) 57 SPIRVType *TheType, SPIRVId TheId, SPIRVBasicBlock *TheBB, SPIRVModule *TheBM) 76 SPIRVType *TheType, SPIRVBasicBlock *TheBB) 117 std::vector<SPIRVType*> 119 std::vector<SPIRVType*> Tys; 121 SPIRVType* Ty = nullptr; 132 std::vector<SPIRVType*>
|
SPIRVInstruction.h | 93 std::vector<SPIRVType *> getCompOperandTypes() { 94 std::vector<SPIRVType *> Tys; 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, 197 static SPIRVInstTemplateBase *create(Op TheOC, SPIRVType *TheType, 211 SPIRVInstTemplateBase *init(SPIRVType *TheType [all...] |
SPIRVFunction.cpp | 49 SPIRVFunctionParameter::SPIRVFunctionParameter(SPIRVType *TheType, SPIRVId TheId,
|
SPIRVFunction.h | 52 SPIRVFunctionParameter(SPIRVType *TheType, SPIRVId TheId,
|
SPIRVEntry.cpp | 42 #include "SPIRVType.h" 130 SPIRVType * 215 std::vector<SPIRVType *> 217 std::vector<SPIRVType *> TypeVec;
|
SPIRVEntry.h | 59 class SPIRVType; 182 /// 2. Inherit from proper SPIRV class such as SPIRVType, SPIRVValue, 239 SPIRVType *getValueType(SPIRVId TheId)const; 240 std::vector<SPIRVType *> getValueTypes(const std::vector<SPIRVId>&)const;
|
/external/spirv-llvm/lib/SPIRV/ |
SPIRVWriter.cpp | 44 #include "SPIRVType.h" 187 SPIRVType *transType(Type *T); 188 SPIRVType *transSPIRVOpaqueType(Type *T); 219 typedef DenseMap<Type *, SPIRVType *> LLVMToSPIRVTypeMap; 233 SPIRVType *mapType(Type *T, SPIRVType *BT) { 257 SPIRVType *getSPIRVType(Type *T) { 441 SPIRVType * 573 SPIRVType *RT = transType(FT->getReturnType()); 574 std::vector<SPIRVType *> PT [all...] |
SPIRVReader.cpp | 40 #include "SPIRVType.h" 292 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) { 466 Type *getTranslatedType(SPIRVType *BT); 479 Type *transFPType(SPIRVType* T); 514 SPIRVToLLVM::getTranslatedType(SPIRVType *BV){ 629 SPIRVToLLVM::transFPType(SPIRVType* T) [all...] |
SPIRVInternal.h | 46 #include "libSPIRV/SPIRVType.h" 527 std::string mapSPIRVTypeToOCLType(SPIRVType* Ty, bool Signed); 836 getSPIRVImageSampledTypeName(SPIRVType *Ty); [all...] |
SPIRVUtil.cpp | 156 mapSPIRVTypeToOCLType(SPIRVType* Ty, bool Signed) { [all...] |