Home
last modified time | relevance | path

Searched refs:isNUW (Results 1 – 15 of 15) sorted by relevance

/external/llvm-project/llvm/include/llvm/Analysis/
DInstructionSimplify.h149 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
153 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
199 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInstructionSimplify.h126 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
130 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
176 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
/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/llvm-project/llvm/lib/Analysis/
DPHITransAddr.cpp258 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr() local
269 isNSW = isNUW = false; in PHITranslateSubExpr()
279 if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, {DL, TLI, DT, AC})) { in PHITranslateSubExpr()
DInstructionSimplify.cpp728 static Value *SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
749 if (isNUW) in SimplifySubInst()
856 Value *llvm::SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
858 return ::SimplifySubInst(Op0, Op1, isNSW, isNUW, Q, RecursionLimit); in SimplifySubInst()
1308 static Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1316 return isNSW || isNUW ? Op0 : Constant::getNullValue(Op0->getType()); in SimplifyShlInst()
1325 if (isNUW && match(Op0, m_Negative())) in SimplifyShlInst()
1333 Value *llvm::SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1335 return ::SimplifyShlInst(Op0, Op1, isNSW, isNUW, Q, RecursionLimit); in SimplifyShlInst()
1663 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyAndOfICmpsWithAdd() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPHITransAddr.cpp258 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr() local
269 isNSW = isNUW = false; in PHITranslateSubExpr()
279 if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, {DL, TLI, DT, AC})) { in PHITranslateSubExpr()
DInstructionSimplify.cpp737 static Value *SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
758 if (isNUW) in SimplifySubInst()
865 Value *llvm::SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
867 return ::SimplifySubInst(Op0, Op1, isNSW, isNUW, Q, RecursionLimit); in SimplifySubInst()
1313 static Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1321 return isNSW || isNUW ? Op0 : Constant::getNullValue(Op0->getType()); in SimplifyShlInst()
1330 if (isNUW && match(Op0, m_Negative())) in SimplifyShlInst()
1338 Value *llvm::SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1340 return ::SimplifyShlInst(Op0, Op1, isNSW, isNUW, Q, RecursionLimit); in SimplifyShlInst()
1669 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyAndOfICmpsWithAdd() local
[all …]
/external/llvm/lib/Analysis/
DPHITransAddr.cpp261 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); 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
683 if (isNUW && match(Op0, m_Zero())) in SimplifySubInst()
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
[all …]
/external/mesa3d/src/amd/compiler/
Daco_opt_value_numbering.cpp420 if (instr->definitions[i].isNUW()) in process_block()
Daco_print_ir.cpp184 if (definition->isNUW()) in print_definition()
Daco_ir.h885 constexpr bool isNUW() const noexcept in isNUW() function
Daco_optimizer.cpp756 if (prevent_overflow && !add_instr->definitions[0].isNUW()) in parse_base_offset()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h91 Value *LHS, Value *RHS, Type *Ty, bool isNUW);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h373 Value *LHS, Value *RHS, Type *Ty, bool isNUW);