Home
last modified time | relevance | path

Searched refs:CreateAShr (Results 1 – 25 of 31) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp57 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode()
58 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
130 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode()
131 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
315 Value *Tmp10 = Builder.CreateAShr(Tmp9, MSB); in generateUnsignedDivisionCode()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DNoFolder.h128 Instruction *CreateAShr(Constant *LHS, Constant *RHS,
131 return BinaryOperator::CreateAShr(LHS, RHS);
H A DFixedPointBuilder.h62 ? B.CreateAShr(Result, SrcScale - DstScale, "downscale") in Convert()
365 return LHSSema.isSigned() ? B.CreateAShr(LHS, RHS) : B.CreateLShr(LHS, RHS); in CreateShr()
H A DIRBuilderFolder.h53 virtual Value *CreateAShr(Constant *LHS, Constant *RHS,
H A DConstantFolder.h101 Constant *CreateAShr(Constant *LHS, Constant *RHS,
H A DIRBuilder.h1320 Value *CreateAShr(Value *LHS, Value *RHS, const Twine &Name = "",
1324 return Insert(Folder.CreateAShr(LC, RC, isExact), Name);
1326 return Insert(BinaryOperator::CreateAShr(LHS, RHS), Name);
1330 Value *CreateAShr(Value *LHS, const APInt &RHS, const Twine &Name = "",
1332 return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
1335 Value *CreateAShr(Value *LHS, uint64_t RHS, const Twine &Name = "",
1337 return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp1135 Value *AShr = Builder.CreateAShr(X, NewShAmt); in visitLShr()
1295 auto *NewAShr = BinaryOperator::CreateAShr(X, ShiftDiff); in visitAShr()
1314 return BinaryOperator::CreateAShr(X, ConstantInt::get(Ty, AmtSum)); in visitAShr()
1322 Value *NewSh = Builder.CreateAShr(X, ConstantInt::get(SrcTy, ShAmt)); in visitAShr()
1352 auto *NewAShr = Builder.CreateAShr(X, Op1, Op0->getName() + ".not"); in visitAShr()
H A DInstCombineCasts.cpp840 : BinaryOperator::CreateAShr(A, ShAmt); in visitTrunc()
848 Value *Shift = Builder.CreateAShr(A, ShAmt, "", IsExact); in visitTrunc()
869 ? Builder.CreateAShr(A, ShAmt, OldShift->getName(), IsExact) in visitTrunc()
1334 Value *In = Builder.CreateAShr(Op0, Sh, Op0->getName() + ".lobit"); in transformSExtICmp()
1387 In = Builder.CreateAShr(In, ConstantInt::get(In->getType(), in transformSExtICmp()
1494 return BinaryOperator::CreateAShr(Builder.CreateShl(Res, ShAmt, "sext"), in visitSExt()
1506 return BinaryOperator::CreateAShr(Builder.CreateShl(X, ShAmt), ShAmt); in visitSExt()
1540 return BinaryOperator::CreateAShr(A, NewShAmt); in visitSExt()
H A DInstCombineNegator.cpp195 : Builder.CreateAShr(I->getOperand(0), I->getOperand(1)); in visitImpl()
H A DInstCombineMulDivRem.cpp361 return BinaryOperator::CreateAnd(Builder.CreateAShr(X, *C), Op1); in visitMul()
363 return BinaryOperator::CreateAnd(Builder.CreateAShr(X, *C), Op0); in visitMul()
H A DInstCombineAddSub.cpp961 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
1240 auto *NewAShr = BinaryOperator::CreateAShr(X, LowBitsToSkip, in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
H A DInstCombineSimplifyDemanded.cpp1056 BinaryOperator::CreateAShr(VarX, Amt); in simplifyShrShlDemandedBits()
H A DInstCombineAndOrXor.cpp3370 return BinaryOperator::CreateAShr(X, Y); in visitXor()
3395 return BinaryOperator::CreateAShr(ConstantExpr::getNot(C), Y); in visitXor()
H A DInstCombineSelect.cpp577 return Builder.CreateAShr(X, Y, IC->getName(), IsExact); in foldSelectICmpLshrAshr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp220 : 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()
363 : Builder.CreateAShr(Vec, Amt)); in simplifyX86varShift()
435 return Builder.CreateAShr(Vec, ShiftVec); in simplifyX86varShift()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp885 JQ = Builder.CreateAShr(JQ, Builder.getInt32(30)); in expandDivRem24Impl()
956 Res = Builder.CreateAShr(Res, InRegBits); in expandDivRem24Impl()
1010 return Builder.CreateAShr(V, Builder.getInt32(31)); in getSign32()
H A DAMDGPUInstCombineIntrinsic.cpp452 Value *RightShift = Signed ? IC.Builder.CreateAShr(Shl, IntSize - Width) in instCombineIntrinsic()
458 Value *RightShift = Signed ? IC.Builder.CreateAShr(Src, Offset) in instCombineIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h98 Constant *CreateAShr(Constant *LHS, Constant *RHS,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp1065 StackBaseTag = IRB.CreateAShr(ThreadLong, 3); in emitPrologue()
1102 IRB.CreateShl(IRB.CreateAShr(ThreadLong, 56), 12, "", true, true), in emitPrologue()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1878 InitXNext = Builder.CreateAShr(InitX, 1); in transformLoopToCountable()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGBuiltin.cpp937 Value *ByteIndex = CGF.Builder.CreateAShr( in EmitBitTestIntrinsic()
5397 return Builder.CreateAShr(Vec, Shift, name); in EmitNeonRShiftImm()
6824 Ops[0] = Builder.CreateAShr(Ops[0], Ops[1]); in EmitCommonNeonBuiltinExpr()
7960 return Unsigned ? Builder.CreateLShr(V, Shift) : Builder.CreateAShr(V, Shift); in MVEImmediateShr()
10267 return Builder.CreateAShr( in EmitAArch64BuiltinExpr()
10283 Ops[1] = Builder.CreateAShr( in EmitAArch64BuiltinExpr()
12117 LHS = CGF.Builder.CreateAShr(LHS, ShiftAmt); in EmitX86Muldq()
12119 RHS = CGF.Builder.CreateAShr(RHS, ShiftAmt); in EmitX86Muldq()
14578 HigherBits = Builder.CreateAShr(MulResult, 64); in EmitX86BuiltinExpr()
H A DCGExpr.cpp1974 Val = Builder.CreateAShr(Val, Offset + HighBits, "bf.ashr"); in EmitLoadOfBitfieldLValue()
2235 ResultVal = Builder.CreateAShr(ResultVal, HighBits, "bf.result.ashr"); in EmitStoreThroughBitfieldLValue()
H A DItaniumCXXABI.cpp648 Adj = Builder.CreateAShr(Adj, ptrdiff_1, "memptr.adj.shifted"); in EmitLoadOfMemberFunctionPointer()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DAutoUpgrade.cpp1445 LHS = Builder.CreateAShr(LHS, ShiftAmt); in upgradePMULDQ()
1447 RHS = Builder.CreateAShr(RHS, ShiftAmt); in upgradePMULDQ()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1882 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in SinkShiftAndTruncate()
1983 InsertedShift = BinaryOperator::CreateAShr(ShiftI->getOperand(0), CI, in OptimizeExtractBits()

12