Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp47 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
51 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
55 EXPECT_EQ(Zero, ConstantExpr::getSub(One, One)); in TEST()
251 CHECK(ConstantExpr::getSub(P0, P0), "sub i32 " P0STR ", " P0STR); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp116 Constant *Sub = llvm::ConstantExpr::getSub(Target, Base); in createRelLookupTable()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h1020 static Constant *getSub(Constant *C1, Constant *C2, bool HasNUW = false,
1064 return getSub(C1, C2, false, true);
1068 return getSub(C1, C2, true, false);
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp143 llvm::Constant *offset = llvm::ConstantExpr::getSub(target, base); in getRelativeOffsetToPosition()
H A DCGExprConstant.cpp2147 llvm::Constant *AddrLabelDiff = llvm::ConstantExpr::getSub(LHS, RHS); in tryEmitPrivate()
H A DMicrosoftCXXABI.cpp566 llvm::ConstantExpr::getSub(PtrValAsInt, ImageBaseAsInt, in getImageRelativeConstant()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h208 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1)); in SubOne()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp282 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput()
461 Constant *Mask = ConstantExpr::getSub(C, ConstantInt::get(Ty, 1)); in commonShiftTransforms()
H A DInstCombineAddSub.cpp1843 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
1966 return BinaryOperator::CreateAdd(X, ConstantExpr::getSub(C, C2)); in visitSub()
H A DInstCombineCasts.cpp1589 Constant *NumLowbitsLeft = ConstantExpr::getSub( in visitSExt()
1591 Constant *NewShAmt = ConstantExpr::getSub( in visitSExt()
H A DInstCombineCalls.cpp1561 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst()
1578 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst()
H A DInstCombineAndOrXor.cpp1959 Constant *CmpC = ConstantExpr::getSub(LshrC, Log2C1); in visitAnd()
1976 Constant *CmpC = ConstantExpr::getSub(ShlC, Log2C3); in visitAnd()
H A DInstCombineCompares.cpp2693 ConstantExpr::getSub(SubC, ConstantInt::get(Ty, C))); in foldICmpSubConstant()
3178 return new ICmpInst(Pred, BOp0, ConstantExpr::getSub(RHS, BOC)); in foldICmpBinOpEqualityWithConstant()
4298 Constant *Diff = ConstantExpr::getSub(Cst2, Cst1); in foldICmpBinOp()
H A DInstCombineSelect.cpp1389 auto *ThresholdHighExcl = ConstantExpr::getSub(C0, C1); in canonicalizeClampLike()
H A DInstructionCombining.cpp3207 Constant *NewCase = ConstantExpr::getSub(Case.getCaseValue(), AddRHS); in visitSwitchInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp519 ConstantExpr::getSub(ConstantExpr::getPtrToInt(Ptr, Int64Ty), in createHwasanCtorComdat()
1558 ConstantExpr::getSub( in instrumentGlobal()
H A DInstrProfiling.cpp1035 ConstantExpr::getSub(ConstantExpr::getPtrToInt(CounterPtr, IntPtrTy), in getOrCreateRegionCounters()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp2648 return getSub(ConstantFP::getZeroValueForNegation(C->getType()), in getNeg()
2671 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub() function in ConstantExpr
H A DCore.cpp1578 return wrap(ConstantExpr::getSub(unwrap<Constant>(LHSConstant), in LLVMConstSub()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInlineCost.cpp1958 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
H A DConstantFolding.cpp1447 FoldedValue = ConstantExpr::getSub( in ConstantFoldCastOperand()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp749 ConstantExpr::getSub( in lowerTypeTestCall()
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm.mli1103 constants. See the method [llvm::ConstantExpr::getSub]. *)