Lines Matching refs:addConstant
218 virtual SPIRVValue *addConstant(SPIRVValue *);
219 virtual SPIRVValue *addConstant(SPIRVType *, uint64_t);
439 return addConstant(new SPIRVConstantSampler(this, TheType, getId(), AddrMode, in addSamplerConstant()
446 return addConstant(new SPIRVConstantPipeStorage(this, TheType, getId(), in addPipeStorageConstant()
478 addConstant(V); in getLiteralAsConstant()
874 SPIRVModuleImpl::addConstant(SPIRVValue *C) { in addConstant() function in SPIRV::SPIRVModuleImpl
879 SPIRVModuleImpl::addConstant(SPIRVType *Ty, uint64_t V) { in addConstant() function in SPIRV::SPIRVModuleImpl
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()
959 return static_cast<SPIRVInstruction *>(addConstant(Inst)); in addInstruction()