Home
last modified time | relevance | path

Searched refs:isLegalInteger (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDataLayout.h266 bool isLegalInteger(uint64_t Width) const { in isLegalInteger() function
270 bool isIllegalInteger(uint64_t Width) const { return !isLegalInteger(Width); } in isIllegalInteger()
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp258 bool FromLegal = MinBitWidth == 1 || DL.isLegalInteger(OrigBitWidth); in getMinBitWidth()
259 bool ToLegal = MinBitWidth == 1 || DL.isLegalInteger(MinBitWidth); in getMinBitWidth()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h520 if (DL.isLegalInteger(SrcSize) && in getCastInstrCost()
527 if (DL.isLegalInteger(DstSize) && in getCastInstrCost()
541 if (!DstSize.isScalable() && DL.isLegalInteger(DstSize.getFixedSize())) in getCastInstrCost()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIVUsers.cpp157 if (Width > 64 || !DL.isLegalInteger(Width)) in AddUsersIfInteresting()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DIRBuilderTest.cpp486 EXPECT_TRUE(M->getDataLayout().isLegalInteger(32)); in TEST_F()
488 EXPECT_FALSE(M->getDataLayout().isLegalInteger(32)); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp524 if (!Cast->getModule()->getDataLayout().isLegalInteger(Width)) in visitIVCast()
922 if (PhiWidth < BCWidth || !DL.isLegalInteger(PhiWidth)) in FindLoopCounter()
H A DSROA.cpp2100 bool WholeAllocaOp = P.empty() && DL.isLegalInteger(SizeInBits); in isIntegerWideningViable()
2793 DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy).getFixedSize()); in visitMemSetInst()
4272 DL.isLegalInteger(P.size() * 8)) in rewritePartition()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp220 return DL.isLegalInteger(BitWidth); in isDesirableIntType()
233 bool FromLegal = FromWidth == 1 || DL.isLegalInteger(FromWidth); in shouldChangeType()
234 bool ToLegal = ToWidth == 1 || DL.isLegalInteger(ToWidth); in shouldChangeType()
H A DInstCombinePHI.cpp1548 !DL.isLegalInteger(PN.getType()->getPrimitiveSizeInBits())) in visitPHINode()
H A DInstCombineCasts.cpp2870 DL.isLegalInteger(DestTy->getScalarSizeInBits()) && in visitBitCast()
H A DInstCombineCompares.cpp2247 DL.isLegalInteger(TypeBits - Amt)) { in foldICmpShlConstant()
6107 if (!DL.isLegalInteger(NumBits)) in foldReductionIdiom()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1356 if (DL.isLegalInteger(Len * 8) && isOnlyUsedInZeroEqualityComparison(CI)) { in optimizeMemCmpConstantSize()