/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 137 BinOp = Builder->CreateAnd(NewLHS, NewRHS); in SimplifyBSwap() 163 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp() 174 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp() 183 Value *And = Builder->CreateAnd(X, Together); in OptAndOp() 215 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp() 277 return BinaryOperator::CreateAnd(ShVal, AndRHS, TheAnd.getName()); in OptAndOp() 724 Value *NewAnd = Builder->CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() 735 Value *NewAnd = Builder->CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() 741 Value *NewAnd1 = Builder->CreateAnd(B, D); in foldLogOpOfMaskedICmps() 742 Value *NewAnd2 = Builder->CreateAnd(A, NewAnd1); in foldLogOpOfMaskedICmps() [all …]
|
D | InstCombineShifts.cpp | 49 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms() 241 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue() 283 V = IC.Builder->CreateAnd(I->getOperand(0), in GetShiftedValue() 405 Value *And = Builder->CreateAnd(NSh, in FoldShiftByConstant() 441 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() 454 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant() 477 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() 488 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant() 590 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant() 626 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant() [all …]
|
D | InstCombineSelect.cpp | 535 Value *And = Builder->CreateAnd(AShr, C2->getValue()-C1->getValue()); in visitSelectInstWithICmp() 584 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp() 588 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp() 931 return BinaryOperator::CreateAnd(NotCond, FalseVal); in visitSelectInst() 935 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst() 948 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst() 953 return BinaryOperator::CreateAnd(TrueVal, FalseVal); in visitSelectInst() 1200 Value *And = Builder->CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
|
D | InstCombineCasts.cpp | 517 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()
|
D | InstCombineCompares.cpp | 443 return BinaryOperator::CreateAnd(C1, C2); in FoldCmpLoadFromIndexedGlobal() 494 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V); in FoldCmpLoadFromIndexedGlobal() 1420 Value *And = Builder->CreateAnd(Shr->getOperand(0), in FoldICmpShrCst() 1654 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst() 1670 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst() 1775 Builder->CreateAnd(Shift->getOperand(0), NS, LHSI->getName()); in visitICmpInstWithInstAndIntCst() 1814 Value *NewAnd = Builder->CreateAnd(X, NewOr, LHSI->getName()); in visitICmpInstWithInstAndIntCst() 1896 Op = BinaryOperator::CreateAnd(ICIP, ICIQ); in visitICmpInstWithInstAndIntCst() 2024 Builder->CreateAnd(LHSI->getOperand(0),Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst() 2048 Builder->CreateAnd(LHSI->getOperand(0), Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 47 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms() 234 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue() 274 V = IC.Builder->CreateAnd(I->getOperand(0), in GetShiftedValue() 393 Value *And = Builder->CreateAnd(NSh, in FoldShiftByConstant() 424 return BinaryOperator::CreateAnd(X, ConstantInt::get(I.getContext(), in FoldShiftByConstant() 439 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant() 457 return BinaryOperator::CreateAnd(X, ConstantInt::get(I.getContext(), in FoldShiftByConstant() 471 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant() 561 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant() 568 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant() [all …]
|
D | InstCombineAndOrXor.cpp | 207 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp() 218 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp() 227 Value *And = Builder->CreateAnd(X, Together); in OptAndOp() 259 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp() 324 return BinaryOperator::CreateAnd(ShVal, AndRHS, TheAnd.getName()); in OptAndOp() 657 Value* newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps() 668 Value* newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps() 674 Value* newAnd1 = Builder->CreateAnd(B, D); in foldLogOpOfMaskedICmps() 675 Value* newAnd = Builder->CreateAnd(A, newAnd1); in foldLogOpOfMaskedICmps() 711 Value *newAnd = Builder->CreateAnd(A, newOr1); in foldLogOpOfMaskedICmps() [all …]
|
D | InstCombineMulDivRem.cpp | 220 return BinaryOperator::CreateAnd(Op0, Op1); in visitMul() 248 return BinaryOperator::CreateAnd(V, OtherOp); in visitMul() 625 return BinaryOperator::CreateAnd(Op0, in visitURem() 633 return BinaryOperator::CreateAnd(Op0, Add); in visitURem() 641 Value *TrueAnd = Builder->CreateAnd(Op0, *C1-1, Op1->getName()+".t"); in visitURem() 642 Value *FalseAnd = Builder->CreateAnd(Op0, *C2-1, Op1->getName()+".f"); in visitURem()
|
D | InstCombineCompares.cpp | 406 return BinaryOperator::CreateAnd(C1, C2); in FoldCmpLoadFromIndexedGlobal() 452 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V); in FoldCmpLoadFromIndexedGlobal() 982 Value *And = Builder->CreateAnd(Shr->getOperand(0), in FoldICmpShrCst() 1091 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst() 1107 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst() 1197 Builder->CreateAnd(Shift->getOperand(0), NS, LHSI->getName()); in visitICmpInstWithInstAndIntCst() 1231 Op = BinaryOperator::CreateAnd(ICIP, ICIQ); in visitICmpInstWithInstAndIntCst() 1278 Builder->CreateAnd(LHSI->getOperand(0),Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst() 1293 Builder->CreateAnd(LHSI->getOperand(0), Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst() 1808 return BinaryOperator::CreateAnd(Not, Op1); in visitICmpInst() [all …]
|
D | InstCombineCasts.cpp | 460 Src = Builder->CreateAnd(Src, One); in visitTrunc() 494 return BinaryOperator::CreateAnd(NewTrunc, in visitTrunc() 611 Result = Builder->CreateAnd(Result, in transformZExtICmp() 792 return BinaryOperator::CreateAnd(Res, C); in visitZExt() 814 Value *And = Builder->CreateAnd(A, AndConst, CSrc->getName()+".mask"); in visitZExt() 820 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt() 826 return BinaryOperator::CreateAnd(Trunc, in visitZExt() 857 BinaryOperator::CreateAnd(TI0, in visitZExt() 871 Value *NewAnd = Builder->CreateAnd(TI0, ZC); in visitZExt()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 151 Value *NewAnd = Builder.CreateAnd(X, AndRHS); in OptAndOp() 516 Value *NewAnd = Builder.CreateAnd(A, NewMask); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() 655 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() 666 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() 672 Value *NewAnd1 = Builder.CreateAnd(B, D); in foldLogOpOfMaskedICmps() 673 Value *NewAnd2 = Builder.CreateAnd(A, NewAnd1); in foldLogOpOfMaskedICmps() 744 Value *NewAnd = Builder.CreateAnd(A, NewOr1); in foldLogOpOfMaskedICmps() 892 Value *Masked = Builder.CreateAnd(A, Mask); in foldAndOrOfICmpsOfAndWithPow2() 986 Value *NewAnd = Builder.CreateAnd(V, Low | AndC->getValue()); in foldAndOfICmps() 1397 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp() [all …]
|
D | InstCombineShifts.cpp | 59 Value *Rem = Builder.CreateAnd(A, ConstantInt::get(I.getType(), *B - 1), in commonShiftTransforms() 237 Value *And = Builder.CreateAnd(InnerShift->getOperand(0), in foldShiftedShift() 414 Value *And = Builder.CreateAnd(NSh, in FoldShiftByConstant() 450 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() 462 Value *XM = Builder.CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant() 485 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() 496 Value *XM = Builder.CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant() 622 return BinaryOperator::CreateAnd(X, ConstantInt::get(Ty, Mask)); in visitShl() 676 return BinaryOperator::CreateAnd(Mask, X); in visitShl() 741 return BinaryOperator::CreateAnd(NewLShr, ConstantInt::get(Ty, Mask)); in visitLShr() [all …]
|
D | InstCombineSelect.cpp | 110 bool CreateAnd = false; in foldSelectICmpAnd() local 128 CreateAnd = true; in foldSelectICmpAnd() 145 if (CreateAnd) { in foldSelectICmpAnd() 150 V = Builder.CreateAnd(V, ConstantInt::get(SelType, AndMask)); in foldSelectICmpAnd() 181 if (CreateAnd) in foldSelectICmpAnd() 182 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), AndMask)); in foldSelectICmpAnd() 479 Value *MaskedX = Builder.CreateAnd(X, FullMask); in foldSelectICmpAndAnd() 569 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), C1)); in foldSelectICmpAndOr() 974 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp() 978 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp() [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 192 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 …]
|
D | AtomicExpandPass.cpp | 501 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp() 503 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp() 615 Builder.CreateAnd(AddrInt, ~(uint64_t)(WordSize - 1)), WordPtrType, in createMaskInstrs() 618 Value *PtrLSB = Builder.CreateAnd(AddrInt, WordSize - 1, "PtrLSB"); in createMaskInstrs() 646 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp() 661 Value *NewVal_Masked = Builder.CreateAnd(NewVal, PMV.Mask); in performMaskedAtomicOp() 662 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp() 678 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp() 798 Value *InitLoaded_MaskOut = Builder.CreateAnd(InitLoaded, PMV.Inv_Mask); in expandPartwordCmpXchg() 833 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 192 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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 191 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP() 194 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP() 222 Tmp7 = Builder.CreateAnd(Tmp7, in LowerBSWAP() 226 Tmp6 = Builder.CreateAnd(Tmp6, in LowerBSWAP() 230 Tmp5 = Builder.CreateAnd(Tmp5, in LowerBSWAP() 234 Tmp4 = Builder.CreateAnd(Tmp4, in LowerBSWAP() 238 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP() 242 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP() 280 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); in LowerCTPOP() 284 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2"); in LowerCTPOP() [all …]
|
D | AtomicExpandPass.cpp | 511 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp() 513 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp() 625 Builder.CreateAnd(AddrInt, ~(uint64_t)(WordSize - 1)), WordPtrType, in createMaskInstrs() 628 Value *PtrLSB = Builder.CreateAnd(AddrInt, WordSize - 1, "PtrLSB"); in createMaskInstrs() 656 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp() 671 Value *NewVal_Masked = Builder.CreateAnd(NewVal, PMV.Mask); in performMaskedAtomicOp() 672 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp() 688 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp() 807 Value *InitLoaded_MaskOut = Builder.CreateAnd(InitLoaded, PMV.Inv_Mask); in expandPartwordCmpXchg() 842 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | PatternMatch.cpp | 95 EXPECT_TRUE(match(IRB.CreateAnd(X, X), m_And(m_Value(tX), m_Deferred(tX)))); in TEST_F() 101 match(IRB.CreateAnd(X, Y), m_c_And(m_Value(tX), m_Deferred(tX)))); in TEST_F() 112 checkMatch(IRB.CreateAnd(X, IRB.CreateAnd(X, Y))); in TEST_F() 113 checkMatch(IRB.CreateAnd(X, IRB.CreateAnd(Y, X))); in TEST_F() 114 checkMatch(IRB.CreateAnd(IRB.CreateAnd(X, Y), X)); in TEST_F() 115 checkMatch(IRB.CreateAnd(IRB.CreateAnd(Y, X), X)); in TEST_F()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 59 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst() 62 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 63 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst() 66 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
|
D | LoopPredication.cpp | 466 return Builder.CreateAnd(FirstIterationCheck, LimitCheck); in widenICmpRangeCheckIncrementingLoop() 502 return Builder.CreateAnd(FirstIterationCheck, LimitCheck); in widenICmpRangeCheckDecrementingLoop() 625 LastCheck = Builder.CreateAnd(LastCheck, Check); in widenGuardConditions()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 64 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst() 67 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | NoFolder.h | 137 Instruction *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function 138 return BinaryOperator::CreateAnd(LHS, RHS); in CreateAnd()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | NoFolder.h | 162 Instruction *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function 163 return BinaryOperator::CreateAnd(LHS, RHS); in CreateAnd()
|