Lines Matching refs:SPIRVType
43 #include "SPIRVType.h"
102 virtual SPIRVType *getValueType(SPIRVId TheId)const;
103 virtual std::vector<SPIRVType *> getValueTypes(const std::vector<SPIRVId>&)
179 virtual SPIRVForward *addForward(SPIRVType *Ty);
180 virtual SPIRVForward *addForward(SPIRVId, SPIRVType *Ty);
187 virtual SPIRVTypeArray *addArrayType(SPIRVType *, SPIRVConstant *);
190 virtual SPIRVTypeFunction *addFunctionType(SPIRVType *,
191 const std::vector<SPIRVType *> &);
194 virtual SPIRVTypePointer *addPointerType(SPIRVStorageClassKind, SPIRVType *);
195 virtual SPIRVTypeImage *addImageType(SPIRVType *,
197 virtual SPIRVTypeImage *addImageType(SPIRVType *,
204 virtual SPIRVTypeVector *addVectorType(SPIRVType *, SPIRVWord);
205 virtual SPIRVType *addOpaqueGenericType(Op);
216 virtual SPIRVValue *addCompositeConstant(SPIRVType *,
219 virtual SPIRVValue *addConstant(SPIRVType *, uint64_t);
223 virtual SPIRVValue *addNullConstant(SPIRVType *);
224 virtual SPIRVValue *addUndef(SPIRVType *TheType);
225 virtual SPIRVValue *addSamplerConstant(SPIRVType *TheType, SPIRVWord AddrMode,
227 virtual SPIRVValue* addPipeStorageConstant(SPIRVType* TheType,
231 virtual SPIRVInstruction *addPtrAccessChainInst(SPIRVType *, SPIRVValue *,
236 virtual SPIRVInstruction *addExtInst(SPIRVType *,
239 virtual SPIRVInstruction *addExtInst(SPIRVType *,
242 virtual SPIRVInstruction *addBinaryInst(Op, SPIRVType *, SPIRVValue *,
246 virtual SPIRVInstruction *addCmpInst(Op, SPIRVType *, SPIRVValue *,
250 virtual SPIRVInstruction *addPhiInst(SPIRVType *, std::vector<SPIRVValue *>,
252 virtual SPIRVInstruction *addCompositeExtractInst(SPIRVType *, SPIRVValue *,
257 virtual SPIRVInstruction *addCopyObjectInst(SPIRVType *TheType,
266 virtual SPIRVInstruction *addGroupInst(Op OpCode, SPIRVType *Type,
272 SPIRVBasicBlock* BB, SPIRVType *Ty);
274 const std::vector<SPIRVWord>& Ops, SPIRVBasicBlock* BB, SPIRVType *Ty);
286 virtual SPIRVInstruction *addUnaryInst(Op, SPIRVType *, SPIRVValue *,
288 virtual SPIRVInstruction *addVariable(SPIRVType *, bool, SPIRVLinkageTypeKind,
290 virtual SPIRVValue *addVectorShuffleInst(SPIRVType *Type, SPIRVValue *Vec1,
322 typedef std::vector<SPIRVType *> SPIRVTypeVec;
437 SPIRVModuleImpl::addSamplerConstant(SPIRVType* TheType,
444 SPIRVModuleImpl::addPipeStorageConstant(SPIRVType* TheType,
503 TypeVec.push_back(static_cast<SPIRVType*>(E));
649 auto Ty = static_cast<SPIRVType *>(getEntry(ID));
671 SPIRVModuleImpl::addArrayType(SPIRVType *ElementType, SPIRVConstant *Length) {
698 SPIRVType *ElementType) {
704 SPIRVModuleImpl::addFunctionType(SPIRVType *ReturnType,
705 const std::vector<SPIRVType *>& ParameterTypes) {
727 SPIRVModuleImpl::addVectorType(SPIRVType* CompType, SPIRVWord CompCount) {
730 SPIRVType *
751 SPIRVModuleImpl::addImageType(SPIRVType *SampledType,
758 SPIRVModuleImpl::addImageType(SPIRVType *SampledType,
845 SPIRVModuleImpl::addForward(SPIRVType *Ty) {
850 SPIRVModuleImpl::addForward(SPIRVId Id, SPIRVType *Ty) {
879 SPIRVModuleImpl::addConstant(SPIRVType *Ty, uint64_t V) {
912 SPIRVModuleImpl::addNullConstant(SPIRVType *Ty) {
917 SPIRVModuleImpl::addCompositeConstant(SPIRVType *Ty,
923 SPIRVModuleImpl::addUndef(SPIRVType *TheType) {
944 SPIRVModuleImpl::addGroupInst(Op OpCode, SPIRVType *Type,
970 SPIRVModuleImpl::addPhiInst(SPIRVType *Type,
976 SPIRVModuleImpl::addExtInst(SPIRVType *TheType, SPIRVWord BuiltinSet,
984 SPIRVModuleImpl::addExtInst(SPIRVType *TheType, SPIRVWord BuiltinSet,
999 SPIRVModuleImpl::addBinaryInst(Op TheOpCode, SPIRVType *Type,
1016 SPIRVModuleImpl::addUnaryInst(Op TheOpCode, SPIRVType *TheType,
1037 SPIRVModuleImpl::addVectorShuffleInst(SPIRVType * Type, SPIRVValue *Vec1,
1057 SPIRVModuleImpl::addCmpInst(Op TheOpCode, SPIRVType *TheType,
1086 SPIRVModuleImpl::addPtrAccessChainInst(SPIRVType *Type, SPIRVValue *Base,
1103 SPIRVModuleImpl::addCompositeExtractInst(SPIRVType *Type, SPIRVValue *TheVector,
1118 SPIRVModuleImpl::addCopyObjectInst(SPIRVType *TheType, SPIRVValue *Operand,
1140 SPIRVModuleImpl::addVariable(SPIRVType *Type, bool IsConstant,
1182 typedef std::vector<SPIRVType *> SPIRVTypeVec;
1223 TypeIntVec.push_back(static_cast<SPIRVType*>(E));
1231 TypeVec.push_back(static_cast<SPIRVType*>(E));
1448 SPIRVType *
1461 std::vector<SPIRVType *>
1463 std::vector<SPIRVType *> TypeVec;
1487 SPIRVBasicBlock* BB, SPIRVType *Ty) {
1497 const std::vector<SPIRVWord>& Ops, SPIRVBasicBlock* BB, SPIRVType *Ty) {