/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
SPIRVEntry.cpp | 1 //===- SPIRVEntry.cpp - Base Class for SPIR-V Entities -----------*- C++ -*-===// 40 #include "SPIRVEntry.h" 61 SPIRVEntry* create() { 65 SPIRVEntry * 66 SPIRVEntry::create(Op OpCode) { 67 typedef SPIRVEntry *(*SPIRVFactoryTy)(); 95 std::unique_ptr<SPIRV::SPIRVEntry> 96 SPIRVEntry::create_unique(Op OC) { 97 return std::unique_ptr<SPIRVEntry>(create(OC)); 101 SPIRVEntry::create_unique(SPIRVExtInstSetKind Set [all...] |
SPIRVType.h | 47 #include "SPIRVEntry.h" 58 class SPIRVType: public SPIRVEntry { 63 :SPIRVEntry(M, TheWordCount, TheOpCode, TheId){} 65 SPIRVType(Op TheOpCode):SPIRVEntry(TheOpCode){} 155 SPIRVEntry::validate(); 187 SPIRVEntry::validate(); 221 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { 222 return std::vector<SPIRVEntry*>(1, getEntry(ElemTypeId)); 228 SPIRVEntry::validate(); 275 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const [all...] |
SPIRVDecorate.h | 43 #include "SPIRVEntry.h" 56 SPIRVEntry *TheTarget); 59 SPIRVEntry *TheTarget, SPIRVWord V); 132 SPIRVDecorate(Decoration TheDec, SPIRVEntry *TheTarget) 135 SPIRVDecorate(Decoration TheDec, SPIRVEntry *TheTarget, SPIRVWord V) 152 SPIRVDecorateLinkageAttr(SPIRVEntry *TheTarget, 203 SPIRVEntry *TheTarget) 209 SPIRVEntry *TheTarget, SPIRVWord V) 232 class SPIRVDecorationGroup:public SPIRVEntry{ 238 :SPIRVEntry(TheModule, WC, OC, TheId) [all...] |
SPIRVEntry.h | 1 //===- SPIRVEntry.h - Base Class for SPIR-V Entities -------------*- C++ -*-===// 161 /// All SPIR-V in-memory-representation entities inherits from SPIRVEntry. 171 /// It is usually called by SPIRVEntry::make(opcode) to create an incomplete 181 /// the table of the factory function SPIRVEntry::create(). 193 /// 7. Add the class to the Table of SPIRVEntry::create(). 196 class SPIRVEntry { 205 SPIRVEntry(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, 213 SPIRVEntry(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode) 220 SPIRVEntry(Op TheOpCode) 224 SPIRVEntry() [all...] |
SPIRVValue.h | 46 #include "SPIRVEntry.h" 56 class SPIRVValue: public SPIRVEntry { 61 :SPIRVEntry(M, TheWordCount, TheOpCode, TheId), Type(TheType) { 67 :SPIRVEntry(M, TheWordCount, TheOpCode), Type(TheType) { 74 :SPIRVEntry(M, TheWordCount, TheOpCode, TheId), Type(NULL) { 80 :SPIRVEntry(M, TheWordCount, TheOpCode), Type(NULL) { 86 SPIRVValue(Op TheOpCode):SPIRVEntry(TheOpCode), Type(NULL) {} 100 SPIRVEntry::validate(); 283 std::vector<SPIRVEntry*> getNonLiteralOperands() const { 285 return std::vector<SPIRVEntry*>(Elements.begin(), Elements.end()) [all...] |
SPIRVModule.h | 43 #include "SPIRVEntry.h" 56 class SPIRVEntry; 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 [all...] |
SPIRVBasicBlock.cpp | 40 #include "SPIRVEntry.h" 82 SPIRVBasicBlock::setScope(SPIRVEntry *Scope) {
|
SPIRVModule.cpp | 42 #include "SPIRVEntry.h" 79 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) [all...] |
SPIRVStream.h | 75 void setScope(SPIRVEntry *); 77 SPIRVEntry *getEntry(); 84 SPIRVEntry *Scope; // A function or basic block
|
SPIRVBasicBlock.h | 79 void setScope(SPIRVEntry *Scope);
|
SPIRVStream.cpp | 95 SPIRVDecoder::setScope(SPIRVEntry *TheScope) { 233 SPIRVEntry * 237 SPIRVEntry *Entry = SPIRVEntry::create(OpCode);
|
SPIRVDecorate.cpp | 56 SPIRVEntry *TheTarget) 66 SPIRVEntry *TheTarget, 154 SPIRVEntry::encodeAll(O);
|
SPIRVInstruction.h | 134 void setScope(SPIRVEntry *); 183 auto Inst = static_cast<SPIRVInstTemplateBase *>(SPIRVEntry::create(TheOC)); 234 SPIRVEntry::setWordCount(WC); 273 SPIRVEntry::setWordCount(WC); 276 SPIRVEntry::setWordCount(WC); 280 SPIRVEntry::setWordCount(TheWordCount); 327 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { 328 std::vector<SPIRVEntry*> Operands; 488 virtual std::vector<SPIRVEntry*> getNonLiteralOperands() const { 490 return std::vector<SPIRVEntry*>(1, V) [all...] |
SPIRVType.cpp | 270 SPIRVEntry::validate();
|
SPIRVInstruction.cpp | 91 SPIRVInstruction::setScope(SPIRVEntry *Scope) {
|
/external/spirv-llvm/lib/SPIRV/ |
OCLUtil.cpp | 42 #include "SPIRVEntry.h" 161 std::unique_ptr<SPIRVEntry> 165 SPIRVEntry *Entry = nullptr; 167 Entry = SPIRVEntry::create(OC); 169 Entry = static_cast<SPIRVEntry*>( 170 SPIRVEntry::create_unique(SPIRVEIS_OpenCL, ExtOp).get()); 171 return std::unique_ptr<SPIRVEntry>(Entry);
|
SPIRVWriter.cpp | 43 #include "SPIRVEntry.h" 197 SPIRVEntry *); 273 SPIRVBasicBlock* BB, SPIRVEntry *Entry); [all...] |
OCLUtil.h | 275 std::unique_ptr<SPIRVEntry>
|
SPIRVInternal.h | 529 SPIRVDecorate *mapPostfixToDecorate(StringRef Postfix, SPIRVEntry *Target); [all...] |
SPIRVUtil.cpp | 427 mapPostfixToDecorate(StringRef Postfix, SPIRVEntry *Target) { [all...] |