Home
last modified time | relevance | path

Searched refs:SPIRVValue (Results 1 – 19 of 19) sorted by relevance

/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVModule.h77 class SPIRVValue; variable
125 virtual SPIRVValue *getValue(SPIRVId TheId)const = 0;
126 virtual std::vector<SPIRVValue *> getValues(const std::vector<SPIRVId>&)const
129 virtual std::vector<SPIRVId> getIds(const std::vector<SPIRVValue *>&)const = 0;
143 virtual void setAlignment(SPIRVValue *, SPIRVWord) = 0;
217 virtual SPIRVValue *addCompositeConstant(SPIRVType *,
218 const std::vector<SPIRVValue*>&) = 0;
219 virtual SPIRVValue *addConstant(SPIRVValue *) = 0;
220 virtual SPIRVValue *addConstant(SPIRVType *, uint64_t) = 0;
221 virtual SPIRVValue *addDoubleConstant(SPIRVTypeFloat *, double) = 0;
[all …]
DSPIRVModule.cpp98 virtual SPIRVValue *getValue(SPIRVId TheId) const;
99 virtual std::vector<SPIRVValue *> getValues(const std::vector<SPIRVId>&)const;
101 virtual std::vector<SPIRVId> getIds(const std::vector<SPIRVValue *>&)const;
138 void setAlignment(SPIRVValue *, SPIRVWord);
214 virtual SPIRVInstruction *addBranchConditionalInst(SPIRVValue *, SPIRVLabel *,
216 virtual SPIRVValue *addCompositeConstant(SPIRVType *,
217 const std::vector<SPIRVValue*>&);
218 virtual SPIRVValue *addConstant(SPIRVValue *);
219 virtual SPIRVValue *addConstant(SPIRVType *, uint64_t);
220 virtual SPIRVValue *addDoubleConstant(SPIRVTypeFloat *, double);
[all …]
DSPIRVValue.h56 class SPIRVValue: public SPIRVEntry {
59 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, in SPIRVValue() function
65 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, in SPIRVValue() function
72 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, in SPIRVValue() function
79 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode) in SPIRVValue() function
86 SPIRVValue(Op TheOpCode):SPIRVEntry(TheOpCode), Type(NULL) {} in SPIRVValue() function
127 class SPIRVConstant: public SPIRVValue {
132 :SPIRVValue(M, 0, OpConstant, TheType, TheId){ in SPIRVConstant()
139 :SPIRVValue(M, 0, OpConstant, TheType, TheId){ in SPIRVConstant()
146 :SPIRVValue(M, 0, OpConstant, TheType, TheId){ in SPIRVConstant()
[all …]
DSPIRVInstruction.h61 typedef std::vector<SPIRVValue *> ValueVec;
86 SPIRVComponentOperands(const std::vector<SPIRVValue *> &TheOperands): in SPIRVComponentOperands()
88 SPIRVComponentOperands(std::vector<SPIRVValue *> &&TheOperands): in SPIRVComponentOperands()
90 std::vector<SPIRVValue *> getCompOperands() { in getCompOperands()
100 std::vector<SPIRVValue *> Operands;
103 class SPIRVInstruction: public SPIRVValue {
122 SPIRVInstruction(Op TheOC = OpNop):SPIRVValue(TheOC), BB(NULL){} in SPIRVValue() function
128 virtual std::vector<SPIRVValue *> getOperands();
131 const std::vector<SPIRVValue *> &Ops);
172 SPIRVValue::validate(); in validate()
[all …]
DSPIRVInstruction.cpp51 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC, TheType, TheId), in SPIRVInstruction()
58 : SPIRVValue(TheBM, TheWordCount, TheOC, TheType, TheId), BB(TheBB){ in SPIRVInstruction()
65 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC, TheId), BB(TheBB){ in SPIRVInstruction()
71 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC), BB(TheBB){ in SPIRVInstruction()
77 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC, TheType), BB(TheBB){ in SPIRVInstruction()
110 std::vector<SPIRVValue *>
112 std::vector<SPIRVValue *> Empty; in getOperands()
118 SPIRVInstruction::getOperandTypes(const std::vector<SPIRVValue *> &Ops) { in getOperandTypes()
DSPIRVFunction.h50 class SPIRVFunctionParameter: public SPIRVValue {
54 SPIRVFunctionParameter():SPIRVValue(OpFunctionParameter), in SPIRVFunctionParameter()
74 SPIRVValue::validate(); in validate()
83 class SPIRVFunction: public SPIRVValue, public SPIRVComponentExecutionModes {
87 :SPIRVValue(M, 5, OpFunction, FunctionType->getReturnType(), TheId),
94 SPIRVFunction():SPIRVValue(OpFunction),FuncType(NULL),
136 SPIRVValue::validate();
DSPIRVValue.cpp47 SPIRVValue::setAlignment(SPIRVWord A) { in setAlignment()
57 SPIRVValue::hasAlignment(SPIRVWord *Result)const { in hasAlignment()
62 SPIRVValue::isVolatile()const { in isVolatile()
67 SPIRVValue::setVolatile(bool IsVolatile) { in setVolatile()
DSPIRVBasicBlock.h50 class SPIRVBasicBlock: public SPIRVValue {
55 SPIRVBasicBlock():SPIRVValue(OpLabel), ParentF(NULL){ in SPIRVBasicBlock()
87 SPIRVValue::validate(); in validate()
DSPIRVEntry.cpp125 SPIRVValue *
127 return get<SPIRVValue>(TheId); in getValue()
132 return get<SPIRVValue>(TheId)->getType(); in getValueType()
207 std::vector<SPIRVValue *>
209 std::vector<SPIRVValue *> ValueVec; in getValues()
224 SPIRVEntry::getIds(const std::vector<SPIRVValue *> ValueVec)const { in getIds()
DSPIRVBasicBlock.cpp52 :SPIRVValue(Func->getModule(), 2, OpLabel, TheId), ParentF(Func) { in SPIRVBasicBlock()
DSPIRVEntry.h60 class SPIRVValue; variable
236 SPIRVValue *getValue(SPIRVId TheId)const;
237 std::vector<SPIRVValue *> getValues(const std::vector<SPIRVId>&)const;
238 std::vector<SPIRVId> getIds(const std::vector<SPIRVValue *>)const;
DSPIRVFunction.cpp51 SPIRVValue(TheParent->getModule(), 3, OpFunctionParameter, in SPIRVFunctionParameter()
DSPIRVType.h634 SPIRVValue *getOperand() { in getOperand()
/external/spirv-llvm/lib/SPIRV/
DSPIRVWriter.cpp134 void transDbgInfo(Value *V, SPIRVValue *BV) { in transDbgInfo()
190 SPIRVValue *getTranslatedValue(Value *);
194 bool transAlign(Value *V, SPIRVValue *BV);
195 std::vector<SPIRVValue *> transArguments(CallInst *, SPIRVBasicBlock *);
201 SPIRVValue *transCallInst(CallInst *Call, SPIRVBasicBlock *BB);
202 bool transDecoration(Value *V, SPIRVValue *BV);
208 Op transBoolOpCode(SPIRVValue *Opn, Op OC);
213 SPIRVValue *transConstant(Value *V);
214 SPIRVValue *transValue(Value *V, SPIRVBasicBlock *BB,
216 SPIRVValue *transValueWithoutDecoration(Value *V, SPIRVBasicBlock *BB,
[all …]
DSPIRVReader.cpp235 void transDbgInfo(SPIRVValue *SV, Value *V) { in transDbgInfo()
298 Value *transValue(SPIRVValue *, Function *F, BasicBlock *,
300 Value *transValueWithoutDecoration(SPIRVValue *, Function *F, BasicBlock *,
302 bool transDecoration(SPIRVValue *, Value *);
303 bool transAlign(SPIRVValue *, Value *);
305 std::vector<Value *> transValue(const std::vector<SPIRVValue *>&, Function *F,
314 Value *transConvertInst(SPIRVValue* BV, Function* F, BasicBlock* BB);
391 typedef DenseMap<SPIRVValue *, Value *> SPIRVToLLVMValueMap;
398 typedef std::map<SPIRVValue *, LoadInst*> SPIRVToLLVMPlaceholderMap;
419 Value *mapValue(SPIRVValue *BV, Value *V) { in mapValue()
[all …]
DCMakeLists.txt20 libSPIRV/SPIRVValue.cpp
DAndroid.bp36 "libSPIRV/SPIRVValue.cpp",
DSPIRVInternal.h533 SPIRVValue *addDecorations(SPIRVValue *Target,
DSPIRVUtil.cpp438 SPIRVValue *
439 addDecorations(SPIRVValue *Target, const SmallVectorImpl<std::string>& Decs){ in addDecorations()