mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Add a getNUWMul function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -699,6 +699,7 @@ public:
|
|||||||
static Constant *getNSWNeg(Constant *C);
|
static Constant *getNSWNeg(Constant *C);
|
||||||
static Constant *getNSWAdd(Constant *C1, Constant *C2);
|
static Constant *getNSWAdd(Constant *C1, Constant *C2);
|
||||||
static Constant *getNSWSub(Constant *C1, Constant *C2);
|
static Constant *getNSWSub(Constant *C1, Constant *C2);
|
||||||
|
static Constant *getNUWMul(Constant *C1, Constant *C2);
|
||||||
static Constant *getNSWMul(Constant *C1, Constant *C2);
|
static Constant *getNSWMul(Constant *C1, Constant *C2);
|
||||||
static Constant *getExactSDiv(Constant *C1, Constant *C2);
|
static Constant *getExactSDiv(Constant *C1, Constant *C2);
|
||||||
|
|
||||||
|
@ -656,6 +656,11 @@ Constant* ConstantExpr::getNSWSub(Constant* C1, Constant* C2) {
|
|||||||
OverflowingBinaryOperator::NoSignedWrap);
|
OverflowingBinaryOperator::NoSignedWrap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Constant* ConstantExpr::getNUWMul(Constant* C1, Constant* C2) {
|
||||||
|
return getTy(C1->getType(), Instruction::Mul, C1, C2,
|
||||||
|
OverflowingBinaryOperator::NoUnsignedWrap);
|
||||||
|
}
|
||||||
|
|
||||||
Constant* ConstantExpr::getNSWMul(Constant* C1, Constant* C2) {
|
Constant* ConstantExpr::getNSWMul(Constant* C1, Constant* C2) {
|
||||||
return getTy(C1->getType(), Instruction::Mul, C1, C2,
|
return getTy(C1->getType(), Instruction::Mul, C1, C2,
|
||||||
OverflowingBinaryOperator::NoSignedWrap);
|
OverflowingBinaryOperator::NoSignedWrap);
|
||||||
|
Reference in New Issue
Block a user