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.cpp261 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp()
263 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp146 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()
738 Value *newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps()
749 Value *newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps()
755 Value *newAnd1 = Builder->CreateAnd(B, D); in foldLogOpOfMaskedICmps()
756 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.cpp627 Value *And = Builder->CreateAnd(AShr, C2->getValue()-C1->getValue()); in visitSelectInstWithICmp()
702 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp()
706 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp()
927 return BinaryOperator::CreateAnd(NotCond, FalseVal); in visitSelectInst()
932 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
944 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
949 return BinaryOperator::CreateAnd(TrueVal, FalseVal); in visitSelectInst()
1218 Value *And = Builder->CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
DInstCombineCompares.cpp439 return BinaryOperator::CreateAnd(C1, C2); in FoldCmpLoadFromIndexedGlobal()
491 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V); in FoldCmpLoadFromIndexedGlobal()
1026 Value *And = Builder->CreateAnd(Shr->getOperand(0), in FoldICmpShrCst()
1249 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1265 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1370 Builder->CreateAnd(Shift->getOperand(0), NS, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1409 Value *NewAnd = Builder->CreateAnd(X, NewOr, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1465 Op = BinaryOperator::CreateAnd(ICIP, ICIQ); in visitICmpInstWithInstAndIntCst()
1593 Builder->CreateAnd(LHSI->getOperand(0),Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
1617 Builder->CreateAnd(LHSI->getOperand(0), Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineCasts.cpp465 Src = Builder->CreateAnd(Src, One); in visitTrunc()
499 return BinaryOperator::CreateAnd(NewTrunc, in visitTrunc()
612 Result = Builder->CreateAnd(Result, in transformZExtICmp()
805 return BinaryOperator::CreateAnd(Res, C); in visitZExt()
827 Value *And = Builder->CreateAnd(A, AndConst, CSrc->getName()+".mask"); in visitZExt()
833 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt()
839 return BinaryOperator::CreateAnd(Trunc, in visitZExt()
869 return BinaryOperator::CreateAnd(X, ConstantExpr::getZExt(C, CI.getType())); in visitZExt()
877 return BinaryOperator::CreateXor(Builder->CreateAnd(X, ZC), ZC); in visitZExt()
DInstCombineAddSub.cpp1019 Value *NewAnd = Builder->CreateAnd(Z, *C1); in checkForNegativeOperand()
1204 return BinaryOperator::CreateAnd(NewAdd, C2); in visitAdd()
1610 return BinaryOperator::CreateAnd(A, B); in visitSub()
1618 return BinaryOperator::CreateAnd( in visitSub()
1636 return BinaryOperator::CreateAnd(Op0, in visitSub()
DInstCombineMulDivRem.cpp334 return BinaryOperator::CreateAnd(Op0, Op1); in visitMul()
374 return BinaryOperator::CreateAnd(V, OtherOp); in visitMul()
1391 return BinaryOperator::CreateAnd(Op0, Add); in visitURem()
/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.h868 Value *CreateAnd(Value *LHS, Value *RHS, const Twine &Name = "") {
873 return Insert(Folder.CreateAnd(LC, RC), Name);
875 return Insert(BinaryOperator::CreateAnd(LHS, RHS), Name);
877 Value *CreateAnd(Value *LHS, const APInt &RHS, const Twine &Name = "") {
878 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
880 Value *CreateAnd(Value *LHS, uint64_t RHS, const Twine &Name = "") {
881 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1647 Value *MaskedPtr = CreateAnd(PtrIntValue, Mask, "maskedptr");
DConstantFolder.h87 Constant *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp875 IRB.CreateAnd(IRB.CreatePointerCast(Addr, MS.IntptrTy), in getShadowPtrOffset()
913 OriginLong = IRB.CreateAnd(OriginLong, in getOriginPtr()
1364 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitAnd()
1365 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitAnd()
1366 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitAnd()
1386 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitOr()
1387 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitOr()
1388 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitOr()
1632 IRB.CreateAnd(IRB.CreateICmpNE(Sc, Zero), in handleEqualityComparison()
1634 IRB.CreateAnd(IRB.CreateXor(Sc, MinusOne), C), Zero)); in handleEqualityComparison()
[all …]
DAddressSanitizer.cpp1008 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1988 Value *Shift = IRB.CreateAnd(PartialSize, IRB.getInt32(~7)); in computePartialRzMagic()
1996 Value *PartialBits = IRB.CreateAnd(PartialSize, IRB.getInt32(7)); in computePartialRzMagic()
2038 Value *PartialSize = IRB.CreateAnd(OldSize, AllocaRzMask); in handleDynamicAllocaCall()
2075 Value *PartialRzAligned = IRB.CreateAnd(PartialRzAddr, NotAllocaRzMask); in handleDynamicAllocaCall()
2085 Value *RightRzAddress = IRB.CreateAnd( in handleDynamicAllocaCall()
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp298 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
300 Value *MaskedBits = B.CreateAnd(Bits, BitMask); in createMaskedBitTest()
412 Value *ByteAndMask = B.CreateAnd(Byte, BAI->Mask); in createBitSetTest()
/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.cpp291 NC = Builder.CreateAnd(PC, CC); in FlattenParallelAndOr()
DLoopUnrollRuntime.cpp357 Value *ModVal = B.CreateAnd(TripCount, Count - 1, "xtraiter"); in UnrollRuntimeLoopProlog()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp489 return Builder.CreateAnd(Ops.LHS, Ops.RHS, "and"); in EmitAnd()
633 Check = Builder.CreateAnd(GE, LE); in EmitFloatConversionCheck()
683 Check = Builder.CreateAnd(GE, LE); in EmitFloatConversionCheck()
721 Check = Builder.CreateNot(Builder.CreateAnd(GE, LE)); in EmitFloatConversionCheck()
1014 Mask = Builder.CreateAnd(Mask, MaskBits, "mask"); in VisitShuffleVectorExpr()
2722 Builder.CreateAnd(RHS, GetWidthMinusOneValue(Ops.LHS, RHS), "shl.mask"); in EmitShl()
2783 Builder.CreateAnd(RHS, GetWidthMinusOneValue(Ops.LHS, RHS), "shr.mask"); in EmitShr()
2971 Result = Builder.CreateAnd(ResultR, ResultI, "and.ri"); in EmitCompare()
3054 Value *And = Builder.CreateAnd(LHS, RHS); in VisitBinLAnd()
3293 llvm::Value *tmp3 = Builder.CreateAnd(RHSTmp, tmp2); in VisitAbstractConditionalOperator()
[all …]
DCGExpr.cpp552 Builder.CreateAnd(Builder.CreatePtrToInt(Address, IntPtrTy), in EmitTypeCheck()
614 llvm::Value *Slot = Builder.CreateAnd(Hash, in EmitTypeCheck()
1201 Check = Builder.CreateAnd(Upper, Lower); in EmitLoadOfScalar()
1378 Val = Builder.CreateAnd(Val, llvm::APInt::getLowBitsSet(Info.StorageSize, in EmitLoadOfBitfieldLValue()
1583 SrcVal = Builder.CreateAnd(SrcVal, in EmitStoreThroughBitfieldLValue()
1592 Val = Builder.CreateAnd(Val, in EmitStoreThroughBitfieldLValue()
2307 Cond = Cond ? Builder.CreateAnd(Cond, Check) : Check; in EmitCheck()
2312 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/include/llvm/MC/
DMCExpr.h438 static const MCBinaryExpr *CreateAnd(const MCExpr *LHS, const MCExpr *RHS, in CreateAnd() function
/external/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp1278 Value *IsConflict = ChkBuilder.CreateAnd(Cmp0, Cmp1, "found.conflict"); in addRuntimeCheck()
1295 Instruction *Check = BinaryOperator::CreateAnd(MemoryRuntimeCheck, in addRuntimeCheck()

12