Lines Matching refs:getId
80 SPIRVId getId(SPIRVId Id = SPIRVID_INVALID, unsigned Increment = 1);
381 auto L = add(new SPIRVLine(E, FileName->getId(), Line, Column)); in addLine()
412 auto G = new SPIRVDecorationGroup(this, getId()); in optimizeDecorates()
415 const_cast<SPIRVDecorateGeneric*>(D)->setTargetId(G->getId()); in optimizeDecorates()
439 return addConstant(new SPIRVConstantSampler(this, TheType, getId(), AddrMode, in addSamplerConstant()
446 return addConstant(new SPIRVConstantPipeStorage(this, TheType, getId(), in addPipeStorageConstant()
476 auto V = new SPIRVConstant(this, Ty, getId(), static_cast<uint64_t>(Literal)); in getLiteralAsConstant()
518 SPIRVId Id = Entry->getId(); in addEntry()
519 assert(Entry->getId() != SPIRVID_INVALID && "Invalid id"); in addEntry()
569 SPIRVModuleImpl::getId(SPIRVId Id, unsigned increment) { in getId() function in SPIRV::SPIRVModuleImpl
608 SPIRVId TmpBuiltinSetId = getId(); in importBuiltinSet()
637 NamedId.insert(E->getId()); in setName()
639 NamedId.erase(E->getId()); in setName()
667 return addType(new SPIRVTypeVoid(this, getId())); in addVoidType()
672 return addType(new SPIRVTypeArray(this, getId(), ElementType, Length)); in addArrayType()
677 return addType(new SPIRVTypeBool(this, getId())); in addBoolType()
685 auto Ty = new SPIRVTypeInt(this, getId(), BitWidth, false); in addIntegerType()
692 SPIRVTypeFloat *T = addType(new SPIRVTypeFloat(this, getId(), BitWidth)); in addFloatType()
699 return addType(new SPIRVTypePointer(this, getId(), StorageClass, in addPointerType()
706 return addType(new SPIRVTypeFunction(this, getId(), ReturnType, in addFunctionType()
712 return addType(new SPIRVTypeOpaque(this, getId(), Name)); in addOpaqueType()
717 auto T = new SPIRVTypeStruct(this, getId(), NumMembers, Name); in openStructType()
728 return addType(new SPIRVTypeVector(this, getId(), CompType, CompCount)); in addVectorType()
732 return addType(new SPIRVTypeOpaqueGeneric(TheOpCode, this, getId())); in addOpaqueGenericType()
737 return addType(new SPIRVTypeDeviceEvent(this, getId())); in addDeviceEventType()
742 return addType(new SPIRVTypeQueue(this, getId())); in addQueueType()
747 return addType(new SPIRVTypePipe(this, getId())); in addPipeType()
753 return addType(new SPIRVTypeImage(this, getId(), in addImageType()
754 SampledType ? SampledType->getId() : 0, Desc)); in addImageType()
760 return addType(new SPIRVTypeImage(this, getId(), in addImageType()
761 SampledType ? SampledType->getId() : 0, Desc, Acc)); in addImageType()
766 return addType(new SPIRVTypeSampler(this, getId())); in addSamplerType()
771 return addType(new SPIRVTypePipeStorage(this, getId())); in addPipeStorageType()
776 return addType(new SPIRVTypeSampledImage(this, getId(), T)); in addSampledImageType()
784 Seen.insert(T->getId()); in createForwardPointers()
796 if (Seen.find(Ptr->getId()) == Seen.end()) { in createForwardPointers()
813 getId(Id, FuncType->getNumParameters() + 1))); in addFunction()
818 return Func->addBasicBlock(new SPIRVBasicBlock(getId(Id), Func)); in addBasicBlock()
846 return add(new SPIRVForward(this, Ty, getId())); in addForward()
856 SPIRVId Id = Entry->getId(); in replaceForward()
857 SPIRVId ForwardId = Forward->getId(); in replaceForward()
882 return addConstant(new SPIRVConstantTrue(this, Ty, getId())); in addConstant()
884 return addConstant(new SPIRVConstantFalse(this, Ty, getId())); in addConstant()
888 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addConstant()
898 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addIntegerConstant()
903 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addFloatConstant()
908 return addConstant(new SPIRVConstant(this, Ty, getId(), V)); in addDoubleConstant()
913 return addConstant(new SPIRVConstantNull(this, Ty, getId())); in addNullConstant()
919 return addConstant(new SPIRVConstantComposite(this, Ty, getId(), Elements)); in addCompositeConstant()
924 return addConstant(new SPIRVUndef(this, TheType, getId())); in addUndef()
932 return BB->addInstruction(new SPIRVStore(Target->getId(), in addStoreInst()
933 Source->getId(), TheMemoryAccess, BB)); in addStoreInst()
965 return addInstruction(new SPIRVLoad(getId(), Source->getId(), in addLoadInst()
972 return addInstruction(new SPIRVPhi(Type, getId(), IncomingPairs, BB), BB); in addPhiInst()
979 return addInstruction(new SPIRVExtInst(TheType, getId(), in addExtInst()
987 return addInstruction(new SPIRVExtInst(TheType, getId(), in addExtInst()
994 return addInstruction(new SPIRVFunctionCall(getId(), TheFunction, in addCallInst()
1001 return addInstruction(SPIRVInstTemplateBase::create(TheOpCode, Type, getId(), in addBinaryInst()
1002 getVec(Op1->getId(), Op2->getId()), BB, this), BB); in addBinaryInst()
1019 TheType, getId(), getVec(Op->getId()), BB, this), BB); in addUnaryInst()
1025 return addInstruction(new SPIRVVectorExtractDynamic(getId(), TheVector, in addVectorExtractDynamicInst()
1032 return addInstruction(new SPIRVVectorInsertDynamic(getId(), TheVector, in addVectorInsertDynamicInst()
1040 return addInstruction(new SPIRVVectorShuffle(getId(), Type, Vec1, Vec2, in addVectorShuffleInst()
1060 TheType, getId(), getVec(Op1->getId(), Op2->getId()), BB, this), BB); in addCmpInst()
1081 return addInstruction(new SPIRVSelect(getId(), Condition->getId(), in addSelectInst()
1082 Op1->getId(), Op2->getId(), BB), BB); in addSelectInst()
1090 Type, getId(), getVec(Base->getId(), Base->getIds(Indices)), in addPtrAccessChainInst()
1098 return addInstruction(new SPIRVGroupAsyncCopy(Scope, getId(), Dest, Src, in addAsyncGroupCopy()
1105 return addInstruction(new SPIRVCompositeExtract(Type, getId(), TheVector, in addCompositeExtractInst()
1113 return addInstruction(new SPIRVCompositeInsert(getId(), Object, Composite, in addCompositeInsertInst()
1120 return addInstruction(new SPIRVCopyObject(TheType, getId(), Operand, BB), BB); in addCopyObjectInst()
1144 SPIRVVariable *Variable = new SPIRVVariable(Type, getId(), Initializer, in addVariable()
1242 return a->getId() < b->getId(); in TopologicalSort()
1346 return addDecorationGroup(new SPIRVDecorationGroup(this, getId())); in addDecorationGroup()
1388 auto S = add(new SPIRVString(this, getId(), Str)); in getString()
1473 IdVec.push_back(i->getId()); in getIds()
1481 IdVec.push_back(i->getId()); in getIds()
1489 SPIRVId Id = Ty ? getId() : SPIRVID_INVALID; in addInstTemplate()
1499 SPIRVId Id = Ty ? getId() : SPIRVID_INVALID; in addInstTemplate()