Lines Matching refs:SPIRVValue

61 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()
303 SPIRVValue *getOpValue(int I) { in getOpValue()
319 virtual std::vector<SPIRVValue *> getOperands() { in getOperands()
320 std::vector<SPIRVValue*> VOps; in getOperands()
335 virtual SPIRVValue *getOperand(unsigned I) { in getOperand()
444 SPIRVValue *TheInitializer, const std::string &TheName, in SPIRVVariable()
460 SPIRVValue *getInitializer() const { in getInitializer()
489 if (SPIRVValue *V = getInitializer()) in getNonLiteralOperands()
495 SPIRVValue::validate(); in validate()
531 SPIRVValue *getSrc() const { return getValue(ValId);}
532 SPIRVValue *getDst() const { return getValue(PtrId);}
582 SPIRVValue *getSrc() const { return Module->get<SPIRVValue>(PtrId);}
713 SPIRVReturnValue(SPIRVValue *TheReturnValue, SPIRVBasicBlock *TheBB)
724 SPIRVValue *getReturnValue() const {
753 SPIRVValue *getTargetLabel() const {
771 SPIRVBranchConditional(SPIRVValue *TheCondition, SPIRVLabel *TheTrueLabel,
777 SPIRVBranchConditional(SPIRVValue *TheCondition, SPIRVLabel *TheTrueLabel,
793 SPIRVValue *getCondition() const {
829 const std::vector<SPIRVValue *> &ThePairs, SPIRVBasicBlock *BB)
836 std::vector<SPIRVValue *> getPairs() {
839 void addPair(SPIRVValue *Value, SPIRVBasicBlock *BB) {
845 void setPairs(const std::vector<SPIRVValue *> &ThePairs) {
850 void foreachPair(std::function<void(SPIRVValue *, SPIRVBasicBlock *,
857 Func(static_cast<SPIRVValue *>(Value), static_cast<SPIRVBasicBlock *>(BB),
861 void foreachPair(std::function<void(SPIRVValue *, SPIRVBasicBlock *)> Func)
868 Func(static_cast<SPIRVValue *>(Value), static_cast<SPIRVBasicBlock *>(BB));
880 foreachPair([=](SPIRVValue *IncomingV, SPIRVBasicBlock *IncomingBB){
965 SPIRVValue *getCondition() { return getValue(Condition);}
966 SPIRVValue *getTrueValue() { return getValue(Op1);}
967 SPIRVValue *getFalseValue() { return getValue(Op2);}
994 SPIRVSwitch(SPIRVValue *TheSelect, SPIRVBasicBlock *TheDefault,
1011 std::vector<SPIRVValue *> getPairs() {
1014 SPIRVValue *getSelect() const { return getValue(Select);}
1110 SPIRVValue *getBase() { return this->getValue(this->Ops[0]);}
1111 std::vector<SPIRVValue *> getIndices()const {
1148 const std::vector<SPIRVValue *> &TheArgs, SPIRVBasicBlock *BB)
1158 std::vector<SPIRVValue *> getArgumentValues() {
1207 const std::vector<SPIRVValue *> &TheArgs, SPIRVBasicBlock *BB)
1289 SPIRVCompositeExtract(SPIRVType *TheType, SPIRVId TheId, SPIRVValue *TheComposite,
1299 SPIRVValue *getComposite() { return getValue(Composite);}
1324 SPIRVCompositeInsert(SPIRVId TheId, SPIRVValue *TheObject,
1325 SPIRVValue *TheComposite, const std::vector<SPIRVWord>& TheIndices,
1338 SPIRVValue *getObject() { return getValue(Object);}
1339 SPIRVValue *getComposite() { return getValue(Composite);}
1368 SPIRVCopyObject(SPIRVType *TheType, SPIRVId TheId, SPIRVValue *TheOperand,
1378 SPIRVValue *getOperand() { return getValue(Operand); }
1395 SPIRVCopyMemory(SPIRVValue *TheTarget, SPIRVValue *TheSource,
1415 SPIRVValue *getSource() { return getValue(Source); }
1416 SPIRVValue *getTarget() { return getValue(Target); }
1451 SPIRVCopyMemorySized(SPIRVValue *TheTarget, SPIRVValue *TheSource,
1452 SPIRVValue *TheSize, const std::vector<SPIRVWord> &TheMemoryAccess,
1470 SPIRVValue *getSource() { return getValue(Source); }
1471 SPIRVValue *getTarget() { return getValue(Target); }
1472 SPIRVValue *getSize() { return getValue(Size); }
1503 SPIRVVectorExtractDynamic(SPIRVId TheId, SPIRVValue *TheVector,
1504 SPIRVValue* TheIndex, SPIRVBasicBlock *TheBB)
1515 SPIRVValue *getVector() { return getValue(VectorId);}
1516 SPIRVValue *getIndex()const { return getValue(IndexId);}
1533 SPIRVVectorInsertDynamic(SPIRVId TheId, SPIRVValue *TheVector,
1534 SPIRVValue* TheComponent, SPIRVValue* TheIndex, SPIRVBasicBlock *TheBB)
1545 SPIRVValue *getVector() { return getValue(VectorId); }
1546 SPIRVValue *getIndex()const { return getValue(IndexId); }
1547 SPIRVValue *getComponent() { return getValue(ComponentId); }
1566 SPIRVVectorShuffle(SPIRVId TheId, SPIRVType *TheType, SPIRVValue *TheVector1,
1567 SPIRVValue *TheVector2, const std::vector<SPIRVWord>& TheComponents,
1580 SPIRVValue *getVector1() { return getValue(Vector1);}
1581 SPIRVValue *getVector2() { return getValue(Vector2);}
1614 SPIRVControlBarrier(SPIRVValue *TheScope,
1615 SPIRVValue *TheMemScope, SPIRVValue *TheMemSema,
1630 SPIRVValue *getExecScope() const { return getValue(ExecScope); }
1631 SPIRVValue *getMemScope() const { return getValue(MemScope); }
1632 SPIRVValue *getMemSemantic() const { return getValue(MemSema); }
1633 std::vector<SPIRVValue *> getOperands() {
1657 SPIRVGroupAsyncCopy(SPIRVValue *TheScope, SPIRVId TheId,
1658 SPIRVValue *TheDest, SPIRVValue *TheSrc, SPIRVValue *TheNumElems,
1659 SPIRVValue *TheStride, SPIRVValue *TheEvent, SPIRVBasicBlock *TheBB)
1673 SPIRVValue *getExecScope() const { return getValue(ExecScope); }
1674 SPIRVValue *getDestination()const { return getValue(Destination);}
1675 SPIRVValue *getSource()const { return getValue(Source);}
1676 SPIRVValue *getNumElements()const { return getValue(NumElements);}
1677 SPIRVValue *getStride()const { return getValue(Stride);}
1678 SPIRVValue *getEvent()const { return getValue(Event);}
1679 std::vector<SPIRVValue *> getOperands() {