| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | IntegerDivision.cpp | 56 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode() 57 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode() 129 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode() 130 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode() 314 Value *Tmp10 = Builder.CreateAShr(Tmp9, MSB); in generateUnsignedDivisionCode()
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/ |
| H A D | AVRShiftExpand.cpp | 125 ValueShifted = Builder.CreateAShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 706 ? Builder.CreateAShr(A, ShAmt, OldShift->getName(), IsExact) in narrowBinOp() 885 : BinaryOperator::CreateAShr(A, ShAmt); in visitTrunc() 893 Value *Shift = Builder.CreateAShr(A, ShAmt, "", IsExact); in visitTrunc() 1377 Value *In = Builder.CreateAShr(Op0, Sh, Op0->getName() + ".lobit"); in transformSExtICmp() 1430 In = Builder.CreateAShr(In, ConstantInt::get(In->getType(), in transformSExtICmp() 1534 return BinaryOperator::CreateAShr(Builder.CreateShl(Res, ShAmt, "sext"), in visitSExt() 1550 return BinaryOperator::CreateAShr(Builder.CreateShl(X, ShAmt), ShAmt); in visitSExt() 1561 Value *Ashr = Builder.CreateAShr(Y, XBitSize - SrcBitSize); in visitSExt() 1597 return BinaryOperator::CreateAShr(A, NewShAmt); in visitSExt() 1610 return BinaryOperator::CreateAShr(Builder.CreateShl(X, ShlAmtC), in visitSExt() [all …]
|
| H A D | InstCombineNegator.cpp | 195 : Builder.CreateAShr(I->getOperand(0), I->getOperand(1)); in visitImpl() 260 R = Builder.CreateAShr(R, BWMinusOne); in visitImpl()
|
| H A D | InstCombineShifts.cpp | 1176 Value *AShr = Builder.CreateAShr(X, NewShAmt); in visitLShr() 1402 auto *NewAShr = BinaryOperator::CreateAShr(X, ShiftDiff); in visitAShr() 1421 return BinaryOperator::CreateAShr(X, ConstantInt::get(Ty, AmtSum)); in visitAShr() 1429 Value *NewSh = Builder.CreateAShr(X, ConstantInt::get(SrcTy, ShAmt)); in visitAShr() 1479 auto *NewAShr = Builder.CreateAShr(X, Op1, Op0->getName() + ".not"); in visitAShr()
|
| H A D | InstCombineAddSub.cpp | 947 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant() 1226 auto *NewAShr = BinaryOperator::CreateAShr(X, LowBitsToSkip, in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
|
| H A D | InstCombineSimplifyDemanded.cpp | 1147 BinaryOperator::CreateAShr(VarX, Amt); in simplifyShrShlDemandedBits()
|
| H A D | InstCombineAndOrXor.cpp | 3502 return BinaryOperator::CreateAShr(X, Y); in foldNot() 3527 return BinaryOperator::CreateAShr(ConstantExpr::getNot(C), Y); in foldNot()
|
| H A D | InstCombineSelect.cpp | 581 return Builder.CreateAShr(X, Y, IC->getName(), IsExact); in foldSelectICmpLshrAshr()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 62 ? B.CreateAShr(Result, SrcScale - DstScale, "downscale") in Convert() 365 return LHSSema.isSigned() ? B.CreateAShr(LHS, RHS) : B.CreateLShr(LHS, RHS); in CreateShr()
|
| H A D | IRBuilder.h | 1329 Value *CreateAShr(Value *LHS, Value *RHS, const Twine &Name = "", 1334 return Insert(BinaryOperator::CreateAShr(LHS, RHS), Name); 1338 Value *CreateAShr(Value *LHS, const APInt &RHS, const Twine &Name = "", 1340 return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact); 1343 Value *CreateAShr(Value *LHS, uint64_t RHS, const Twine &Name = "", 1345 return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 220 : Builder.CreateAShr(Vec, Amt)); in simplifyX86immShift() 226 return Builder.CreateAShr(Vec, Builder.CreateVectorSplat(VWidth, Amt)); in simplifyX86immShift() 247 : Builder.CreateAShr(Vec, Amt)); in simplifyX86immShift() 295 return Builder.CreateAShr(Vec, ShiftVec); in simplifyX86immShift() 362 : Builder.CreateAShr(Vec, Amt)); in simplifyX86varShift() 434 return Builder.CreateAShr(Vec, ShiftVec); in simplifyX86varShift()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 932 JQ = Builder.CreateAShr(JQ, Builder.getInt32(30)); in expandDivRem24Impl() 1003 Res = Builder.CreateAShr(Res, InRegBits); in expandDivRem24Impl() 1057 return Builder.CreateAShr(V, Builder.getInt32(31)); in getSign32()
|
| H A D | AMDGPUInstCombineIntrinsic.cpp | 611 Value *RightShift = Signed ? IC.Builder.CreateAShr(Shl, IntSize - Width) in instCombineIntrinsic() 617 Value *RightShift = Signed ? IC.Builder.CreateAShr(Src, Offset) in instCombineIntrinsic()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | IslExprBuilder.cpp | 425 Res = Builder.CreateAShr(LHS, Val.ceilLogBase2(), "polly.fdiv_q.shr"); in createOpBin()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | HWAddressSanitizer.cpp | 1211 StackBaseTag = IRB.CreateAShr(ThreadLong, 3); in emitPrologue() 1227 IRB.CreateShl(IRB.CreateAShr(ThreadLong, 56), 12, "", true, true), in emitPrologue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 2065 InitXNext = Builder.CreateAShr(InitX, 1); in transformLoopToCountable()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 961 Value *ByteIndex = CGF.Builder.CreateAShr( in EmitBitTestIntrinsic() 5578 return Builder.CreateAShr(Vec, Shift, name); in EmitNeonRShiftImm() 7017 Ops[0] = Builder.CreateAShr(Ops[0], Ops[1]); in EmitCommonNeonBuiltinExpr() 8169 return Unsigned ? Builder.CreateLShr(V, Shift) : Builder.CreateAShr(V, Shift); in MVEImmediateShr() 9968 HigherBits = Builder.CreateAShr(MulResult, 64); in EmitAArch64BuiltinExpr() 10650 return Builder.CreateAShr( in EmitAArch64BuiltinExpr() 10666 Ops[1] = Builder.CreateAShr( in EmitAArch64BuiltinExpr() 12536 LHS = CGF.Builder.CreateAShr(LHS, ShiftAmt); in EmitX86Muldq() 12538 RHS = CGF.Builder.CreateAShr(RHS, ShiftAmt); in EmitX86Muldq() 14982 HigherBits = Builder.CreateAShr(MulResult, 64); in EmitX86BuiltinExpr()
|
| H A D | CGExpr.cpp | 2042 Val = Builder.CreateAShr(Val, Offset + HighBits, "bf.ashr"); in EmitLoadOfBitfieldLValue() 2320 ResultVal = Builder.CreateAShr(ResultVal, HighBits, "bf.result.ashr"); in EmitStoreThroughBitfieldLValue()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 539 return Bld.CreateAShr(RT.getGPUThreadID(CGF), LaneIDBits, "nvptx_warp_id"); in getNVPTXWarpID()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | AutoUpgrade.cpp | 1513 LHS = Builder.CreateAShr(LHS, ShiftAmt); in upgradePMULDQ() 1515 RHS = Builder.CreateAShr(RHS, ShiftAmt); in upgradePMULDQ()
|
| H A D | Core.cpp | 3428 return wrap(unwrap(B)->CreateAShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAShr()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/ |
| H A D | LLVMOps.td | 257 def LLVM_AShrOp : LLVM_IntArithmeticOp<"ashr", "CreateAShr">;
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1896 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in SinkShiftAndTruncate() 1997 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in OptimizeExtractBits()
|
| /llvm-project-15.0.7/llvm/bindings/go/llvm/ |
| H A D | ir.go | 1516 func (b Builder) CreateAShr(lhs, rhs Value, name string) (v Value) { func
|