/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
SPIRVValue.cpp | 1 //===- SPIRVValue.cpp ? Class to represent a SPIR-V Value --------*- C++ -*-===// 43 #include "SPIRVValue.h" 47 SPIRVValue::setAlignment(SPIRVWord A) { 57 SPIRVValue::hasAlignment(SPIRVWord *Result)const { 62 SPIRVValue::isVolatile()const { 67 SPIRVValue::setVolatile(bool IsVolatile) {
|
SPIRVModule.h | 77 class SPIRVValue; 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 [all...] |
SPIRVValue.h | 1 //===- SPIRVValue.h - Class to represent a SPIR-V Value ----------*- C++ -*-===// 56 class SPIRVValue: public SPIRVEntry { 59 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, 65 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, 72 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode, 79 SPIRVValue(SPIRVModule *M, unsigned TheWordCount, Op TheOpCode) 86 SPIRVValue(Op TheOpCode):SPIRVEntry(TheOpCode), Type(NULL) {} 127 class SPIRVConstant: public SPIRVValue { 132 :SPIRVValue(M, 0, OpConstant, TheType, TheId){ 139 :SPIRVValue(M, 0, OpConstant, TheType, TheId) [all...] |
SPIRVModule.cpp | 44 #include "SPIRVValue.h" 98 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 *); [all...] |
SPIRVBasicBlock.h | 43 #include "SPIRVValue.h" 50 class SPIRVBasicBlock: public SPIRVValue { 55 SPIRVBasicBlock():SPIRVValue(OpLabel), ParentF(NULL){ 87 SPIRVValue::validate();
|
SPIRVFunction.h | 41 #include "SPIRVValue.h" 50 class SPIRVFunctionParameter: public SPIRVValue { 54 SPIRVFunctionParameter():SPIRVValue(OpFunctionParameter), 74 SPIRVValue::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();
|
SPIRVInstruction.h | 46 #include "SPIRVValue.h" 61 typedef std::vector<SPIRVValue *> ValueVec; 86 SPIRVComponentOperands(const std::vector<SPIRVValue *> &TheOperands): 88 SPIRVComponentOperands(std::vector<SPIRVValue *> &&TheOperands): 90 std::vector<SPIRVValue *> getCompOperands() { 100 std::vector<SPIRVValue *> Operands; 103 class SPIRVInstruction: public SPIRVValue { 122 SPIRVInstruction(Op TheOC = OpNop):SPIRVValue(TheOC), BB(NULL){} 128 virtual std::vector<SPIRVValue *> getOperands(); 131 const std::vector<SPIRVValue *> &Ops) [all...] |
SPIRVInstruction.cpp | 51 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC, TheType, TheId), 58 : SPIRVValue(TheBM, TheWordCount, TheOC, TheType, TheId), BB(TheBB){ 65 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC, TheId), BB(TheBB){ 71 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC), BB(TheBB){ 77 :SPIRVValue(TheBB->getModule(), TheWordCount, TheOC, TheType), BB(TheBB){ 110 std::vector<SPIRVValue *> 112 std::vector<SPIRVValue *> Empty; 118 SPIRVInstruction::getOperandTypes(const std::vector<SPIRVValue *> &Ops) {
|
SPIRVBasicBlock.cpp | 41 #include "SPIRVValue.h" 52 :SPIRVValue(Func->getModule(), 2, OpLabel, TheId), ParentF(Func) {
|
SPIRVEntry.cpp | 125 SPIRVValue * 127 return get<SPIRVValue>(TheId); 132 return get<SPIRVValue>(TheId)->getType(); 207 std::vector<SPIRVValue *> 209 std::vector<SPIRVValue *> ValueVec; 224 SPIRVEntry::getIds(const std::vector<SPIRVValue *> ValueVec)const {
|
SPIRVFunction.cpp | 51 SPIRVValue(TheParent->getModule(), 3, OpFunctionParameter,
|
SPIRVEntry.h | 60 class SPIRVValue; 182 /// 2. Inherit from proper SPIRV class such as SPIRVType, SPIRVValue, 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;
|
SPIRVType.h | 634 SPIRVValue *getOperand() {
|
/external/spirv-llvm/lib/SPIRV/ |
SPIRVWriter.cpp | 45 #include "SPIRVValue.h" 134 void transDbgInfo(Value *V, SPIRVValue *BV) { 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 [all...] |
SPIRVReader.cpp | 41 #include "SPIRVValue.h" 235 void transDbgInfo(SPIRVValue *SV, Value *V) { 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 [all...] |
SPIRVInternal.h | 533 SPIRVValue *addDecorations(SPIRVValue *Target, [all...] |
SPIRVUtil.cpp | 43 #include "libSPIRV/SPIRVValue.h" 438 SPIRVValue * 439 addDecorations(SPIRVValue *Target, const SmallVectorImpl<std::string>& Decs){ [all...] |