Home
last modified time | relevance | path

Searched refs:CreateLShr (Results 1 – 25 of 56) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp65 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
75 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
77 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
99 Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
101 Value* Tmp3 = Builder.CreateLShr(V, in LowerBSWAP()
104 Value* Tmp2 = Builder.CreateLShr(V, in LowerBSWAP()
107 Value* Tmp1 = Builder.CreateLShr(V, in LowerBSWAP()
169 Value *VShift = Builder.CreateLShr(PartValue, in LowerCTPOP()
177 V = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 64), in LowerCTPOP()
194 ShVal = Builder.CreateLShr(V, ShVal, "ctlz.sh"); in LowerCTLZ()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp651 return IC.Builder.CreateLShr(C, NumBits); in getShiftedValue()
1052 return BinaryOperator::CreateLShr( in visitShl()
1097 auto *NewLShr = BinaryOperator::CreateLShr(X, ShiftDiff); in visitLShr()
1137 Value *NewLshr = Builder.CreateLShr(Y, Op1); in visitLShr()
1150 Value *NewLShr = Builder.CreateLShr(X, ShAmtC); in visitLShr()
1168 Value *NewLShr = Builder.CreateLShr(X, SrcTyBitWidth - 1); in visitLShr()
1194 Value *Signbit = Builder.CreateLShr(X, ShAmtC); in visitLShr()
1204 return BinaryOperator::CreateLShr(X, ConstantInt::get(Ty, AmtSum)); in visitLShr()
1220 Value *SumShift = Builder.CreateLShr(X, AmtSum, "sum.shift"); in visitLShr()
1291 Value *Mask = Builder.CreateLShr(AllOnes, Op1); in visitLShr()
[all …]
H A DInstCombineSimplifyDemanded.cpp396 return Builder.CreateLShr(Trunc, C->getZExtValue()); in SimplifyDemandedUseBits()
578 Instruction *Lshr = BinaryOperator::CreateLShr(NewC, X); in SimplifyDemandedUseBits()
698 Instruction *NewVal = BinaryOperator::CreateLShr( in SimplifyDemandedUseBits()
734 BinaryOperator *LShr = BinaryOperator::CreateLShr(I->getOperand(0), in SimplifyDemandedUseBits()
865 NewVal = BinaryOperator::CreateLShr( in SimplifyDemandedUseBits()
1146 New = isLshr ? BinaryOperator::CreateLShr(VarX, Amt) : in simplifyShrShlDemandedBits()
H A DInstCombineCasts.cpp707 : Builder.CreateLShr(A, ShAmt, OldShift->getName(), IsExact); in narrowBinOp()
1008 In = Builder.CreateLShr(In, Sh, In->getName() + ".lobit"); in transformZExtICmp()
1044 In = Builder.CreateLShr(In, ConstantInt::get(In->getType(), ShAmt), in transformZExtICmp()
1072 Value *Lshr = Builder.CreateLShr(X, ShAmt); in transformZExtICmp()
1099 Result = Builder.CreateLShr( in transformZExtICmp()
1412 In = Builder.CreateLShr(In, in transformSExtICmp()
H A DInstCombineNegator.cpp194 ? Builder.CreateLShr(I->getOperand(0), I->getOperand(1)) in visitImpl()
H A DInstCombineAndOrXor.cpp1040 V = Builder.CreateLShr(V, P.StartBit); in extractIntPart()
1818 return BinaryOperator::CreateLShr(Sext, ShAmtC); in visitAnd()
1826 return BinaryOperator::CreateLShr(X, ConstantInt::get(Ty, *ShiftC)); in visitAnd()
3085 return BinaryOperator::CreateLShr(Constant::getAllOnesValue(Ty), Sub); in visitOr()
3517 return BinaryOperator::CreateLShr(ConstantExpr::getNot(C), Y); in foldNot()
3733 return BinaryOperator::CreateLShr(NotX, ConstantInt::get(Ty, *C)); in visitXor()
3754 auto *Opnd0 = Builder.CreateLShr(X, C2); in visitXor()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp139 StoredVal = Helper.CreateLShr( in coerceAvailableValueToLoadType()
429 SrcVal = Builder.CreateLShr(SrcVal, in getStoreValueForLoadHelper()
497 RV = Builder.CreateLShr(RV, (NewLoadSize - SrcValStoreSize) * 8); in getLoadValueForLoad()
H A DIntegerDivision.cpp281 Value *Tmp3 = Builder.CreateLShr(Dividend, SR_1); in generateUnsignedDivisionCode()
309 Value *Tmp6 = Builder.CreateLShr(Q_2, MSB); in generateUnsignedDivisionCode()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp179 FirstShift = IRB.CreateLShr(FSHFunc->getArg(1), RotateModVal); in lowerFunnelShifts()
196 SecShift = IRB.CreateLShr(FSHFunc->getArg(1), SubRotateVal); in lowerFunnelShifts()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp488 Value *NDWord = PreBuilder.CreateLShr(N, PreBuilder.getInt16(2)); in lowerTileDP()
489 Value *KDWord = PreBuilder.CreateLShr(K, PreBuilder.getInt16(2)); in lowerTileDP()
530 Value *NDWord = PreBuilder.CreateLShr(N, PreBuilder.getInt16(2)); in lowerTileLoadStore()
531 Value *StrideDWord = PreBuilder.CreateLShr(Stride, PreBuilder.getInt64(2)); in lowerTileLoadStore()
H A DX86InstCombineIntrinsic.cpp219 : Builder.CreateLShr(Vec, Amt)) in simplifyX86immShift()
246 : Builder.CreateLShr(Vec, Amt)) in simplifyX86immShift()
293 return Builder.CreateLShr(Vec, ShiftVec); in simplifyX86immShift()
361 : Builder.CreateLShr(Vec, Amt)) in simplifyX86varShift()
432 return Builder.CreateLShr(Vec, ShiftVec); in simplifyX86varShift()
1006 Value *Shifted = IC.Builder.CreateLShr(Masked, ShiftAmt); in instCombineIntrinsic()
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp122 ValueShifted = Builder.CreateLShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULateCodeGenPrepare.cpp177 IRB.CreateTrunc(IRB.CreateLShr(NewLd, ShAmt), IntNTy), LI.getType()); in visitLoadInst()
H A DAMDGPULowerKernelArguments.cpp217 Load : Builder.CreateLShr(Load, OffsetDiff * 8); in runOnFunction()
H A DAMDGPUInstCombineIntrinsic.cpp612 : IC.Builder.CreateLShr(Shl, IntSize - Width); in instCombineIntrinsic()
618 : IC.Builder.CreateLShr(Src, Offset); in instCombineIntrinsic()
H A DAMDGPUCodeGenPrepare.cpp438 Builder.CreateLShr(ExtRes, 32 - getBaseElementBitWidth(I.getType())); in promoteUniformBitreverseToI32()
871 Value *Hi = Builder.CreateLShr(MUL64, Builder.getInt64(32)); in getMul64()
H A DAMDGPUAtomicOptimizer.cpp640 B.CreateTrunc(B.CreateLShr(PHI, 32), B.getInt32Ty()); in optimizeAtomic()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DFixedPointBuilder.h63 : B.CreateLShr(Result, SrcScale - DstScale, "downscale"); in Convert()
365 return LHSSema.isSigned() ? B.CreateAShr(LHS, RHS) : B.CreateLShr(LHS, RHS); in CreateShr()
H A DIRBuilder.h1310 Value *CreateLShr(Value *LHS, Value *RHS, const Twine &Name = "",
1315 return Insert(BinaryOperator::CreateLShr(LHS, RHS), Name);
1319 Value *CreateLShr(Value *LHS, const APInt &RHS, const Twine &Name = "",
1321 return CreateLShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
1324 Value *CreateLShr(Value *LHS, uint64_t RHS, const Twine &Name = "",
1326 return CreateLShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp806 Value *Shadow = IRB.CreateLShr(Mem, Mapping.Scale); in memToShadow()
846 Value *PtrTag = IRB.CreateTrunc(IRB.CreateLShr(PtrLong, PointerTagShift), in instrumentMemAccessInline()
1059 IRB.CreateLShr(StackPointerLong, 20))); in getStackBaseTag()
H A DMemProfiler.cpp303 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); in memToShadow()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp182 V = IRB.CreateLShr(V, Offset * 8); in sliceValue()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp790 Value *Top = IRB.CreateLShr(WideLoad, ShiftVal); in CreateWideLoad()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1473 Value *S = IRB.CreateLShr(PN, ConstantInt::get(PN->getType(), IterCount)); in convertShiftsToLeft()
1716 B.CreateLShr(BitOp->getOperand(0), S), in setupPreSimplifier()
1717 B.CreateLShr(BitOp->getOperand(1), S)); in setupPreSimplifier()
H A DHexagonVectorCombine.cpp1062 Value *Shift = Builder.CreateLShr(Builder.CreateShl(Pair, Amt), 32); in vlalignb()
1094 Value *Shift = Builder.CreateLShr(Pair, Amt); in vralignb()

123