Lines Matching defs:LLVMTy
510 const Type *LLVMTy = getTypeForSPIRVType(SpvType);
511 assert(LLVMTy->isVectorTy());
512 const FixedVectorType *LLVMVecTy = cast<FixedVectorType>(LLVMTy);
529 const Type *LLVMTy = getTypeForSPIRVType(SpvType);
530 assert(LLVMTy->isVectorTy());
531 const FixedVectorType *LLVMVecTy = cast<FixedVectorType>(LLVMTy);
546 const Type *LLVMTy = getTypeForSPIRVType(SpvType);
547 assert(LLVMTy->isArrayTy());
548 const ArrayType *LLVMArrTy = cast<ArrayType>(LLVMTy);
612 const Type *LLVMTy = getTypeForSPIRVType(SpvType);
613 assert(LLVMTy->isVectorTy());
614 const FixedVectorType *LLVMVecTy = cast<FixedVectorType>(LLVMTy);
628 const Type *LLVMTy = getTypeForSPIRVType(SpvType);
629 unsigned AddressSpace = typeToAddressSpace(LLVMTy);
632 PointerType::get(LLVMTy->getContext(), AddressSpace));
1473 SPIRVType *SPIRVGlobalRegistry::finishCreatingSPIRVType(const Type *LLVMTy,
1477 SPIRVToLLVMType[SpirvType] = unifyPtrType(LLVMTy);
1485 Type *LLVMTy) {
1486 Register Reg = DT.find(LLVMTy, CurMF);
1494 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB));
1495 return finishCreatingSPIRVType(LLVMTy, MIB);
1505 Type *LLVMTy = IntegerType::get(CurMF->getFunction().getContext(), BitWidth);
1506 return getOrCreateSPIRVType(BitWidth, I, TII, SPIRV::OpTypeInt, LLVMTy);
1512 Type *LLVMTy;
1515 LLVMTy = Type::getHalfTy(Ctx);
1518 LLVMTy = Type::getFloatTy(Ctx);
1521 LLVMTy = Type::getDoubleTy(Ctx);
1526 return getOrCreateSPIRVType(BitWidth, I, TII, SPIRV::OpTypeFloat, LLVMTy);
1539 Type *LLVMTy = IntegerType::get(CurMF->getFunction().getContext(), 1);
1540 Register Reg = DT.find(LLVMTy, CurMF);
1546 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB));
1547 return finishCreatingSPIRVType(LLVMTy, MIB);
1561 Type *LLVMTy = FixedVectorType::get(
1563 Register Reg = DT.find(LLVMTy, CurMF);
1571 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB));
1572 return finishCreatingSPIRVType(LLVMTy, MIB);
1578 Type *LLVMTy = ArrayType::get(
1580 Register Reg = DT.find(LLVMTy, CurMF);
1590 DT.add(LLVMTy, CurMF, getSPIRVTypeID(MIB));
1591 return finishCreatingSPIRVType(LLVMTy, MIB);
1599 Type *LLVMTy = TypedPointerType::get(const_cast<Type *>(PointerElementType),
1614 finishCreatingSPIRVType(LLVMTy, MIB);
1630 const Type *LLVMTy = getTypeForSPIRVType(SpvType);
1631 assert(LLVMTy);
1633 UndefValue *UV = UndefValue::get(const_cast<Type *>(LLVMTy));