search for: getneg

Displaying 3 results from an estimated 3 matches for "getneg".

Did you mean: getnet
2014 Jul 01
2
[LLVMdev] Probable error in InstCombine
...optimization level. This appears to be the relevant code: InstCombineAddSub.cpp:1556 > // 0 - (X sdiv C) -> (X sdiv -C) > if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && > match(Op0, m_Zero())) > return BinaryOperator::CreateSDiv(X, ConstantExpr::getNeg(C)); - David Menendez
2015 Jan 15
2
[LLVMdev] Handling of undef in the IR
Hi all, I have a very simple test case (thanks to bugpoint) that hit an assert in reassociate. (the assert is (C->getType()->isIntOrIntVectorTy() && "Cannot NEG a nonintegral value!"), function getNeg) The function is taking a Constant as argument, but the assert does not expect an undef. I’m not sure whose responsibility is it to handle that (caller?). Do we have to defensively assume that any Constant can be an undef anywhere and I should just add a check here? Thanks, Mehdi PS: IR attach...
2011 Feb 04
3
[LLVMdev] ConstantBuilder proposal
...o); } /// GetOffsetOf constant expr - This is a generalized form of GetOffsetOf, /// which supports any aggregate type, and any Constant index. /// static Constant *GetOffsetOf(const Type* Ty, Constant *FieldNo) { return ConstantExpr::getOffsetOf(Ty, FieldNo); } static Constant *GetNeg(Constant *C) { return ConstantExpr::getNeg(C); } static Constant *GetFNeg(Constant *C) { return ConstantExpr::getFNeg(C); } static Constant *GetNot(Constant *C) { return ConstantExpr::getNot(C); } static Constant *GetAdd(Constant *C1, Constant *C2) { return ConstantEx...