Home
last modified time | relevance | path

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

12

/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A 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()
H A DIRBuilderTest.cpp219 Builder.CreateShl(V, V, "", /* NUW */ false, /* NSW */ true)) in TEST_F()
229 Builder.CreateShl(V, V, "", /* NUW */ true, /* NSW */ false)) in TEST_F()
241 Builder.CreateShl(C, C, "", /* NUW */ false, /* NSW */ true)) in TEST_F()
251 Builder.CreateShl(C, C, "", /* NUW */ true, /* NSW */ false)) in TEST_F()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A 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()
H A DForwardControlFlowIntegrity.cpp302 Value *Shl = TempBuilder.CreateShl(Sub, LeftShift); in rewriteFunctionPointer()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp194 V = IC.Builder->CreateShl(C, NumBits); in GetShiftedValue()
427 Builder->CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant()
447 Builder->CreateShl(Op0BO->getOperand(0), Op1, in FoldShiftByConstant()
463 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName()); in FoldShiftByConstant()
482 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName()); in FoldShiftByConstant()
667 Value *Shift = Builder->CreateShl(X, ShiftDiffCst); in FoldShiftByConstant()
729 return BinaryOperator::CreateShl(ConstantExpr::getShl(C1, C2), A); in visitShl()
H A DInstCombineMulDivRem.cpp43 return IC.Builder->CreateShl(One, A); in simplifyValueKnownNonZero()
220 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul()
343 BO = BinaryOperator::CreateShl(Op1, Y); in visitMul()
346 BO = BinaryOperator::CreateShl(Op0, Y); in visitMul()
H A DInstCombineCasts.cpp967 In = Builder->CreateShl(In, in transformSExtICmp()
1089 return BinaryOperator::CreateAShr(Builder->CreateShl(Res, ShAmt, "sext"), in visitSExt()
1102 Value *Res = Builder->CreateShl(TI->getOperand(0), ShAmt, "sext"); in visitSExt()
1132 A = Builder->CreateShl(A, ShAmtV, CI.getName()); in visitSExt()
H A DInstCombineAddSub.cpp1101 Value *NewShl = Builder->CreateShl(XorLHS, ShAmt, "sext"); in visitAdd()
1134 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1)); in visitAdd()
1645 return BinaryOperator::CreateShl(XNeg, Y); in visitSub()
H A DInstCombineSimplifyDemanded.cpp850 NewVal = BinaryOperator::CreateShl(II->getArgOperand(0), in SimplifyDemandedUseBits()
938 New = BinaryOperator::CreateShl(VarX, Amt); in SimplifyShrShlDemandedBits()
H A DInstCombineSelect.cpp425 V = Builder->CreateShl(V, C2Log - C1Log); in foldSelectICmpAndOr()
834 V = Builder->CreateShl(V, ValZeros - AndZeros); in foldSelectICmpAnd()
H A DInstCombineCalls.cpp680 return BinaryOperator::CreateShl(Vec, in visitCallInst()
H A DInstCombineCompares.cpp1371 NS = Builder->CreateShl(AndCst, Shift->getOperand(1)); in visitICmpInstWithInstAndIntCst()
1412 NewOr = Builder->CreateOr(Builder->CreateShl(One, Y, in visitICmpInstWithInstAndIntCst()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A 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()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DNoFolder.h118 Instruction *CreateShl(Constant *LHS, Constant *RHS, bool HasNUW = false,
120 BinaryOperator *BO = BinaryOperator::CreateShl(LHS, RHS);
H A DConstantFolder.h75 Constant *CreateShl(Constant *LHS, Constant *RHS,
H A DIRBuilder.h806 Value *CreateShl(Value *LHS, Value *RHS, const Twine &Name = "",
810 return Insert(Folder.CreateShl(LC, RC, HasNUW, HasNSW), Name);
814 Value *CreateShl(Value *LHS, const APInt &RHS, const Twine &Name = "",
816 return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
819 Value *CreateShl(Value *LHS, uint64_t RHS, const Twine &Name = "",
821 return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp766 Idx = Builder.CreateShl( in lowerToSingleIndexGEPs()
813 Idx = Builder.CreateShl( in lowerToArithmetics()
H A DScalarReplAggregates.cpp862 FromVal = Builder.CreateShl(FromVal, in ConvertScalar_ExtractValue()
1008 SV = Builder.CreateShl(SV, ConstantInt::get(SV->getType(), ShAmt)); in ConvertScalar_InsertValue()
2523 SrcField = BinaryOperator::CreateShl(SrcField, ShiftVal, "", LI); in RewriteLoadUserOfWholeAlloca()
H A DGVN.cpp1240 Value *ShVal = Builder.CreateShl(Val, NumBytesSet*8); in GetMemInstValueForLoad()
1247 Value *ShVal = Builder.CreateShl(Val, 1*8); in GetMemInstValueForLoad()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h89 Constant *CreateShl(Constant *LHS, Constant *RHS,
/minix3/external/bsd/llvm/dist/llvm/include/llvm/MC/
H A DMCExpr.h492 static const MCBinaryExpr *CreateShl(const MCExpr *LHS, const MCExpr *RHS, in CreateShl() function
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp568 return ASan.DL->isLittleEndian() ? IRB.CreateShl(Val, Shift) in shiftAllocaMagic()
1921 PartialBits = IRB.CreateShl(PartialBits, IRB.getInt32(24)); in computePartialRzMagic()
H A DMemorySanitizer.cpp1559 Value *SaOtherBits = IRB.CreateLShr(IRB.CreateShl(Sa, 1), 1); in getLowestPossibleValue()
1576 Value *SaOtherBits = IRB.CreateLShr(IRB.CreateShl(Sa, 1), 1); in getHighestPossibleValue()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGExpr.cpp1344 Val = Builder.CreateShl(Val, HighBits, "bf.shl"); in EmitLoadOfBitfieldLValue()
1562 SrcVal = Builder.CreateShl(SrcVal, Info.Offset, "bf.shl"); in EmitStoreThroughBitfieldLValue()
1591 ResultVal = Builder.CreateShl(ResultVal, HighBits, "bf.result.shl"); in EmitStoreThroughBitfieldLValue()
H A DCGBuiltin.cpp2935 return Builder.CreateShl(Builder.CreateBitCast(Ops[0],Ty), Ops[1], in EmitCommonNeonBuiltinExpr()
2945 return Builder.CreateShl(Ops[0], Ops[1], "vshll_n"); in EmitCommonNeonBuiltinExpr()
3255 Val = Builder.CreateShl(Val0, ShiftCst, "shl", true /* nuw */); in EmitARMBuiltinExpr()
4030 Val = Builder.CreateShl(Val0, ShiftCst, "shl", true /* nuw */); in EmitAArch64BuiltinExpr()
4538 return Builder.CreateShl( in EmitAArch64BuiltinExpr()

12