reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Constants.h
  934   static Constant *getSub(Constant *C1, Constant *C2,

References

include/llvm/Analysis/TargetFolder.h
   57     return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
include/llvm/IR/ConstantFolder.h
   46     return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW);
include/llvm/IR/Constants.h
  985     return getSub(C1, C2, false, true);
  989     return getSub(C1, C2, true, false);
lib/Analysis/ConstantFolding.cpp
  856             Res = ConstantExpr::getSub(Res, CE->getOperand(1));
lib/Analysis/InlineCost.cpp
 1051       if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) {
lib/Analysis/InstructionSimplify.cpp
  691   return ConstantExpr::getSub(LHSOffset, RHSOffset);
lib/IR/Constants.cpp
 2234   return getSub(ConstantFP::getZeroValueForNegation(C->getType()),
lib/IR/Core.cpp
 1511   return wrap(ConstantExpr::getSub(unwrap<Constant>(LHSConstant),
lib/Transforms/IPO/LowerTypeTests.cpp
  763                      ConstantExpr::getSub(
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1765       return BinaryOperator::CreateAdd(X, ConstantExpr::getSub(C, C2));
 1769       return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1968         Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC);
 1985                                           ConstantExpr::getSub(WidthC, ShAmtC));
lib/Transforms/InstCombine/InstCombineCompares.cpp
 2934         Constant *SubC = ConstantExpr::getSub(RHS, cast<Constant>(BOp1));
 2969         Constant *SubC = ConstantExpr::getSub(cast<Constant>(BOp0), RHS);
lib/Transforms/InstCombine/InstCombineInternal.h
  177   return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1));
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1283   auto *ThresholdHighExcl = ConstantExpr::getSub(C0, C1);
lib/Transforms/InstCombine/InstCombineShifts.cpp
  248         ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(),
lib/Transforms/InstCombine/InstructionCombining.cpp
 2599       Constant *NewCase = ConstantExpr::getSub(Case.getCaseValue(), AddRHS);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1295             ConstantExpr::getSub(
 1380         ConstantExpr::getSub(ConstantExpr::getPtrToInt(Ptr, Int64Ty),
tools/clang/lib/CodeGen/CGExprConstant.cpp
 2087     llvm::Constant *AddrLabelDiff = llvm::ConstantExpr::getSub(LHS, RHS);
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  516   auto *PCRelAsInt = llvm::ConstantExpr::getSub(GOTAsInt, FuncAsInt);
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  137   llvm::Constant *offset = llvm::ConstantExpr::getSub(target, base);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  546         llvm::ConstantExpr::getSub(PtrValAsInt, ImageBaseAsInt,
unittests/IR/ConstantsTest.cpp
   46   EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One));
   50   EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne));
   54   EXPECT_EQ(Zero, ConstantExpr::getSub(One, One));
  240   CHECK(ConstantExpr::getSub(P0, P0), "sub i32 " P0STR ", " P0STR);