Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A 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 …]
H A DExpandLargeFpConvert.cpp168 Value *And2 = Builder.CreateAnd( in expandFPToI()
170 Value *Abs = Builder.CreateAnd(ARep, SignificandMask); in expandFPToI()
410 Value *And = Builder.CreateAnd(Shr9, IsSigned ? Sub : IntVal); in expandIToFP()
424 Value *A2 = Builder.CreateAnd(A1, Builder.getIntN(32, 1)); in expandIToFP()
433 Value *A3 = Builder.CreateAnd(Inc, Temp1, "a3"); in expandIToFP()
503 And29 = Builder.CreateAnd(Shr, Temp2, "and29"); in expandIToFP()
506 And29 = Builder.CreateAnd( in expandIToFP()
523 And34 = Builder.CreateAnd(FloatWidth > 32 ? AAddr1Off32 : AAddr1Off0, in expandIToFP()
534 Value *A6 = Builder.CreateAnd(AAddr1Off0, Temp4); in expandIToFP()
545 Builder.CreateAnd(AAddr1Off0, Builder.getIntN(FloatWidth, 0xFFFFFFFF)); in expandIToFP()
H A DAtomicExpandPass.cpp778 PtrLSB = Builder.CreateAnd(AddrInt, MinWordSize - 1, "PtrLSB"); in createMaskInstrs()
827 Value *And = Builder.CreateAnd(WideWord, PMV.Inv_Mask, "unmasked"); in insertMaskedValue()
844 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
857 Value *NewVal_Masked = Builder.CreateAnd(NewVal, PMV.Mask); in performMaskedAtomicOp()
858 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
1078 Value *InitLoaded_MaskOut = Builder.CreateAnd(InitLoaded, PMV.Inv_Mask); in expandPartwordCmpXchg()
1113 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
1192 CmpVal_Shifted, Builder.CreateAnd(OldVal, PMV.Mask), "Success"); in expandAtomicCmpXchgToMaskedIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A 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()
H A DLowerAtomic.cpp53 return Builder.CreateAnd(Loaded, Val, "new"); in buildAtomicRMWValue()
55 return Builder.CreateNot(Builder.CreateAnd(Loaded, Val), "new"); in buildAtomicRMWValue()
H A DAMDGPUEmitPrintf.cpp243 NonConstStrLen = Builder.CreateAnd( in callBufferedPrintfStart()
265 LenWithNullAligned = Builder.CreateAnd( in callBufferedPrintfStart()
H A DIntegerDivision.cpp296 Value *Carry = Builder.CreateAnd(Tmp10, One); in generateUnsignedDivisionCode()
297 Value *Tmp11 = Builder.CreateAnd(Tmp10, Divisor); in generateUnsignedDivisionCode()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp391 Value *NewAnd = Builder.CreateAnd(A, NewMask); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
532 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
545 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
553 Value *NewAnd1 = Builder.CreateAnd(B, D); in foldLogOpOfMaskedICmps()
554 Value *NewAnd2 = Builder.CreateAnd(A, NewAnd1); in foldLogOpOfMaskedICmps()
636 Value *NewAnd = Builder.CreateAnd(A, BD); in foldLogOpOfMaskedICmps()
739 Value *And = Builder.CreateAnd(Op, Pow2); in foldAndOrOfICmpsWithPow2AndWithZero()
774 Value *Masked = Builder.CreateAnd(L1, Mask); in foldAndOrOfICmpsOfAndWithPow2()
1321 NewV = Builder.CreateAnd(NewV, ConstantInt::get(Ty, ~LowerDiff)); in foldAndOrOfICmpsUsingRanges()
1888 return BinaryOperator::CreateNot(Builder.CreateAnd(A, B)); in foldOrToXor()
[all …]
H A DInstCombineShifts.cpp504 Value *Rem = Builder.CreateAnd(A, Mask, Op1->getName()); in commonShiftTransforms()
667 Value *And = Builder.CreateAnd(InnerShift->getOperand(0), in foldShiftedShift()
740 auto *And = BinaryOperator::CreateAnd(Neg, in getShiftedValue()
1056 return BinaryOperator::CreateAnd(X, ConstantInt::get(Ty, Mask)); in visitShl()
1100 return BinaryOperator::CreateAnd(NewShl, ConstantInt::get(Ty, Mask)); in visitShl()
1111 return BinaryOperator::CreateAnd(NewShr, ConstantInt::get(Ty, Mask)); in visitShl()
1132 return BinaryOperator::CreateAnd(Trunc, ConstantInt::get(Ty, Mask)); in visitShl()
1177 return BinaryOperator::CreateAnd(B, Mask); in visitShl()
1187 Value *M = Builder.CreateAnd(X, ConstantInt::get(Ty, CC->shl(*C)), in visitShl()
1214 return BinaryOperator::CreateAnd(Mask, X); in visitShl()
[all …]
H A DInstCombineCompares.cpp317 Idx = Builder.CreateAnd(Idx, Mask); in foldCmpLoadFromIndexedGlobal()
362 return BinaryOperator::CreateAnd(C1, C2); in foldCmpLoadFromIndexedGlobal()
415 V = Builder.CreateAnd(ConstantInt::get(Ty, 1), V); in foldCmpLoadFromIndexedGlobal()
1165 Value *Masked = Builder.CreateAnd(X, Mask); in foldIRemByPowerOfTwoToBitTest()
1458 Value *And = Builder.CreateAnd(X, Mask); in foldICmpTruncConstant()
1717 Value *NewAnd = Builder.CreateAnd( in foldICmpAndShift()
1735 Value *NewAnd = Builder.CreateAnd(Shift->getOperand(0), NewShift); in foldICmpAndShift()
1807 Value *NewAnd = Builder.CreateAnd(W, ZextC2, And->getName()); in foldICmpAndConstConst()
1841 Value *NewAnd = Builder.CreateAnd(A, NewOr, And->getName()); in foldICmpAndConstConst()
1958 Value *And = Builder.CreateAnd(TruncY, X); in foldICmpAndConstant()
[all …]
H A DInstCombineCasts.cpp756 Value *And = Builder.CreateAnd(X, MaskC); in visitTrunc()
764 Value *And = Builder.CreateAnd(X, Builder.CreateOr(MaskC, One)); in visitTrunc()
999 Value *And1 = Builder.CreateAnd(Lshr, ConstantInt::get(X->getType(), 1)); in transformZExtICmp()
1190 return BinaryOperator::CreateAnd(Res, C); in visitZExt()
1212 Value *And = Builder.CreateAnd(A, AndConst, CSrc->getName() + ".mask"); in visitZExt()
1218 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt()
1224 return BinaryOperator::CreateAnd(Trunc, in visitZExt()
1238 return BinaryOperator::CreateAnd(X, Builder.CreateZExt(C, DestTy)); in visitZExt()
1246 return BinaryOperator::CreateXor(Builder.CreateAnd(X, ZC), ZC); in visitZExt()
1257 return BinaryOperator::CreateAnd(X, ZextC); in visitZExt()
[all …]
H A DInstCombineAddSub.cpp777 Value *NewAnd = Builder.CreateAnd(Z, *C1); in checkForNegativeOperand()
993 return BinaryOperator::CreateAnd(NotX, ConstantInt::get(Ty, 1)); in foldAddWithConstant()
1610 return BinaryOperator::CreateAnd(A, NewMask); in visitAdd()
1658 return BinaryOperator::CreateAnd(Add, A); in visitAdd()
1669 return BinaryOperator::CreateAnd(Dec, Not); in visitAdd()
2351 Value *And = Builder.CreateAnd(X, ConstantInt::get(I.getType(), *C2)); in visitSub()
2382 return BinaryOperator::CreateAnd(A, B); in visitSub()
2407 return BinaryOperator::CreateAnd(A, B); in visitSub()
2416 return BinaryOperator::CreateNeg(Builder.CreateAnd(A, B)); in visitSub()
2423 return BinaryOperator::CreateAnd( in visitSub()
[all …]
H A DInstCombineSelect.cpp136 bool CreateAnd = false; in foldSelectICmpAnd() local
154 CreateAnd = true; in foldSelectICmpAnd()
171 if (CreateAnd) { in foldSelectICmpAnd()
176 V = Builder.CreateAnd(V, ConstantInt::get(SelType, AndMask)); in foldSelectICmpAnd()
211 if (CreateAnd && ShouldNotVal && ValZeros != AndZeros) in foldSelectICmpAnd()
215 if (CreateAnd) in foldSelectICmpAnd()
216 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), AndMask)); in foldSelectICmpAnd()
624 Value *MaskedX = Builder.CreateAnd(X, FullMask); in foldSelectICmpAndAnd()
798 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), C1)); in foldSelectICmpAndBinOp()
1912 V = Builder.CreateAnd(X, ~(*Y)); in foldSelectInstWithICmp()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DHexagon.cpp209 CGF.Builder.CreateAnd(AsInt, Mask), __overflow_area_pointer->getType(), in EmitVAArgFromMemory()
245 AddrAsInt = Builder.CreateAnd(AddrAsInt, Builder.getInt32(~(TyAlign - 1))); in EmitVAArgForHexagon()
314 CGF.Builder.CreateAnd(__current_saved_reg_area_pointer_int, in EmitVAArgForHexagonLinux()
369 CGF.Builder.CreateAnd(__overflow_area_pointer_int, in EmitVAArgForHexagonLinux()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp211 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedLoad()
341 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedStore()
463 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedGather()
590 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedScatter()
701 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedExpandLoad()
816 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedCompressStore()
H A DLoopPredication.cpp587 Builder.CreateAnd(FirstIterationCheck, LimitCheck)); in widenICmpRangeCheckIncrementingLoop()
636 Builder.CreateAnd(FirstIterationCheck, LimitCheck)); in widenICmpRangeCheckDecrementingLoop()
745 Value *AllChecks = Builder.CreateAnd(Checks); in widenICmpRangeCheck()
780 Value *AllChecks = Builder.CreateAnd(Checks); in collectChecks()
789 Value *AssumeCond = Builder.CreateAnd(WidenedChecks); in collectChecks()
H A DGuardWidening.cpp775 Result = BinaryOperator::CreateAnd(RC.getCheckInst(), Result, "", in mergeChecks()
799 Value *Result = Builder.CreateAnd(ChecksToHoist); in hoistChecks()
801 Result = Builder.CreateAnd(OldCondition, Result); in hoistChecks()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOCtxProfLowering.cpp261 auto *Index = Builder.CreateAnd(CtxAsInt, Builder.getInt64(1)); in lowerFunction()
276 Builder.CreateAnd(CtxAsInt, Builder.getInt64(-2)), in lowerFunction()
H A DKCFI.cpp103 Builder.CreateAnd(Builder.CreatePtrToInt(FuncPtr, Int32Ty), in run()
H A DInstrOrderFile.cpp138 Value *WrappedIdx = updateB.CreateAnd( in generateCodeSequence()
H A DHWAddressSanitizer.cpp930 TagMismatch = IRB.CreateAnd(TagMismatch, TagNotIgnored); in insertShadowTagCheck()
1001 Value *PtrLowBits = IRB.CreateTrunc(IRB.CreateAnd(TCI.PtrLong, 15), Int8Ty); in instrumentMemAccessInline()
1192 return IRB.CreateAnd(OldTag, in applyTagMask()
1243 TaggedPtrLong = IRB.CreateAnd(PtrLong, ShiftedTag); in tagPointer()
1263 UntaggedPtrLong = IRB.CreateAnd( in untagPointer()
1373 Value *ThreadLongNew = IRB.CreateAnd( in emitPrologue()
H A DMemorySanitizer.cpp1714 OffsetLong = IRB.CreateAnd(OffsetLong, constToIntPtr(IntptrTy, ~AndMask)); in getShadowPtrOffset()
1757 OriginLong = IRB.CreateAnd(OriginLong, constToIntPtr(IntptrTy, ~Mask)); in getShadowOriginPtrUserspace()
2400 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitAnd()
2401 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitAnd()
2402 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitAnd()
2422 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitOr()
2423 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitOr()
2424 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitOr()
2693 IRB.CreateICmpEQ(IRB.CreateAnd(IRB.CreateXor(Sc, MinusOne), C), Zero); in handleEqualityComparison()
2694 Value *Si = IRB.CreateAnd(LHS, RHS); in handleEqualityComparison()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp422 auto *Kind = Builder.CreateAnd( in createRegisterGlobalsFunction()
426 auto *ExternBit = Builder.CreateAnd( in createRegisterGlobalsFunction()
431 auto *ConstantBit = Builder.CreateAnd( in createRegisterGlobalsFunction()
436 auto *NormalizedBit = Builder.CreateAnd( in createRegisterGlobalsFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp611 auto *NewActiveBits = B.CreateAnd(ActiveBits, InverseMask); in buildScanIteratively()
825 NewV = buildMul(B, V, B.CreateAnd(Ctpop, 1)); in optimizeAtomic()
948 LaneOffset = buildMul(B, V, B.CreateAnd(Mbcnt, 1)); in optimizeAtomic()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp500 Value *Tag = IRB.CreateAnd(IRB.CreatePtrToInt(Base, IntptrTy), TagMask); in insertBaseTaggedPointer()
516 Value *ThreadLongNew = IRB.CreateAnd( in insertBaseTaggedPointer()

1234