Home
last modified time | relevance | path

Searched refs:getShl (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp59 EXPECT_EQ(Poison, ConstantExpr::getShl(One, One)); in TEST()
63 EXPECT_EQ(One, ConstantExpr::getShl(One, Zero)); in TEST()
256 CHECK(ConstantExpr::getShl(P0, P0), "shl i32 " P0STR ", " P0STR); in TEST()
257 CHECK(ConstantExpr::getShl(P0, P0, true), "shl nuw i32 " P0STR ", " P0STR); in TEST()
258 CHECK(ConstantExpr::getShl(P0, P0, false, true), in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h1028 static Constant *getShl(Constant *C1, Constant *C2, bool HasNUW = false,
1080 return getShl(C1, C2, false, true);
1084 return getShl(C1, C2, true, false);
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp252 ConstantExpr::getShl(ExtendedAllOnes, ExtendedSumOfShAmts); in dropRedundantMaskingOfLeftShiftInput()
1040 return BinaryOperator::CreateMul(X, ConstantExpr::getShl(C2, C1)); in visitShl()
1044 auto *NewC = ConstantExpr::getShl(ConstantInt::get(Ty, 1), C1); in visitShl()
H A DInstCombineNegator.cpp389 ConstantExpr::getShl(Constant::getAllOnesValue(Op1C->getType()), Op1C), in visitImpl()
H A DInstCombineSimplifyDemanded.cpp576 Constant *NewC = ConstantExpr::getShl(C, LeftShiftAmtC); in SimplifyDemandedUseBits()
656 if (ConstantExpr::getShl(NewC, RightShiftAmtC) == C) { in SimplifyDemandedUseBits()
H A DInstCombineCasts.cpp851 Constant *MaskC = ConstantExpr::getShl(One, C); in visitTrunc()
859 Constant *MaskC = ConstantExpr::getShl(One, C); in visitTrunc()
H A DInstCombineMulDivRem.cpp179 Constant *Shl = ConstantExpr::getShl(C1, C2); in visitMul()
H A DInstCombineVectorOps.cpp1937 Constant *ShlOne = ConstantExpr::getShl(ConstantInt::get(Ty, 1), C); in getAlternateBinop()
H A DInstructionCombining.cpp625 RHS = ConstantExpr::getShl(ConstantInt::get(Op->getType(), 1), C); in getBinOpsForFactorization()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1092 MulCst = ConstantExpr::getShl(MulCst, SA); in ConvertShiftToMul()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp233 Src = ConstantExpr::getShl(Src, in FoldBitCast()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp2702 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl() function in ConstantExpr
H A DCore.cpp1641 return wrap(ConstantExpr::getShl(unwrap<Constant>(LHSConstant), in LLVMConstShl()
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm.mli1157 See the method [llvm::ConstantExpr::getShl]. *)