Home
last modified time | relevance | path

Searched refs:CreateShl (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
204 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), in LowerBSWAP()
206 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), in LowerBSWAP()
208 Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
210 Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
/external/llvm/unittests/IR/
DPatternMatch.cpp245 IRB.CreateShl(L, R, "", /* NUW */ false, /* NSW */ true))); in TEST_F()
265 IRB.CreateShl(L, R, "", /* NUW */ true, /* NSW */ false))); in TEST_F()
278 EXPECT_FALSE(m_NSWShl(m_Value(), m_Value()).match(IRB.CreateShl(L, R))); in TEST_F()
280 IRB.CreateShl(L, R, "", /* NUW */ true, /* NSW */ false))); in TEST_F()
292 EXPECT_FALSE(m_NUWShl(m_Value(), m_Value()).match(IRB.CreateShl(L, R))); in TEST_F()
294 IRB.CreateShl(L, R, "", /* NUW */ false, /* NSW */ true))); in TEST_F()
DIRBuilderTest.cpp258 Builder.CreateShl(V, V, "", /* NUW */ false, /* NSW */ true)) in TEST_F()
268 Builder.CreateShl(V, V, "", /* NUW */ true, /* NSW */ false)) in TEST_F()
280 Builder.CreateShl(C, C, "", /* NUW */ false, /* NSW */ true)) in TEST_F()
290 Builder.CreateShl(C, C, "", /* NUW */ true, /* NSW */ false)) in TEST_F()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp194 V = IC.Builder->CreateShl(C, NumBits); in GetShiftedValue()
430 Builder->CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant()
450 Builder->CreateShl(Op0BO->getOperand(0), Op1, in FoldShiftByConstant()
466 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName()); in FoldShiftByConstant()
485 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName()); in FoldShiftByConstant()
670 Value *Shift = Builder->CreateShl(X, ShiftDiffCst); in FoldShiftByConstant()
732 return BinaryOperator::CreateShl(ConstantExpr::getShl(C1, C2), A); in visitShl()
DInstCombineMulDivRem.cpp43 return IC.Builder->CreateShl(One, A); in simplifyValueKnownNonZero()
228 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul()
354 BO = BinaryOperator::CreateShl(Op1, Y); in visitMul()
357 BO = BinaryOperator::CreateShl(Op0, Y); in visitMul()
DInstCombineCasts.cpp1035 In = Builder->CreateShl(In, in transformSExtICmp()
1165 return BinaryOperator::CreateAShr(Builder->CreateShl(Res, ShAmt, "sext"), in visitSExt()
1178 Value *Res = Builder->CreateShl(TI->getOperand(0), ShAmt, "sext"); in visitSExt()
1208 A = Builder->CreateShl(A, ShAmtV, CI.getName()); in visitSExt()
DInstCombineAddSub.cpp1103 Value *NewShl = Builder->CreateShl(XorLHS, ShAmt, "sext"); in visitAdd()
1136 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1)); in visitAdd()
1646 return BinaryOperator::CreateShl(XNeg, Y); in visitSub()
DInstCombineSimplifyDemanded.cpp762 NewVal = BinaryOperator::CreateShl(II->getArgOperand(0), in SimplifyDemandedUseBits()
850 New = BinaryOperator::CreateShl(VarX, Amt); in SimplifyShrShlDemandedBits()
DInstCombineSelect.cpp332 V = Builder->CreateShl(V, C2Log - C1Log); in foldSelectICmpAndOr()
809 V = Builder->CreateShl(V, ValZeros - AndZeros); in foldSelectICmpAnd()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp274 Value *Q = Builder.CreateShl(Dividend, Tmp2); in generateUnsignedDivisionCode()
310 Value *Tmp5 = Builder.CreateShl(R_1, One); in generateUnsignedDivisionCode()
313 Value *Tmp8 = Builder.CreateShl(Q_2, One); in generateUnsignedDivisionCode()
333 Value *Tmp13 = Builder.CreateShl(Q_3, One); in generateUnsignedDivisionCode()
/external/llvm/include/llvm/IR/
DNoFolder.h118 Instruction *CreateShl(Constant *LHS, Constant *RHS, bool HasNUW = false,
120 BinaryOperator *BO = BinaryOperator::CreateShl(LHS, RHS);
DConstantFolder.h75 Constant *CreateShl(Constant *LHS, Constant *RHS,
DIRBuilder.h882 Value *CreateShl(Value *LHS, Value *RHS, const Twine &Name = "",
886 return Insert(Folder.CreateShl(LC, RC, HasNUW, HasNSW), Name);
890 Value *CreateShl(Value *LHS, const APInt &RHS, const Twine &Name = "",
892 return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
895 Value *CreateShl(Value *LHS, uint64_t RHS, const Twine &Name = "",
897 return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
/external/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp205 NewIn = IRB.CreateShl(NewIn, SL, CSL->getName()); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp595 return Builder.CreateShl(ExtendedStride, Exponent); in emitBump()
601 return Builder.CreateNeg(Builder.CreateShl(ExtendedStride, Exponent)); in emitBump()
DSeparateConstOffsetFromGEP.cpp802 Idx = Builder.CreateShl( in lowerToSingleIndexGEPs()
863 Idx = Builder.CreateShl( in lowerToArithmetics()
DScalarReplAggregates.cpp863 FromVal = Builder.CreateShl(FromVal, in ConvertScalar_ExtractValue()
1009 SV = Builder.CreateShl(SV, ConstantInt::get(SV->getType(), ShAmt)); in ConvertScalar_InsertValue()
2535 SrcField = BinaryOperator::CreateShl(SrcField, ShiftVal, "", LI); in RewriteLoadUserOfWholeAlloca()
DGVN.cpp1253 Value *ShVal = Builder.CreateShl(Val, NumBytesSet*8); in GetMemInstValueForLoad()
1260 Value *ShVal = Builder.CreateShl(Val, 1*8); in GetMemInstValueForLoad()
DSROA.cpp2068 V = IRB.CreateShl(V, ShAmt, Name + ".shift"); in insertInteger()
2419 V = IRB.CreateShl(V, TITy->getBitWidth() - AITy->getBitWidth(), in visitLoadInst()
/external/llvm/include/llvm/Analysis/
DTargetFolder.h89 Constant *CreateShl(Constant *LHS, Constant *RHS,
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp339 Value *BitMask = B.CreateShl(ConstantInt::get(BitsType, 1), BitIndex); in createMaskedBitTest()
497 Value *OffsetSHL = B.CreateShl( in lowerBitSetCall()
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp655 return IRB.CreateOr(Origin, IRB.CreateShl(Origin, kOriginSize * 8)); in originToIntptr()
1707 Value *SaOtherBits = IRB.CreateLShr(IRB.CreateShl(Sa, 1), 1); in getLowestPossibleValue()
1724 Value *SaOtherBits = IRB.CreateLShr(IRB.CreateShl(Sa, 1), 1); in getHighestPossibleValue()
DDataFlowSanitizer.cpp1117 Value *ShlShadow = IRB.CreateShl(WideShadow, DFS.ShadowWidth); in loadShadow()
/external/clang/lib/CodeGen/
DCGExpr.cpp1474 Val = Builder.CreateShl(Val, HighBits, "bf.shl"); in EmitLoadOfBitfieldLValue()
1686 SrcVal = Builder.CreateShl(SrcVal, Info.Offset, "bf.shl"); in EmitStoreThroughBitfieldLValue()
1713 ResultVal = Builder.CreateShl(ResultVal, HighBits, "bf.result.shl"); in EmitStoreThroughBitfieldLValue()
DCGBuiltin.cpp3213 return Builder.CreateShl(Builder.CreateBitCast(Ops[0],Ty), Ops[1], in EmitCommonNeonBuiltinExpr()
3223 return Builder.CreateShl(Ops[0], Ops[1], "vshll_n"); in EmitCommonNeonBuiltinExpr()
3634 Val = Builder.CreateShl(Val0, ShiftCst, "shl", true /* nuw */); in EmitARMBuiltinExpr()
4405 Val = Builder.CreateShl(Val0, ShiftCst, "shl", true /* nuw */); in EmitAArch64BuiltinExpr()
4953 return Builder.CreateShl( in EmitAArch64BuiltinExpr()

12