Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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()
DIntegerDivision.cpp316 Value *Carry = Builder.CreateAnd(Tmp10, One); in generateUnsignedDivisionCode()
317 Value *Tmp11 = Builder.CreateAnd(Tmp10, Divisor); in generateUnsignedDivisionCode()
DFlattenCFG.cpp302 NC = Builder.CreateAnd(PC, CC); in FlattenParallelAndOr()
/third_party/skia/third_party/externals/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 …]
DInstCombineCompares.cpp357 return BinaryOperator::CreateAnd(C1, C2); in foldCmpLoadFromIndexedGlobal()
407 V = Builder.CreateAnd(ConstantInt::get(Ty, 1), V); in foldCmpLoadFromIndexedGlobal()
1355 Value *Masked = Builder.CreateAnd(X, Mask); in foldIRemByPowerOfTwoToBitTest()
1707 Value *NewAnd = Builder.CreateAnd(Shift->getOperand(0), NewShift); in foldICmpAndShift()
1775 Value *NewAnd = Builder.CreateAnd(W, ZextC2, And->getName()); in foldICmpAndConstConst()
1814 Value *NewAnd = Builder.CreateAnd(A, NewOr, And->getName()); in foldICmpAndConstConst()
1903 Value *A = Builder.CreateAnd(OrOp0, ~C); in foldICmpOrConstant()
2104 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2116 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2126 Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
[all …]
DInstCombineAddSub.cpp794 Value *NewAnd = Builder.CreateAnd(Z, *C1); in checkForNegativeOperand()
945 return BinaryOperator::CreateAnd(NotX, ConstantInt::get(Ty, 1)); in foldAddWithConstant()
1340 return BinaryOperator::CreateAnd(NewAdd, C2); in visitAdd()
1871 return BinaryOperator::CreateAnd(A, B); in visitSub()
1880 return BinaryOperator::CreateNeg(Builder.CreateAnd(A, B)); in visitSub()
1887 return BinaryOperator::CreateAnd( in visitSub()
1896 return BinaryOperator::CreateNeg(Builder.CreateAnd( in visitSub()
1906 Builder.CreateAnd(Op1, Builder.CreateNot(C))); in visitSub()
1970 return BinaryOperator::CreateAnd(Op0, in visitSub()
DInstCombineCasts.cpp732 Value *And = Builder.CreateAnd(Src, ConstantInt::get(SrcTy, 1)); in visitTrunc()
743 Value *And = Builder.CreateAnd(X, ConstantInt::get(SrcTy, MaskC)); in visitTrunc()
750 Value *And = Builder.CreateAnd(X, ConstantInt::get(SrcTy, MaskC)); in visitTrunc()
946 Result = Builder.CreateAnd(Result, in transformZExtICmp()
1136 return BinaryOperator::CreateAnd(Res, C); in visitZExt()
1158 Value *And = Builder.CreateAnd(A, AndConst, CSrc->getName() + ".mask"); in visitZExt()
1164 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt()
1170 return BinaryOperator::CreateAnd(Trunc, in visitZExt()
1212 return BinaryOperator::CreateAnd(X, ConstantExpr::getZExt(C, CI.getType())); in visitZExt()
1220 return BinaryOperator::CreateXor(Builder.CreateAnd(X, ZC), ZC); in visitZExt()
/third_party/skia/third_party/externals/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()
DLoopPredication.cpp607 return Builder.CreateAnd(FirstIterationCheck, LimitCheck); in widenICmpRangeCheckIncrementingLoop()
655 return Builder.CreateAnd(FirstIterationCheck, LimitCheck); in widenICmpRangeCheckDecrementingLoop()
807 Value *AllChecks = Builder.CreateAnd(Checks); in widenGuardConditions()
833 Value *AllChecks = Builder.CreateAnd(Checks); in widenWidenableBranchGuardConditions()
DGuardWidening.cpp554 Result = BinaryOperator::CreateAnd(RC.getCheckInst(), Result, "", in widenCondCommon()
573 Result = BinaryOperator::CreateAnd(Cond0, Cond1, "wide.chk", InsertPt); in widenCondCommon()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DNoFolder.h161 Instruction *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
162 return BinaryOperator::CreateAnd(LHS, RHS); in CreateAnd()
DIRBuilder.h1361 Value *CreateAnd(Value *LHS, Value *RHS, const Twine &Name = "") {
1366 return Insert(Folder.CreateAnd(LC, RC), Name);
1368 return Insert(BinaryOperator::CreateAnd(LHS, RHS), Name);
1371 Value *CreateAnd(Value *LHS, const APInt &RHS, const Twine &Name = "") {
1372 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1375 Value *CreateAnd(Value *LHS, uint64_t RHS, const Twine &Name = "") {
1376 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1379 Value *CreateAnd(ArrayRef<Value*> Ops) { in CreateAnd() function
1383 Accum = CreateAnd(Accum, Ops[i]); in CreateAnd()
2816 Value *MaskedPtr = CreateAnd(PtrIntValue, Mask, "maskedptr"); in CreateAlignmentAssumptionHelper()
DConstantFolder.h103 Constant *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DInstrOrderFile.cpp150 Value *WrappedIdx = updateB.CreateAnd( in generateCodeSequence()
DHWAddressSanitizer.cpp638 TagMismatch = IRB.CreateAnd(TagMismatch, TagNotIgnored); in instrumentMemAccessInline()
653 Value *PtrLowBits = IRB.CreateTrunc(IRB.CreateAnd(PtrLong, 15), Int8Ty); in instrumentMemAccessInline()
876 TaggedPtrLong = IRB.CreateAnd(PtrLong, ShiftedTag); in tagPointer()
894 UntaggedPtrLong = IRB.CreateAnd(PtrLong, in untagPointer()
980 Value *ThreadLongNew = IRB.CreateAnd( in emitPrologue()
DMemorySanitizer.cpp1393 IRB.CreateAnd(OffsetLong, ConstantInt::get(MS.IntptrTy, ~AndMask)); in getShadowPtrOffset()
1430 IRB.CreateAnd(OriginLong, ConstantInt::get(MS.IntptrTy, ~Mask)); in getShadowOriginPtrUserspace()
1950 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitAnd()
1951 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitAnd()
1952 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitAnd()
1972 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitOr()
1973 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitOr()
1974 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitOr()
2232 IRB.CreateAnd(IRB.CreateICmpNE(Sc, Zero), in handleEqualityComparison()
2234 IRB.CreateAnd(IRB.CreateXor(Sc, MinusOne), C), Zero)); in handleEqualityComparison()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAtomicOptimizer.cpp547 NewV = B.CreateMul(V, B.CreateAnd(Ctpop, 1)); in optimizeAtomic()
637 LaneOffset = B.CreateMul(V, B.CreateAnd(Mbcnt, 1)); in optimizeAtomic()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAutoUpgrade.cpp1318 LHS = Builder.CreateAnd(LHS, Mask); in upgradePMULDQ()
1319 RHS = Builder.CreateAnd(RHS, Mask); in upgradePMULDQ()
1337 Vec = Builder.CreateAnd(Vec, getX86MaskVec(Builder, Mask, NumElts)); in ApplyX86MaskOn1BitsVec()
1397 Value* AndNode = Builder.CreateAnd(Mask, APInt(8, 1)); in upgradeMaskedMove()
1775 Value *Mask = Builder.CreateAnd(CI->getArgOperand(2), Builder.getInt8(1)); in UpgradeIntrinsicCall()
1850 Rep = Builder.CreateAnd(Op0, Op1); in UpgradeIntrinsicCall()
1885 Rep = Builder.CreateAnd(LHS, RHS); in UpgradeIntrinsicCall()
1891 Rep = Builder.CreateAnd(LHS, RHS); in UpgradeIntrinsicCall()
2228 Value *Sel0 = Builder.CreateAnd(CI->getArgOperand(0), Sel); in UpgradeIntrinsicCall()
2229 Value *Sel1 = Builder.CreateAnd(CI->getArgOperand(1), NotSel); in UpgradeIntrinsicCall()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1040 Value *And = IRBuilder<>(In).CreateAnd(T->getOperand(0), Mask); in promoteTo()
1540 P = B.CreateAnd(P, BMI); in generate()
1554 P = B.CreateAnd(P, BMI); in generate()
1624 return B.CreateAnd(B.CreateXor(And0->getOperand(0), And1->getOperand(0)), in setupPreSimplifier()
1759 return B.CreateAnd(B.CreateXor(And0->getOperand(0), And1), C0); in setupPostSimplifier()
2218 Value *CmpBoth = Builder.CreateAnd(Cond, CmpB); in processCopyingStore()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetFolder.h97 Constant *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function

123