Home
last modified time | relevance | path

Searched refs:isNSW (Results 1 – 7 of 7) sorted by relevance

/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DInstructionSimplify.h32 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
37 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
77 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp34 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgBinOpIntoPHI() local
38 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
60 if (isNSW) in FoldPHIArgBinOpIntoPHI()
61 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
124 if (isNSW) NewBinOp->setHasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
405 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgOpIntoPHI() local
426 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
448 if (isNSW) in FoldPHIArgOpIntoPHI()
449 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
493 if (isNSW) BinOp->setHasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h51 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
60 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
154 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
/external/swiftshader/third_party/LLVM/lib/Analysis/
DPHITransAddr.cpp265 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() local
277 isNSW = isNUW = false; in PHITranslateSubExpr()
287 if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, TD, DT)) { in PHITranslateSubExpr()
DInstructionSimplify.cpp542 static Value *SimplifyAddInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyAddInst() argument
604 Value *llvm::SimplifyAddInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyAddInst() argument
606 return ::SimplifyAddInst(Op0, Op1, isNSW, isNUW, TD, DT, RecursionLimit); in SimplifyAddInst()
611 static Value *SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
725 Value *llvm::SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
727 return ::SimplifySubInst(Op0, Op1, isNSW, isNUW, TD, DT, RecursionLimit); in SimplifySubInst()
1074 static Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1092 Value *llvm::SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1094 return ::SimplifyShlInst(Op0, Op1, isNSW, isNUW, TD, DT, RecursionLimit); in SimplifyShlInst()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp260 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() local
272 isNSW = isNUW = false; in PHITranslateSubExpr()
283 if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, DL, TLI, DT, AC)) { in PHITranslateSubExpr()
DInstructionSimplify.cpp529 static Value *SimplifyAddInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyAddInst() argument
582 Value *llvm::SimplifyAddInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyAddInst() argument
586 return ::SimplifyAddInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifyAddInst()
663 static Value *SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
777 Value *llvm::SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
781 return ::SimplifySubInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifySubInst()
1375 static Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1383 return isNSW || isNUW ? Op0 : Constant::getNullValue(Op0->getType()); in SimplifyShlInst()
1392 Value *llvm::SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1396 return ::SimplifyShlInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifyShlInst()
[all …]