| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | TargetLoweringObjectFile.cpp | 267 if (IntegerType *ITy = in getKindForGlobal() local 269 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal() 270 ITy->getBitWidth() == 32) && in getKindForGlobal() 272 if (ITy->getBitWidth() == 8) in getKindForGlobal() 274 if (ITy->getBitWidth() == 16) in getKindForGlobal() 277 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IndirectBrExpandPass.cpp | 157 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction() local 158 ConstantInt *BBIndexC = ConstantInt::get(ITy, BBIndex); in runOnFunction() 195 auto *ITy = in runOnFunction() local 197 if (!CommonITy || ITy->getBitWidth() > CommonITy->getBitWidth()) in runOnFunction() 198 CommonITy = ITy; in runOnFunction()
|
| H A D | ValueTypes.cpp | 144 if (IntegerType *ITy = dyn_cast<IntegerType>(LLVMTy)) in getExtendedSizeInBits() local 145 return TypeSize::Fixed(ITy->getBitWidth()); in getExtendedSizeInBits()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 157 template <typename ITy> bool match(ITy *V) { in match() 193 template <typename ITy> bool match(ITy *V) { in match() 208 template <typename ITy> bool match(ITy *V) { in match() 235 template <typename ITy> bool match(ITy *V) { in match() 260 template <typename ITy> bool match(ITy *V) { in match() 311 template <typename ITy> bool match(ITy *V) { in match() 335 template <typename ITy> bool match(ITy *V) { in match() 385 template <typename ITy> bool match(ITy *V) { in match() 411 template <typename ITy> bool match(ITy *V) { in match() 529 template <typename ITy> bool match(ITy *V) { in match() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 2844 return getTrue(ITy); in simplifyICmpOfBools() 2869 return getTrue(ITy); in simplifyICmpOfBools() 2881 return getTrue(ITy); in simplifyICmpOfBools() 2892 return getTrue(ITy); in simplifyICmpOfBools() 2896 return getTrue(ITy); in simplifyICmpOfBools() 2914 return getFalse(ITy); in simplifyICmpWithZero() 2916 return getTrue(ITy); in simplifyICmpWithZero() 2925 return getTrue(ITy); in simplifyICmpWithZero() 3033 return Pred == ICmpInst::ICMP_SLT ? getTrue(ITy) : getFalse(ITy); in simplifyICmpWithBinOpOnLHS() 3035 return Pred == ICmpInst::ICMP_SLT ? getFalse(ITy) : getTrue(ITy); in simplifyICmpWithBinOpOnLHS() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | VerifierTest.cpp | 56 IntegerType *ITy = IntegerType::get(C, 32); in TEST() local 57 ConstantInt *CI = ConstantInt::get(ITy, 0); in TEST() 78 PointerType *PT = PointerType::get(ITy, 0); in TEST()
|
| H A D | InstructionsTest.cpp | 1427 Type *ITy = Type::getInt32Ty(C); in TEST() local 1428 FunctionType *IFnTy = FunctionType::get(ITy, {}); in TEST() 1433 Type *VITy = FixedVectorType::get(ITy, 2); in TEST() 1439 Type *AITy = ArrayType::get(ITy, 2); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILOpBuilder.cpp | 81 IntegerType *ITy = cast<IntegerType>(Ty); in getOverloadKind() local 82 unsigned Bits = ITy->getBitWidth(); in getOverloadKind()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Function.cpp | 1321 IntegerType *ITy = cast<IntegerType>(Ty); in DecodeFixedType() local 1322 assert(ITy->getBitWidth() % 2 == 0); in DecodeFixedType() 1323 return IntegerType::get(Context, ITy->getBitWidth() / 2); in DecodeFixedType() 1561 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() local 1562 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType() 1576 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType() local 1577 NewTy = IntegerType::get(ITy->getContext(), ITy->getBitWidth() / 2); in matchIntrinsicType()
|
| H A D | AutoUpgrade.cpp | 3017 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall() local 3018 Rep = Builder.CreateAnd(Builder.CreateBitCast(CI->getArgOperand(0), ITy), in UpgradeIntrinsicCall() 3019 Builder.CreateBitCast(CI->getArgOperand(1), ITy)); in UpgradeIntrinsicCall() 3026 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall() local 3027 Rep = Builder.CreateNot(Builder.CreateBitCast(CI->getArgOperand(0), ITy)); in UpgradeIntrinsicCall() 3029 Builder.CreateBitCast(CI->getArgOperand(1), ITy)); in UpgradeIntrinsicCall() 3036 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall() local 3037 Rep = Builder.CreateOr(Builder.CreateBitCast(CI->getArgOperand(0), ITy), in UpgradeIntrinsicCall() 3038 Builder.CreateBitCast(CI->getArgOperand(1), ITy)); in UpgradeIntrinsicCall() 3045 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall() local [all …]
|
| H A D | Core.cpp | 3479 Type* ITy = Type::getInt32Ty(unwrap(B)->GetInsertBlock()->getContext()); in LLVMBuildMalloc() local 3481 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildMalloc() 3483 ITy, unwrap(Ty), AllocSize, in LLVMBuildMalloc() 3490 Type* ITy = Type::getInt32Ty(unwrap(B)->GetInsertBlock()->getContext()); in LLVMBuildArrayMalloc() local 3492 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildArrayMalloc() 3494 ITy, unwrap(Ty), AllocSize, in LLVMBuildArrayMalloc()
|
| H A D | Constants.cpp | 396 if (IntegerType *ITy = dyn_cast<IntegerType>(Ty)) in getAllOnesValue() local 398 APInt::getAllOnes(ITy->getBitWidth())); in getAllOnesValue() 872 IntegerType *ITy = IntegerType::get(Context, V.getBitWidth()); in get() local 873 Slot.reset(new ConstantInt(ITy, V)); in get()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsRegisterBankInfo.h | 172 void setTypes(const MachineInstr *MI, InstType ITy);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 954 Type *ITy = I->getType(); in SimplifyMultipleUseDemandedBits() local 975 return Constant::getIntegerValue(ITy, Known.One); in SimplifyMultipleUseDemandedBits() 1001 return Constant::getIntegerValue(ITy, Known.One); in SimplifyMultipleUseDemandedBits() 1026 return Constant::getIntegerValue(ITy, Known.One); in SimplifyMultipleUseDemandedBits() 1044 return Constant::getIntegerValue(ITy, Known.One); in SimplifyMultipleUseDemandedBits() 1071 return Constant::getIntegerValue(ITy, Known.One); in SimplifyMultipleUseDemandedBits()
|
| H A D | InstCombineCasts.cpp | 1080 if (IntegerType *ITy = dyn_cast<IntegerType>(Zext.getType())) { in transformZExtICmp() local 1096 ConstantInt::get(ITy, UnknownBit)); in transformZExtICmp() 1100 Result, ConstantInt::get(ITy, UnknownBit.countTrailingZeros())); in transformZExtICmp() 1103 Result = Builder.CreateXor(Result, ConstantInt::get(ITy, 1)); in transformZExtICmp()
|
| H A D | InstCombineCalls.cpp | 100 if (IntegerType* ITy = dyn_cast<IntegerType>(Ty)) { in getPromotedType() local 101 if (ITy->getBitWidth() < 32) in getPromotedType() 289 Type *ITy = IntegerType::get(MI->getContext(), Len*8); // n=1 -> i8. in SimplifyAnyMemSet() local 293 Type *NewDstPtrTy = PointerType::get(ITy, DstAddrSp); in SimplifyAnyMemSet() 298 StoreInst *S = Builder.CreateStore(ConstantInt::get(ITy, Fill), Dest, in SimplifyAnyMemSet()
|
| H A D | InstCombineVectorOps.cpp | 1685 Type *ITy = I->getType(); in canEvaluateShuffled() local 1686 if (ITy->isVectorTy() && in canEvaluateShuffled() 1687 Mask.size() > cast<FixedVectorType>(ITy)->getNumElements()) in canEvaluateShuffled()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2797 auto *ITy = cast<IntegerType>(NewTy); in copyNonnullMetadata() local 2799 ConstantPointerNull::get(cast<PointerType>(Ptr->getType())), ITy); in copyNonnullMetadata() 2800 auto *NonNullInt = ConstantExpr::getAdd(NullInt, ConstantInt::get(ITy, 1)); in copyNonnullMetadata() 3166 Type *ITy = I->getType(); in recognizeBSwapOrBitReverseIdiom() local 3167 if (!ITy->isIntOrIntVectorTy() || ITy->getScalarSizeInBits() > 128) in recognizeBSwapOrBitReverseIdiom() 3183 Type *DemandedTy = ITy; in recognizeBSwapOrBitReverseIdiom() 3190 if (auto *IVecTy = dyn_cast<VectorType>(ITy)) in recognizeBSwapOrBitReverseIdiom() 3196 if (DemandedBW > ITy->getScalarSizeInBits()) in recognizeBSwapOrBitReverseIdiom() 3245 if (ITy != Result->getType()) { in recognizeBSwapOrBitReverseIdiom() 3246 auto *ExtInst = CastInst::CreateIntegerCast(Result, ITy, false, "zext", I); in recognizeBSwapOrBitReverseIdiom()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstrArithmetic.td | 643 : ITy<opcode, MRMDestReg, typeinfo, outlist, 676 : ITy<opcode, MRMSrcReg, typeinfo, 693 : ITy<opcode, MRMSrcReg, typeinfo, (outs), 706 : ITy<opcode, MRMSrcMem, typeinfo, outlist, 715 : ITy<opcode, MRMSrcMem, typeinfo, outlist, 749 : ITy<opcode, f, typeinfo, outlist, 780 : ITy<opcode, f, typeinfo, outlist, 812 : ITy<opcode, MRMDestMem, typeinfo, 852 : ITy<opcode, f, typeinfo, 884 : ITy<0x82, f, typeinfo, [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 1141 IntegerType *ITy = nullptr; in findCommonType() local 1170 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth()) in findCommonType() 1171 ITy = UserITy; in findCommonType() 1182 return {TyIsCommon ? Ty : nullptr, ITy}; in findCommonType() 2022 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice() local 2023 if (ITy->getBitWidth() < DL.getTypeStoreSizeInBits(ITy).getFixedSize()) in isIntegerWideningViableForSlice() 2047 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice() local 2048 if (ITy->getBitWidth() < DL.getTypeStoreSizeInBits(ITy).getFixedSize()) in isIntegerWideningViableForSlice()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 346 template <typename ITy> bool match(const MachineRegisterInfo &MRI, ITy &&V) {
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 382 if (IntegerType *ITy = dyn_cast<IntegerType>(Ty)) in mightUseCTR() local 383 return ITy->getBitWidth() > (Is32Bit ? 32U : 64U); in mightUseCTR()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGAtomic.cpp | 791 llvm::Type *ITy = llvm::IntegerType::get(CGF.getLLVMContext(), SizeInBits); in AddDirectArgument() local 792 Address Ptr = Address(CGF.Builder.CreateBitCast(Val, ITy->getPointerTo()), in AddDirectArgument() 793 ITy, Align); in AddDirectArgument()
|
| H A D | CGCall.cpp | 3439 llvm::IntegerType *ITy, in EmitCMSEClearRecord() argument 3441 assert(Src->getType() == ITy); in EmitCMSEClearRecord() 3442 assert(ITy->getScalarSizeInBits() <= 64); in EmitCMSEClearRecord() 3445 int Size = DataLayout.getTypeStoreSize(ITy); in EmitCMSEClearRecord() 3663 auto *ITy = dyn_cast<llvm::IntegerType>(RV->getType()); in EmitFunctionEpilog() local 3664 if (ITy != nullptr && isa<RecordType>(RetTy.getCanonicalType())) in EmitFunctionEpilog() 3665 RV = EmitCMSEClearRecord(RV, ITy, RetTy); in EmitFunctionEpilog()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 350 if (auto *ITy = dyn_cast<IntegerType>(Ty)) { in printReturnValStr() local 351 size = ITy->getBitWidth(); in printReturnValStr()
|