Lines Matching refs:LLVMTy
444 const Type *LLVMTy = getTypeForSPIRVType(SpvType); in getOrCreateConstVector() local
445 assert(LLVMTy->isVectorTy()); in getOrCreateConstVector()
446 const FixedVectorType *LLVMVecTy = cast<FixedVectorType>(LLVMTy); in getOrCreateConstVector()
463 const Type *LLVMTy = getTypeForSPIRVType(SpvType); in getOrCreateConstVector() local
464 assert(LLVMTy->isVectorTy()); in getOrCreateConstVector()
465 const FixedVectorType *LLVMVecTy = cast<FixedVectorType>(LLVMTy); in getOrCreateConstVector()
480 const Type *LLVMTy = getTypeForSPIRVType(SpvType); in getOrCreateConstIntArray() local
481 assert(LLVMTy->isArrayTy()); in getOrCreateConstIntArray()
482 const ArrayType *LLVMArrTy = cast<ArrayType>(LLVMTy); in getOrCreateConstIntArray()
543 const Type *LLVMTy = getTypeForSPIRVType(SpvType); in getOrCreateConsIntVector() local
544 assert(LLVMTy->isVectorTy()); in getOrCreateConsIntVector()
545 const FixedVectorType *LLVMVecTy = cast<FixedVectorType>(LLVMTy); in getOrCreateConsIntVector()
559 const Type *LLVMTy = getTypeForSPIRVType(SpvType); in getOrCreateConstNullPtr() local
560 const TypedPointerType *LLVMPtrTy = cast<TypedPointerType>(LLVMTy); in getOrCreateConstNullPtr()
1279 SPIRVType *SPIRVGlobalRegistry::finishCreatingSPIRVType(const Type *LLVMTy, in finishCreatingSPIRVType() argument
1283 SPIRVToLLVMType[SpirvType] = unifyPtrType(LLVMTy); in finishCreatingSPIRVType()
1291 Type *LLVMTy) { in getOrCreateSPIRVType() argument
1292 Register Reg = DT.find(LLVMTy, CurMF); in getOrCreateSPIRVType()
1300 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB)); in getOrCreateSPIRVType()
1301 return finishCreatingSPIRVType(LLVMTy, MIB); in getOrCreateSPIRVType()
1311 Type *LLVMTy = IntegerType::get(CurMF->getFunction().getContext(), BitWidth); in getOrCreateSPIRVIntegerType() local
1312 return getOrCreateSPIRVType(BitWidth, I, TII, SPIRV::OpTypeInt, LLVMTy); in getOrCreateSPIRVIntegerType()
1318 Type *LLVMTy; in getOrCreateSPIRVFloatType() local
1321 LLVMTy = Type::getHalfTy(Ctx); in getOrCreateSPIRVFloatType()
1324 LLVMTy = Type::getFloatTy(Ctx); in getOrCreateSPIRVFloatType()
1327 LLVMTy = Type::getDoubleTy(Ctx); in getOrCreateSPIRVFloatType()
1332 return getOrCreateSPIRVType(BitWidth, I, TII, SPIRV::OpTypeFloat, LLVMTy); in getOrCreateSPIRVFloatType()
1345 Type *LLVMTy = IntegerType::get(CurMF->getFunction().getContext(), 1); in getOrCreateSPIRVBoolType() local
1346 Register Reg = DT.find(LLVMTy, CurMF); in getOrCreateSPIRVBoolType()
1352 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB)); in getOrCreateSPIRVBoolType()
1353 return finishCreatingSPIRVType(LLVMTy, MIB); in getOrCreateSPIRVBoolType()
1367 Type *LLVMTy = FixedVectorType::get( in getOrCreateSPIRVVectorType() local
1369 Register Reg = DT.find(LLVMTy, CurMF); in getOrCreateSPIRVVectorType()
1377 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB)); in getOrCreateSPIRVVectorType()
1378 return finishCreatingSPIRVType(LLVMTy, MIB); in getOrCreateSPIRVVectorType()
1384 Type *LLVMTy = ArrayType::get( in getOrCreateSPIRVArrayType() local
1386 Register Reg = DT.find(LLVMTy, CurMF); in getOrCreateSPIRVArrayType()
1396 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB)); in getOrCreateSPIRVArrayType()
1397 return finishCreatingSPIRVType(LLVMTy, MIB); in getOrCreateSPIRVArrayType()
1405 Type *LLVMTy = TypedPointerType::get(const_cast<Type *>(PointerElementType), in getOrCreateSPIRVPointerType() local
1419 return finishCreatingSPIRVType(LLVMTy, MIB); in getOrCreateSPIRVPointerType()
1433 const Type *LLVMTy = getTypeForSPIRVType(SpvType); in getOrCreateUndef() local
1434 assert(LLVMTy); in getOrCreateUndef()
1436 UndefValue *UV = UndefValue::get(const_cast<Type *>(LLVMTy)); in getOrCreateUndef()