Home
last modified time | relevance | path

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

12345678

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp80 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
83 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
111 Tmp7 = Builder.CreateAnd(Tmp7, in LowerBSWAP()
115 Tmp6 = Builder.CreateAnd(Tmp6, in LowerBSWAP()
119 Tmp5 = Builder.CreateAnd(Tmp5, in LowerBSWAP()
123 Tmp4 = Builder.CreateAnd(Tmp4, in LowerBSWAP()
127 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
131 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
169 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); in LowerCTPOP()
173 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2"); in LowerCTPOP()
[all …]
DScalarizeMaskedMemIntrin.cpp196 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedLoad()
327 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedStore()
446 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedGather()
567 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedScatter()
657 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedExpandLoad()
763 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedCompressStore()
DAtomicExpandPass.cpp537 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp()
539 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp()
663 Builder.CreateAnd(AddrInt, ~(uint64_t)(WordSize - 1)), WordPtrType, in createMaskInstrs()
666 Value *PtrLSB = Builder.CreateAnd(AddrInt, WordSize - 1, "PtrLSB"); in createMaskInstrs()
697 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
710 Value *NewVal_Masked = Builder.CreateAnd(NewVal, PMV.Mask); in performMaskedAtomicOp()
711 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
727 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
881 Value *InitLoaded_MaskOut = Builder.CreateAnd(InitLoaded, PMV.Inv_Mask); in expandPartwordCmpXchg()
916 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DIntrinsicLowering.cpp79 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
82 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
110 Tmp7 = Builder.CreateAnd(Tmp7, in LowerBSWAP()
114 Tmp6 = Builder.CreateAnd(Tmp6, in LowerBSWAP()
118 Tmp5 = Builder.CreateAnd(Tmp5, in LowerBSWAP()
122 Tmp4 = Builder.CreateAnd(Tmp4, in LowerBSWAP()
126 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
130 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
168 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); in LowerCTPOP()
172 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2"); in LowerCTPOP()
[all …]
DAtomicExpandPass.cpp505 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp()
507 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp()
659 Builder.CreateAnd(AddrInt, ~(uint64_t)(MinWordSize - 1)), WordPtrType, in createMaskInstrs()
662 Value *PtrLSB = Builder.CreateAnd(AddrInt, MinWordSize - 1, "PtrLSB"); in createMaskInstrs()
701 Value *And = Builder.CreateAnd(WideWord, PMV.Inv_Mask, "unmasked"); in insertMaskedValue()
718 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
731 Value *NewVal_Masked = Builder.CreateAnd(NewVal, PMV.Mask); in performMaskedAtomicOp()
732 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
900 Value *InitLoaded_MaskOut = Builder.CreateAnd(InitLoaded, PMV.Inv_Mask); in expandPartwordCmpXchg()
935 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DGuardUtils.cpp75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC, in makeGuardControlFlowExplicit()
96 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in widenWidenableBranch()
100 C->set(B.CreateAnd(NewCond, C->get())); in widenWidenableBranch()
117 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in setWidenableBranchCond()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DGuardUtils.cpp75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC, in makeGuardControlFlowExplicit()
96 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in widenWidenableBranch()
100 C->set(B.CreateAnd(NewCond, C->get())); in widenWidenableBranch()
117 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in setWidenableBranchCond()
/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.cpp501 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/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp137 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 …]
DInstCombineShifts.cpp49 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 …]
DInstCombineSelect.cpp535 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()
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()
DInstCombineCompares.cpp443 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-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp150 Value *NewAnd = Builder.CreateAnd(X, AndRHS); in OptAndOp()
513 Value *NewAnd = Builder.CreateAnd(A, NewMask); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
652 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
663 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
669 Value *NewAnd1 = Builder.CreateAnd(B, D); in foldLogOpOfMaskedICmps()
670 Value *NewAnd2 = Builder.CreateAnd(A, NewAnd1); in foldLogOpOfMaskedICmps()
741 Value *NewAnd = Builder.CreateAnd(A, NewOr1); in foldLogOpOfMaskedICmps()
889 Value *Masked = Builder.CreateAnd(A, Mask); in foldAndOrOfICmpsOfAndWithPow2()
1244 Value *NewAnd = Builder.CreateAnd(V, Low | AndC->getValue()); in foldAndOfICmps()
1717 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp()
[all …]
DInstCombineShifts.cpp409 Value *Rem = Builder.CreateAnd(A, ConstantInt::get(I.getType(), *B - 1), in commonShiftTransforms()
590 Value *And = Builder.CreateAnd(InnerShift->getOperand(0), in foldShiftedShift()
749 Value *And = Builder.CreateAnd(NSh, in FoldShiftByConstant()
785 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
797 Value *XM = Builder.CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
820 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
831 Value *XM = Builder.CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
962 return BinaryOperator::CreateAnd(X, ConstantInt::get(Ty, Mask)); in visitShl()
1016 return BinaryOperator::CreateAnd(Mask, X); in visitShl()
1093 return BinaryOperator::CreateAnd(NewLShr, ConstantInt::get(Ty, Mask)); in visitLShr()
[all …]
DInstCombineSelect.cpp137 bool CreateAnd = false; in foldSelectICmpAnd() local
155 CreateAnd = true; in foldSelectICmpAnd()
172 if (CreateAnd) { in foldSelectICmpAnd()
177 V = Builder.CreateAnd(V, ConstantInt::get(SelType, AndMask)); in foldSelectICmpAnd()
208 if (CreateAnd) in foldSelectICmpAnd()
209 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), AndMask)); in foldSelectICmpAnd()
529 Value *MaskedX = Builder.CreateAnd(X, FullMask); in foldSelectICmpAndAnd()
659 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), C1)); in foldSelectICmpAndOr()
1469 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp()
1473 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp460 Value *NewAnd = Builder.CreateAnd(A, NewMask); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
597 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
608 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
614 Value *NewAnd1 = Builder.CreateAnd(B, D); in foldLogOpOfMaskedICmps()
615 Value *NewAnd2 = Builder.CreateAnd(A, NewAnd1); in foldLogOpOfMaskedICmps()
680 Value *NewAnd = Builder.CreateAnd(A, NewOr1); in foldLogOpOfMaskedICmps()
829 Value *Masked = Builder.CreateAnd(A, Mask); in foldAndOrOfICmpsOfAndWithPow2()
1231 Value *NewAnd = Builder.CreateAnd(V, Low | AndC->getValue()); in foldAndOfICmps()
1686 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp()
1738 Value *And = Builder.CreateAnd(X, Op1); in visitAnd()
[all …]
DInstCombineShifts.cpp413 Value *Rem = Builder.CreateAnd(A, Mask, Op1->getName()); in commonShiftTransforms()
567 Value *And = Builder.CreateAnd(InnerShift->getOperand(0), in foldShiftedShift()
719 Value *And = Builder.CreateAnd(NSh, MaskV, TI->getName()); in FoldShiftByConstant()
749 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
760 Value *XM = Builder.CreateAnd( in FoldShiftByConstant()
781 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
792 Value *XM = Builder.CreateAnd( in FoldShiftByConstant()
922 return BinaryOperator::CreateAnd(X, ConstantInt::get(Ty, Mask)); in visitShl()
958 return BinaryOperator::CreateAnd(NewShl, ConstantInt::get(Ty, Mask)); in visitShl()
969 return BinaryOperator::CreateAnd(NewShr, ConstantInt::get(Ty, Mask)); in visitShl()
[all …]
DInstCombineCompares.cpp358 return BinaryOperator::CreateAnd(C1, C2); in foldCmpLoadFromIndexedGlobal()
408 V = Builder.CreateAnd(ConstantInt::get(Ty, 1), V); in foldCmpLoadFromIndexedGlobal()
1358 Value *Masked = Builder.CreateAnd(X, Mask); in foldIRemByPowerOfTwoToBitTest()
1712 Value *NewAnd = Builder.CreateAnd( in foldICmpAndShift()
1730 Value *NewAnd = Builder.CreateAnd(Shift->getOperand(0), NewShift); in foldICmpAndShift()
1797 Value *NewAnd = Builder.CreateAnd(W, ZextC2, And->getName()); in foldICmpAndConstConst()
1836 Value *NewAnd = Builder.CreateAnd(A, NewOr, And->getName()); in foldICmpAndConstConst()
1929 Value *And = Builder.CreateAnd(OrOp0, ~(*MaskC)); in foldICmpOrConstant()
2146 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2158 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
[all …]
DInstCombineSelect.cpp138 bool CreateAnd = false; in foldSelectICmpAnd() local
156 CreateAnd = true; in foldSelectICmpAnd()
173 if (CreateAnd) { in foldSelectICmpAnd()
178 V = Builder.CreateAnd(V, ConstantInt::get(SelType, AndMask)); in foldSelectICmpAnd()
209 if (CreateAnd) in foldSelectICmpAnd()
210 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), AndMask)); in foldSelectICmpAnd()
509 Value *MaskedX = Builder.CreateAnd(X, FullMask); in foldSelectICmpAndAnd()
639 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), C1)); in foldSelectICmpAndOr()
1521 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp()
1525 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp64 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
67 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
/external/swiftshader/third_party/llvm-10.0/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-project/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp63 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
66 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
DScalarizeMaskedMemIntrin.cpp199 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedLoad()
331 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedStore()
450 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedGather()
572 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedScatter()
673 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedExpandLoad()
779 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedCompressStore()

12345678