Home
last modified time | relevance | path

Searched refs:SPIRVConstant (Results 1 – 8 of 8) sorted by relevance

/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVType.cpp262 SPIRVConstant* TheLength) in SPIRVTypeArray()
273 get<SPIRVConstant>(Length)->getZExtIntValue() > 0); in validate()
276 SPIRVConstant*
278 return get<SPIRVConstant>(Length); in getLength()
DSPIRVValue.h127 class SPIRVConstant: public SPIRVValue {
130 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, in SPIRVConstant() function
138 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, float TheValue) in SPIRVConstant() function
145 SPIRVConstant(SPIRVModule *M, SPIRVType *TheType, SPIRVId TheId, double TheValue) in SPIRVConstant() function
152 SPIRVConstant():SPIRVValue(OpConstant), NumWords(0){} in SPIRVConstant() function
DSPIRVModule.cpp106 virtual SPIRVConstant* getLiteralAsConstant(unsigned Literal);
187 virtual SPIRVTypeArray *addArrayType(SPIRVType *, SPIRVConstant *);
358 std::map<unsigned, SPIRVConstant*> LiteralMap;
470 SPIRVConstant*
476 auto V = new SPIRVConstant(this, Ty, getId(), static_cast<uint64_t>(Literal)); in getLiteralAsConstant()
505 ConstVec.push_back(static_cast<SPIRVConstant*>(E)); in layoutEntry()
671 SPIRVModuleImpl::addArrayType(SPIRVType *ElementType, SPIRVConstant *Length) { in addArrayType()
888 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addConstant()
898 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addIntegerConstant()
903 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addFloatConstant()
[all …]
DSPIRVModule.h55 class SPIRVConstant; variable
133 virtual SPIRVConstant* getLiteralAsConstant(unsigned Literal) = 0;
191 virtual SPIRVTypeArray *addArrayType(SPIRVType *, SPIRVConstant *) = 0;
DSPIRVType.h292 class SPIRVConstant; variable
297 SPIRVConstant* TheLength);
303 SPIRVConstant *getLength() const;
DSPIRVInstruction.h358 static_cast<SPIRVConstant*>(getValue(Ops[0]))->getZExtIntValue()); in getExecutionScope()
/external/spirv-llvm/lib/SPIRV/
DSPIRVReader.cpp1331 SPIRVConstant *BConst = static_cast<SPIRVConstant *>(BV); in transValueWithoutDecoration()
2511 return static_cast<SPIRVConstant*>(value)->getZExtIntValue(); in transOCLBarrierFence()
DSPIRVWriter.cpp528 static_cast<SPIRVConstant*>(transValue(ConstantInt::get(getSizetType(), in transType()