Home
last modified time | relevance | path

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

/external/llvm/unittests/VMCore/
DConstantsTest.cpp40 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
44 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
48 EXPECT_EQ(Zero, ConstantExpr::getSub(One, One)); in TEST()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp600 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
647 Constant *CP1 = ConstantExpr::getSub(ConstantInt::get(I.getType(),1), CI); in visitSub()
654 C = ConstantExpr::getSub(One, ConstantExpr::getShl(One, CI)); in visitSub()
681 return BinaryOperator::CreateMul(X, ConstantExpr::getSub(C1, C2)); in visitSub()
DInstCombineCompares.cpp36 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1)); in SubOne()
93 Result = ConstantExpr::getSub(In1, In2); in SubWithOverflow()
735 ConstantExpr::getSub(ConstantInt::getAllOnesValue(CI->getType()), CI); in FoldICmpAddOpCst()
756 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI)); in FoldICmpAddOpCst()
767 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in FoldICmpAddOpCst()
1414 ConstantExpr::getSub(RHS, BOp1C)); in visitICmpInstWithInstAndIntCst()
1448 ConstantExpr::getSub(BOp0C, RHS)); in visitICmpInstWithInstAndIntCst()
DInstCombineAndOrXor.cpp1527 AddCST = ConstantExpr::getSub(AddOne(RHSCst), LHSCst); in FoldOrOfICmps()
2118 Constant *ConstantRHS = ConstantExpr::getSub(NegOp0I0C, in visitXor()
2129 ConstantExpr::getSub(NegOp0CI, in visitXor()
DInstructionCombining.cpp1253 Constant* NewCaseVal = ConstantExpr::getSub(cast<Constant>(CaseVal), in visitSwitchInst()
/external/llvm/include/llvm/
DConstants.h849 static Constant *getSub(Constant *C1, Constant *C2,
890 return getSub(C1, C2, false, true);
893 return getSub(C1, C2, true, false);
/external/llvm/include/llvm/Support/
DConstantFolder.h43 return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW);
DTargetFolder.h59 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
/external/llvm/lib/Analysis/
DInlineCost.cpp562 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
DConstantFolding.cpp630 Res = ConstantExpr::getSub(Res, CE->getOperand(1)); in SymbolicallyEvaluateGEP()
DInstructionSimplify.cpp752 return ConstantExpr::getSub(LHSOffset, RHSOffset); in computePointerDifference()
/external/llvm/lib/VMCore/
DConstants.cpp1906 return getSub(ConstantFP::getZeroValueForNegation(C->getType()), in getNeg()
1933 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub() function in ConstantExpr
DCore.cpp757 return wrap(ConstantExpr::getSub(unwrap<Constant>(LHSConstant), in LLVMConstSub()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp1169 llvm::Constant *AddrLabelDiff = llvm::ConstantExpr::getSub(LHS, RHS); in EmitConstantValue()
/external/llvm/bindings/ocaml/llvm/
Dllvm.mli842 constants. See the method [llvm::ConstantExpr::getSub]. *)