Home
last modified time | relevance | path

Searched refs:CreateAnd (Results 1 – 25 of 41) sorted by relevance

12

/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp192 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
195 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
223 Tmp7 = Builder.CreateAnd(Tmp7, in LowerBSWAP()
227 Tmp6 = Builder.CreateAnd(Tmp6, in LowerBSWAP()
231 Tmp5 = Builder.CreateAnd(Tmp5, in LowerBSWAP()
235 Tmp4 = Builder.CreateAnd(Tmp4, in LowerBSWAP()
239 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
243 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
282 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); in LowerCTPOP()
286 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2"); in LowerCTPOP()
[all …]
DAtomicExpandPass.cpp355 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp()
357 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp147 BinOp = Builder->CreateAnd(NewLHS, NewRHS); in SimplifyBSwap()
173 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp()
184 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp()
193 Value *And = Builder->CreateAnd(X, Together); in OptAndOp()
225 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp()
287 return BinaryOperator::CreateAnd(ShVal, AndRHS, TheAnd.getName()); in OptAndOp()
736 Value *newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps()
747 Value *newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps()
753 Value *newAnd1 = Builder->CreateAnd(B, D); in foldLogOpOfMaskedICmps()
754 Value *newAnd = Builder->CreateAnd(A, newAnd1); in foldLogOpOfMaskedICmps()
[all …]
DInstCombineShifts.cpp49 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms()
242 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue()
282 V = IC.Builder->CreateAnd(I->getOperand(0), in GetShiftedValue()
404 Value *And = Builder->CreateAnd(NSh, in FoldShiftByConstant()
440 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
453 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
476 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
487 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
589 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant()
625 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant()
[all …]
DInstCombineSelect.cpp524 Value *And = Builder->CreateAnd(AShr, C2->getValue()-C1->getValue()); in visitSelectInstWithICmp()
573 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp()
577 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp()
843 return BinaryOperator::CreateAnd(NotCond, FalseVal); in visitSelectInst()
848 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
860 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
865 return BinaryOperator::CreateAnd(TrueVal, FalseVal); in visitSelectInst()
1165 Value *And = Builder->CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
DInstCombineCompares.cpp436 return BinaryOperator::CreateAnd(C1, C2); in FoldCmpLoadFromIndexedGlobal()
487 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V); in FoldCmpLoadFromIndexedGlobal()
1094 Value *And = Builder->CreateAnd(Shr->getOperand(0), in FoldICmpShrCst()
1329 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1345 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1450 Builder->CreateAnd(Shift->getOperand(0), NS, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1489 Value *NewAnd = Builder->CreateAnd(X, NewOr, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1571 Op = BinaryOperator::CreateAnd(ICIP, ICIQ); in visitICmpInstWithInstAndIntCst()
1699 Builder->CreateAnd(LHSI->getOperand(0),Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
1723 Builder->CreateAnd(LHSI->getOperand(0), Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineCasts.cpp517 Src = Builder->CreateAnd(Src, One); in visitTrunc()
571 return BinaryOperator::CreateAnd(NewTrunc, in visitTrunc()
687 Result = Builder->CreateAnd(Result, in transformZExtICmp()
880 return BinaryOperator::CreateAnd(Res, C); in visitZExt()
902 Value *And = Builder->CreateAnd(A, AndConst, CSrc->getName()+".mask"); in visitZExt()
908 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt()
914 return BinaryOperator::CreateAnd(Trunc, in visitZExt()
944 return BinaryOperator::CreateAnd(X, ConstantExpr::getZExt(C, CI.getType())); in visitZExt()
952 return BinaryOperator::CreateXor(Builder->CreateAnd(X, ZC), ZC); in visitZExt()
DInstCombineAddSub.cpp1019 Value *NewAnd = Builder->CreateAnd(Z, *C1); in checkForNegativeOperand()
1192 return BinaryOperator::CreateAnd(NewAdd, C2); in visitAdd()
1609 return BinaryOperator::CreateAnd(A, B); in visitSub()
1617 return BinaryOperator::CreateAnd( in visitSub()
1635 return BinaryOperator::CreateAnd(Op0, in visitSub()
DInstCombineMulDivRem.cpp345 return BinaryOperator::CreateAnd(Op0, Op1); in visitMul()
385 return BinaryOperator::CreateAnd(V, OtherOp); in visitMul()
1401 return BinaryOperator::CreateAnd(Op0, Add); in visitURem()
DInstCombineSimplifyDemanded.cpp369 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
394 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp63 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
66 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
/external/llvm/include/llvm/IR/
DNoFolder.h137 Instruction *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
138 return BinaryOperator::CreateAnd(LHS, RHS); in CreateAnd()
DIRBuilder.h937 Value *CreateAnd(Value *LHS, Value *RHS, const Twine &Name = "") {
942 return Insert(Folder.CreateAnd(LC, RC), Name);
944 return Insert(BinaryOperator::CreateAnd(LHS, RHS), Name);
946 Value *CreateAnd(Value *LHS, const APInt &RHS, const Twine &Name = "") {
947 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
949 Value *CreateAnd(Value *LHS, uint64_t RHS, const Twine &Name = "") {
950 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1770 Value *MaskedPtr = CreateAnd(PtrIntValue, Mask, "maskedptr");
DConstantFolder.h87 Constant *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp925 IRB.CreateAnd(OffsetLong, ConstantInt::get(MS.IntptrTy, ~AndMask)); in getShadowPtrOffset()
962 OriginLong = IRB.CreateAnd(OriginLong, in getOriginPtr()
1419 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitAnd()
1420 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitAnd()
1421 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitAnd()
1441 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitOr()
1442 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitOr()
1443 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitOr()
1693 IRB.CreateAnd(IRB.CreateICmpNE(Sc, Zero), in handleEqualityComparison()
1695 IRB.CreateAnd(IRB.CreateXor(Sc, MinusOne), C), Zero)); in handleEqualityComparison()
[all …]
DSafeStack.cpp515 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack()
624 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))), in moveDynamicAllocasToUnsafeStack()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp317 Value *Carry = Builder.CreateAnd(Tmp10, One); in generateUnsignedDivisionCode()
318 Value *Tmp11 = Builder.CreateAnd(Tmp10, Divisor); in generateUnsignedDivisionCode()
DBypassSlowDivision.cpp164 Value *AndV = MainBuilder.CreateAnd(OrV, BitMask); in insertFastDiv()
DFlattenCFG.cpp290 NC = Builder.CreateAnd(PC, CC); in FlattenParallelAndOr()
DLoopUnrollRuntime.cpp350 Value *ModVal = B.CreateAnd(TripCount, Count - 1, "xtraiter"); in UnrollRuntimeLoopProlog()
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp338 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
340 Value *MaskedBits = B.CreateAnd(Bits, BitMask); in createMaskedBitTest()
452 Value *ByteAndMask = B.CreateAnd(Byte, BAI->Mask); in createBitSetTest()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp488 return Builder.CreateAnd(Ops.LHS, Ops.RHS, "and"); in EmitAnd()
631 Check = Builder.CreateAnd(GE, LE); in EmitFloatConversionCheck()
681 Check = Builder.CreateAnd(GE, LE); in EmitFloatConversionCheck()
719 Check = Builder.CreateNot(Builder.CreateAnd(GE, LE)); in EmitFloatConversionCheck()
1017 Mask = Builder.CreateAnd(Mask, MaskBits, "mask"); in VisitShuffleVectorExpr()
2727 Builder.CreateAnd(RHS, GetWidthMinusOneValue(Ops.LHS, RHS), "shl.mask"); in EmitShl()
2788 Builder.CreateAnd(RHS, GetWidthMinusOneValue(Ops.LHS, RHS), "shr.mask"); in EmitShr()
2972 Result = Builder.CreateAnd(ResultR, ResultI, "and.ri"); in EmitCompare()
3054 Value *And = Builder.CreateAnd(LHS, RHS); in VisitBinLAnd()
3292 llvm::Value *tmp3 = Builder.CreateAnd(RHSTmp, tmp2); in VisitAbstractConditionalOperator()
[all …]
DCGExpr.cpp570 Builder.CreateAnd(Builder.CreatePtrToInt(Ptr, IntPtrTy), in EmitTypeCheck()
632 llvm::Value *Slot = Builder.CreateAnd(Hash, in EmitTypeCheck()
1306 Check = Builder.CreateAnd(Upper, Lower); in EmitLoadOfScalar()
1481 Val = Builder.CreateAnd(Val, llvm::APInt::getLowBitsSet(Info.StorageSize, in EmitLoadOfBitfieldLValue()
1680 SrcVal = Builder.CreateAnd(SrcVal, in EmitStoreThroughBitfieldLValue()
1689 Val = Builder.CreateAnd(Val, in EmitStoreThroughBitfieldLValue()
2451 Cond = Cond ? Builder.CreateAnd(Cond, Check) : Check; in EmitCheck()
2461 JointCond = Builder.CreateAnd(FatalCond, RecoverableCond); in EmitCheck()
/external/llvm/include/llvm/Analysis/
DTargetFolder.h99 Constant *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
/external/llvm/lib/IR/
DAutoUpgrade.cpp468 Value *Sel0 = Builder.CreateAnd(Arg0, Sel); in UpgradeIntrinsicCall()
469 Value *Sel1 = Builder.CreateAnd(Arg1, NotSel); in UpgradeIntrinsicCall()

12