Home
last modified time | relevance | path

Searched refs:SPIRVEntry (Results 1 – 22 of 22) sorted by relevance

/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVEntry.cpp61 SPIRVEntry* create() { in create()
65 SPIRVEntry *
66 SPIRVEntry::create(Op OpCode) { in create()
67 typedef SPIRVEntry *(*SPIRVFactoryTy)(); in create()
95 std::unique_ptr<SPIRV::SPIRVEntry>
96 SPIRVEntry::create_unique(Op OC) { in create_unique()
97 return std::unique_ptr<SPIRVEntry>(create(OC)); in create_unique()
101 SPIRVEntry::create_unique(SPIRVExtInstSetKind Set, in create_unique()
107 SPIRVEntry::getErrorLog()const { in getErrorLog()
112 SPIRVEntry::exist(SPIRVId TheId)const { in exist()
[all …]
DSPIRVEntry.h196 class SPIRVEntry {
205 SPIRVEntry(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, in SPIRVEntry() function
213 SPIRVEntry(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode) in SPIRVEntry() function
220 SPIRVEntry(Op TheOpCode) in SPIRVEntry() function
224 SPIRVEntry() in SPIRVEntry() function
229 virtual ~SPIRVEntry(){} in ~SPIRVEntry()
234 SPIRVEntry *getEntry(SPIRVId) const;
235 SPIRVEntry *getOrCreate(SPIRVId TheId) const;
290 virtual void setScope(SPIRVEntry *Scope){}; in setScope()
292 void takeDecorates(SPIRVEntry *);
[all …]
DSPIRVType.h58 class SPIRVType: public SPIRVEntry {
63 :SPIRVEntry(M, TheWordCount, TheOpCode, TheId){} in SPIRVType()
65 SPIRVType(Op TheOpCode):SPIRVEntry(TheOpCode){} in SPIRVType()
155 SPIRVEntry::validate(); in _SPIRV_DEF_ENCDEC3()
187 SPIRVEntry::validate(); in _SPIRV_DEF_ENCDEC2()
221 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { in getNonLiteralOperands()
222 return std::vector<SPIRVEntry*>(1, getEntry(ElemTypeId)); in getNonLiteralOperands()
228 SPIRVEntry::validate(); in _SPIRV_DEF_ENCDEC3()
275 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { in getNonLiteralOperands()
276 return std::vector<SPIRVEntry*>(1, CompType); in getNonLiteralOperands()
[all …]
DSPIRVDecorate.h56 SPIRVEntry *TheTarget);
59 SPIRVEntry *TheTarget, SPIRVWord V);
132 SPIRVDecorate(Decoration TheDec, SPIRVEntry *TheTarget) in SPIRVDecorate()
135 SPIRVDecorate(Decoration TheDec, SPIRVEntry *TheTarget, SPIRVWord V) in SPIRVDecorate()
152 SPIRVDecorateLinkageAttr(SPIRVEntry *TheTarget, in SPIRVDecorateLinkageAttr()
203 SPIRVEntry *TheTarget) in SPIRVMemberDecorate()
209 SPIRVEntry *TheTarget, SPIRVWord V) in SPIRVMemberDecorate()
232 class SPIRVDecorationGroup:public SPIRVEntry{
238 :SPIRVEntry(TheModule, WC, OC, TheId){ in SPIRVDecorationGroup()
242 SPIRVDecorationGroup():SPIRVEntry(OC){} in SPIRVDecorationGroup()
DSPIRVModule.cpp79 bool exist(SPIRVId, SPIRVEntry **) const;
81 virtual SPIRVEntry *getEntry(SPIRVId Id) const;
100 virtual std::vector<SPIRVId> getIds(const std::vector<SPIRVEntry *>&)const;
144 void setName(SPIRVEntry *E, const std::string &Name);
156 template<class T> void addTo(std::vector<T *> &V, SPIRVEntry *E);
157 virtual SPIRVEntry *addEntry(SPIRVEntry *E);
164 virtual SPIRVLine *addLine(SPIRVEntry *E, SPIRVString *FileName, SPIRVWord Line,
172 const std::vector<SPIRVEntry *> &Targets);
176 SPIRVDecorationGroup *Group, const std::vector<SPIRVEntry *> &Targets);
183 virtual SPIRVEntry *replaceForward(SPIRVForward *, SPIRVEntry *);
[all …]
DSPIRVModule.h56 class SPIRVEntry; variable
99 virtual bool exist(SPIRVId, SPIRVEntry **)const = 0;
102 virtual SPIRVEntry *getEntry(SPIRVId) const = 0;
128 virtual std::vector<SPIRVId> getIds(const std::vector<SPIRVEntry *>&)const = 0;
145 virtual void setName(SPIRVEntry *, const std::string&) = 0;
161 virtual SPIRVEntry *addEntry(SPIRVEntry *) = 0;
169 virtual SPIRVLine *addLine(SPIRVEntry *E, SPIRVString *FileName, SPIRVWord Line,
177 const std::vector<SPIRVEntry *> &Targets) = 0;
179 SPIRVDecorationGroup *Group, const std::vector<SPIRVEntry *> &Targets) = 0;
188 virtual SPIRVEntry *replaceForward(SPIRVForward *, SPIRVEntry *) = 0;
DSPIRVValue.h56 class SPIRVValue: public SPIRVEntry {
61 :SPIRVEntry(M, TheWordCount, TheOpCode, TheId), Type(TheType) { in SPIRVValue()
67 :SPIRVEntry(M, TheWordCount, TheOpCode), Type(TheType) { in SPIRVValue()
74 :SPIRVEntry(M, TheWordCount, TheOpCode, TheId), Type(NULL) { in SPIRVValue()
80 :SPIRVEntry(M, TheWordCount, TheOpCode), Type(NULL) { in SPIRVValue()
86 SPIRVValue(Op TheOpCode):SPIRVEntry(TheOpCode), Type(NULL) {} in SPIRVValue()
100 SPIRVEntry::validate(); in validate()
283 std::vector<SPIRVEntry*> getNonLiteralOperands() const { in getNonLiteralOperands()
285 return std::vector<SPIRVEntry*>(Elements.begin(), Elements.end()); in getNonLiteralOperands()
DSPIRVInstruction.h134 void setScope(SPIRVEntry *);
183 auto Inst = static_cast<SPIRVInstTemplateBase *>(SPIRVEntry::create(TheOC)); in create()
234 SPIRVEntry::setWordCount(WC);
273 SPIRVEntry::setWordCount(WC); in setOpWords()
276 SPIRVEntry::setWordCount(WC); in setOpWords()
280 SPIRVEntry::setWordCount(TheWordCount); in setWordCount()
327 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { in getNonLiteralOperands()
328 std::vector<SPIRVEntry*> Operands; in getNonLiteralOperands()
488 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { in getNonLiteralOperands()
490 return std::vector<SPIRVEntry*>(1, V); in getNonLiteralOperands()
[all …]
DSPIRVStream.cpp95 SPIRVDecoder::setScope(SPIRVEntry *TheScope) { in setScope()
233 SPIRVEntry *
237 SPIRVEntry *Entry = SPIRVEntry::create(OpCode); in getEntry()
DSPIRVStream.h75 void setScope(SPIRVEntry *);
77 SPIRVEntry *getEntry();
84 SPIRVEntry *Scope; // A function or basic block
DSPIRVDecorate.cpp56 SPIRVEntry *TheTarget) in SPIRVDecorateGeneric()
66 SPIRVEntry *TheTarget, in SPIRVDecorateGeneric()
154 SPIRVEntry::encodeAll(O); in encodeAll()
DSPIRVBasicBlock.cpp82 SPIRVBasicBlock::setScope(SPIRVEntry *Scope) { in _SPIRV_IMP_ENCDEC1()
DSPIRVBasicBlock.h79 void setScope(SPIRVEntry *Scope);
DSPIRVType.cpp270 SPIRVEntry::validate(); in validate()
DSPIRVInstruction.cpp91 SPIRVInstruction::setScope(SPIRVEntry *Scope) { in setScope()
/external/spirv-llvm/lib/SPIRV/
DOCLUtil.cpp161 std::unique_ptr<SPIRVEntry>
165 SPIRVEntry *Entry = nullptr; in getSPIRVInst()
167 Entry = SPIRVEntry::create(OC); in getSPIRVInst()
169 Entry = static_cast<SPIRVEntry*>( in getSPIRVInst()
170 SPIRVEntry::create_unique(SPIRVEIS_OpenCL, ExtOp).get()); in getSPIRVInst()
171 return std::unique_ptr<SPIRVEntry>(Entry); in getSPIRVInst()
DCMakeLists.txt14 libSPIRV/SPIRVEntry.cpp
DAndroid.bp30 "libSPIRV/SPIRVEntry.cpp",
DSPIRVWriter.cpp197 SPIRVEntry *);
273 SPIRVBasicBlock* BB, SPIRVEntry *Entry);
1237 transArguments(CI, BB, SPIRVEntry::create_unique(ExtSetKind, ExtOp).get()), in transCallInst()
1242 transArguments(CI, BB, SPIRVEntry::create_unique(OpFunctionCall).get()), in transCallInst()
1278 SPIRVEntry *Entry) { in transValue()
1289 LLVMToSPIRV::transArguments(CallInst *CI, SPIRVBasicBlock *BB, SPIRVEntry *Entry) { in transArguments()
DOCLUtil.h275 std::unique_ptr<SPIRVEntry>
DSPIRVInternal.h529 SPIRVDecorate *mapPostfixToDecorate(StringRef Postfix, SPIRVEntry *Target);
DSPIRVUtil.cpp427 mapPostfixToDecorate(StringRef Postfix, SPIRVEntry *Target) { in mapPostfixToDecorate()