/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Operator.h | 406 GEPNoWrapFlags getNoWrapFlags() const { 411 bool isInBounds() const { return getNoWrapFlags().isInBounds(); } 414 return getNoWrapFlags().hasNoUnsignedSignedWrap(); 418 return getNoWrapFlags().hasNoUnsignedWrap();
|
H A D | Instructions.h | 1082 GEPNoWrapFlags getNoWrapFlags() const;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ScalarEvolutionExpressions.h | 222 NoWrapFlags getNoWrapFlags(NoWrapFlags Mask = NoWrapMask) const { 227 return getNoWrapFlags(FlagNUW) != FlagAnyWrap; in hasNoUnsignedWrap() 231 return getNoWrapFlags(FlagNSW) != FlagAnyWrap; in hasNoSignedWrap() 234 bool hasNoSelfWrap() const { return getNoWrapFlags(FlagNW) != FlagAnyWrap; } 837 Expr->getNoWrapFlags()); in visitAddRecExpr() 947 return SE.getAddRecExpr(Operands, L, Expr->getNoWrapFlags()); in visitAddRecExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolutionDivision.cpp | 145 Numerator->getNoWrapFlags()); in visitAddRecExpr() 147 Numerator->getNoWrapFlags()); in visitAddRecExpr()
|
H A D | PHITransAddr.cpp | 218 GEP->getNoWrapFlags(), {DL, TLI, DT, AC})) { in translateSubExpr() 394 Result->setNoWrapFlags(GEP->getNoWrapFlags()); in insertTranslatedSubExpr()
|
H A D | ScalarEvolution.cpp | 314 !AR->getNoWrapFlags((NoWrapFlags)(FlagNUW | FlagNSW))) in print() 1097 return !Changed ? Expr : SE.getAddExpr(Operands, Expr->getNoWrapFlags()); in getLosslessPtrToIntExpr() 1107 return !Changed ? Expr : SE.getMulExpr(Operands, Expr->getNoWrapFlags()); in getLosslessPtrToIntExpr() 1357 ScalarEvolution::maskFlags(SA->getNoWrapFlags(), SCEV::FlagNUW); in getPreStartForExtend() 1367 if (PreAR && PreAR->getNoWrapFlags(WrapType) && in getPreStartForExtend() 1378 if (PreAR && AR->getNoWrapFlags(WrapType)) { in getPreStartForExtend() 1477 if (PreAR && PreAR->getNoWrapFlags(WrapType)) { // proves (2) in proveNoWrapByVaryingStart() 1631 return getAddRecExpr(Start, Step, L, AR->getNoWrapFlags()); in getZeroExtendExprImpl() 1677 return getAddRecExpr(Start, Step, L, AR->getNoWrapFlags()); in getZeroExtendExprImpl() 1695 return getAddRecExpr(Start, Step, L, AR->getNoWrapFlags()); in getZeroExtendExprImpl() [all …]
|
H A D | LoopCacheAnalysis.cpp | 436 AccessFnAR->getNoWrapFlags()); in delinearize()
|
H A D | ConstantFolding.cpp | 874 if (Constant *C = CastGEPIndices(SrcElemTy, Ops, ResTy, GEP->getNoWrapFlags(), in SymbolicallyEvaluateGEP() 899 GEPNoWrapFlags NW = GEP->getNoWrapFlags(); in SymbolicallyEvaluateGEP() 902 NW &= GEP->getNoWrapFlags(); in SymbolicallyEvaluateGEP() 1017 GEP->getNoWrapFlags(), in ConstantFoldInstOperandsImpl()
|
H A D | DependenceAnalysis.cpp | 985 if (!AddRec->getNoWrapFlags()) in checkSubscript() 3107 AddRec->getNoWrapFlags()); in zeroCoefficient() 3132 AddRec->getNoWrapFlags()); in addToCoefficient() 3139 AddRec->getNoWrapFlags()); in addToCoefficient()
|
H A D | LoopAccessAnalysis.cpp | 1410 if (AR->getNoWrapFlags(SCEV::NoWrapMask)) in isNoWrapAddRec() 1450 return OpAR->getLoop() == L && OpAR->getNoWrapFlags(SCEV::FlagNSW); in isNoWrapAddRec()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopConstrainer.cpp | 197 if (AR->getNoWrapFlags(SCEV::FlagNSW)) in parseLoopStructure() 219 return AR->getNoWrapFlags(SCEV::FlagNSW) != SCEV::FlagAnyWrap; in parseLoopStructure() 284 if (IndVarBase->getNoWrapFlags(SCEV::FlagNUW) && in parseLoopStructure() 348 if (IndVarBase->getNoWrapFlags(SCEV::FlagNUW) && in parseLoopStructure()
|
H A D | ScalarEvolutionExpander.cpp | 556 Sum = InsertBinop(Instruction::Add, Sum, W, S->getNoWrapFlags(), in visitAddExpr() 640 auto NWFlags = S->getNoWrapFlags(); in visitMulExpr() 648 Prod = InsertBinop(Instruction::Mul, Prod, W, S->getNoWrapFlags(), in visitMulExpr() 1234 S->getNoWrapFlags(SCEV::FlagNW))); in visitAddRecExpr() 1251 S->getNoWrapFlags(SCEV::FlagNW)); in visitAddRecExpr()
|
H A D | FunctionComparator.cpp | 436 if (int Res = cmpNumbers(GEPL->getNoWrapFlags().getRaw(), in cmpConstants() 437 GEPR->getNoWrapFlags().getRaw())) in cmpConstants()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Instruction.cpp | 651 DestGEP->setNoWrapFlags(SrcGEP->getNoWrapFlags() | in copyIRFlags() 652 DestGEP->getNoWrapFlags()); in copyIRFlags() 692 DestGEP->setNoWrapFlags(SrcGEP->getNoWrapFlags() & in andIRFlags() 693 DestGEP->getNoWrapFlags()); in andIRFlags()
|
H A D | Operator.cpp | 45 return GEP->getNoWrapFlags() != GEPNoWrapFlags::none() || in hasPoisonGeneratingFlags()
|
H A D | Instructions.cpp | 1559 GEPNoWrapFlags NW = cast<GEPOperator>(this)->getNoWrapFlags(); in setIsInBounds() 1567 GEPNoWrapFlags GetElementPtrInst::getNoWrapFlags() const { in getNoWrapFlags() function in GetElementPtrInst 1568 return cast<GEPOperator>(this)->getNoWrapFlags(); in getNoWrapFlags()
|
H A D | Constants.cpp | 1562 GEPO->getNoWrapFlags(), GEPO->getInRange(), OnlyIfReducedTy); in getWithOperands() 3389 Ops.slice(1), GO->getNoWrapFlags(), ""); in getAsInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | InductiveRangeCheckElimination.cpp |
|
H A D | LoopFuse.cpp | 1245 return SE.getAddRecExpr(Operands, &NewL, Expr->getNoWrapFlags()); in visitAddRecExpr() 1259 return SE.getAddRecExpr(Operands, ExprL, Expr->getNoWrapFlags()); in visitAddRecExpr()
|
H A D | SROA.cpp | 3983 GEPNoWrapFlags NW = GEPI.getNoWrapFlags(); in unfoldGEPSelect() 4085 Phi->getName() + ".sroa.gep", GEPI.getNoWrapFlags()); in unfoldGEPPhi()
|
H A D | NewGVN.cpp | 1206 GEPI->getNoWrapFlags(), Q); in createExpression()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 517 GEPNoWrapFlags NW = FirstInst->getNoWrapFlags(); in foldPHIArgGEPIntoPHI() 527 NW &= GEP->getNoWrapFlags(); in foldPHIArgGEPIntoPHI() 1425 cast<GEPOperator>(IvNext)->getNoWrapFlags()); in foldDependentIVs()
|
H A D | InstructionCombining.cpp | 209 Offset, "", GEP->getNoWrapFlags())); in EmitGEPOffset() 2335 GEPNoWrapFlags NW = GEP.getNoWrapFlags(); in foldSelectGEP() 2715 simplifyGEPInst(GEPEltType, PtrOp, Indices, GEP.getNoWrapFlags(), in visitGetElementPtrInst() 2787 GEP.getNoWrapFlags())); in visitGetElementPtrInst() 2802 GEP, Builder.CreatePtrAdd(PtrOp, Offset, "", GEP.getNoWrapFlags())); in visitGetElementPtrInst() 2955 GEP.getNoWrapFlags()); in visitGetElementPtrInst() 2991 GEP.getNoWrapFlags()); in visitGetElementPtrInst()
|
H A D | InstCombineSelect.cpp | 496 ElementType, Op0, Op1, TGEP->getNoWrapFlags() & FGEP->getNoWrapFlags()); in foldSelectOpOp() 3778 Gep->getNoWrapFlags()); in visitSelectInst()
|
H A D | InstCombineLoadStoreAlloca.cpp | 394 NewI->setNoWrapFlags(GEP->getNoWrapFlags()); in replace()
|