Home
last modified time | relevance | path

Searched refs:CreateAdd (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp841 Value *NewC = Builder.CreateAdd(WideC, Op1C); in foldNoWrapAdd()
843 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
849 Value *NewC = Builder.CreateAdd(WideC, Op1C); in foldNoWrapAdd()
851 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
878 return BinaryOperator::CreateAdd(Builder.CreateNot(Y), X); in foldAddWithConstant()
915 BinaryOperator::CreateAdd(X, ConstantExpr::getAdd(Op01C, Op1C)); in foldAddWithConstant()
947 return BinaryOperator::CreateAdd(X, ConstantInt::get(Ty, *C2 ^ *C)); in foldAddWithConstant()
1055 Value *AB = Builder.CreateAdd(A, B); in foldSquareSumInt()
1200 return Builder.CreateAdd( in SimplifyAddWithRemainder()
1540 return BinaryOperator::CreateNeg(Builder.CreateAdd(A, B)); in visitAdd()
[all …]
H A DInstCombineNegator.cpp178 return Builder.CreateAdd(X, ConstantInt::get(X->getType(), 1), in visitImpl()
437 return Builder.CreateAdd(NegatedOps[0], NegatedOps[1], in visitImpl()
454 return Builder.CreateAdd(Xor, ConstantInt::get(Xor->getType(), 1), in visitImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h150 B.CreateAdd(B.CreateMul(ColumnIdx, ConstantInt::get( in CreateMatrixInsert()
157 Value *CreateAdd(Value *LHS, Value *RHS) { in CreateAdd() function
177 : B.CreateAdd(LHS, RHS); in CreateAdd()
252 return B.CreateAdd(B.CreateMul(ColumnIdx, NumRowsV), RowIdx);
H A DFixedPointBuilder.h59 Value *Rounded = B.CreateAdd(Result, LowBits); in Convert()
228 Value *CreateAdd(Value *LHS, const FixedPointSemantics &LHSSema, in CreateAdd() function
241 Result = B.CreateAdd(WideLHS, WideRHS); in CreateAdd()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp123 Value *Inc = B.CreateAdd(IV, Step, Name + ".step"); in createLoop()
186 B.CreateAdd(B.CreateMul(CurrentRowZExt, Stride), CurrentColZExt); in createTileLoadStoreLoops()
188 Value *Idx = B.CreateAdd(B.CreateMul(CurrentRow, B.getInt16(16)), CurrentCol); in createTileLoadStoreLoops()
343 B.CreateAdd(B.CreateMul(CurrentRow, B.getInt16(16)), CurrentCol); in createTileDPLoops()
356 B.CreateAdd(B.CreateMul(CurrentRow, B.getInt16(16)), CurrentInner); in createTileDPLoops()
358 B.CreateAdd(B.CreateMul(CurrentInner, B.getInt16(16)), CurrentCol); in createTileDPLoops()
406 Value *ResElt = B.CreateAdd(EltC, SubVecR); in createTileDPLoops()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeFpConvert.cpp178 Value *Add1 = Builder.CreateAdd( in expandFPToI()
207 Value *Sub15 = Builder.CreateAdd( in expandFPToI()
405 Builder.CreateAdd(FloatWidth == 128 ? Call : Cast, in expandIToFP()
427 Value *Inc = Builder.CreateAdd(Or17, Builder.getIntN(BitWidth, 1)); in expandIToFP()
462 Value *Sub24 = Builder.CreateAdd( in expandIToFP()
515 Shl30 = Builder.CreateAdd( in expandIToFP()
521 Shl30 = Builder.CreateAdd( in expandIToFP()
H A DIntrinsicLowering.cpp173 PartValue = Builder.CreateAdd(LHS, RHS, "ctpop.step"); in LowerCTPOP()
175 Count = Builder.CreateAdd(PartValue, Count, "ctpop.part"); in LowerCTPOP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp142 Len = Builder.CreateAdd(Len, One); in getStrlenWithNull()
241 TempAdd = Builder.CreateAdd(LenWithNull, in callBufferedPrintfStart()
263 TempAdd = Builder.CreateAdd( in callBufferedPrintfStart()
269 auto Val = Builder.CreateAdd(LenWithNullAligned, NonConstStrLen, in callBufferedPrintfStart()
290 SizeToReserve = Builder.CreateAdd(NonConstStrLen, SizeToReserve); in callBufferedPrintfStart()
H A DLowerMemIntrinsics.cpp97 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
252 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
305 Value *FullOffset = ResBuilder.CreateAdd(RuntimeBytesCopied, ResidualIndex); in createMemCpyLoopUnknownSize()
327 Value *ResNewIndex = ResBuilder.CreateAdd( in createMemCpyLoopUnknownSize()
451 Value *FwdIndexPtr = FwdLoopBuilder.CreateAdd( in createMemMoveLoop()
494 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1)); in createMemSetLoop()
H A DLowerAtomic.cpp49 return Builder.CreateAdd(Loaded, Val, "new"); in buildAtomicRMWValue()
82 Value *Inc = Builder.CreateAdd(Loaded, One); in buildAtomicRMWValue()
H A DLoopUnrollRuntime.cpp397 Builder.CreateAdd(NewIdx, One, NewIdx->getName() + ".next"); in CloneLoopBlocks()
536 Value *ModValAdd = B.CreateAdd(ModValTmp, in CreateTripRemainder()
779 B.CreateAdd(TripCount, Constant::getAllOnesValue(TripCount->getType())); in UnrollRuntimeLoopRemainder()
943 Value *IdxNext = B2.CreateAdd(NewIdx, One, NewIdx->getName() + ".next"); in UnrollRuntimeLoopRemainder()
H A DIntegerDivision.cpp251 Value *SR_1 = Builder.CreateAdd(SR, One); in generateUnsignedDivisionCode()
263 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode()
299 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
H A DMatrixUtils.cpp43 Value *Inc = B.CreateAdd(IV, Step, Name + ".step"); in CreateLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp442 Builder.CreateAdd(VectorIndexPhi, VecLen, "", in createMaskedFindMismatch()
477 Value *VectorLoopRes64 = Builder.CreateAdd(VectorFoundIndex, Ctz, "", in createMaskedFindMismatch()
556 Builder.CreateAdd(VectorIndexPhi, VL64, "", in createPredicatedFindMismatch()
580 Value *VectorLoopRes64 = Builder.CreateAdd(VectorIndexLCSSAPhi, CTZI64, "", in createPredicatedFindMismatch()
799 Value *PhiInc = Builder.CreateAdd(IndexPhi, ConstantInt::get(ResType, 1), "", in expandFindMismatch()
855 Start = Builder.CreateAdd(Start, ConstantInt::get(Start->getType(), 1)); in transformByteCompare()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DHexagon.cpp244 AddrAsInt = Builder.CreateAdd(AddrAsInt, Builder.getInt32(TyAlign - 1)); in EmitVAArgForHexagon()
308 __current_saved_reg_area_pointer_int = CGF.Builder.CreateAdd( in EmitVAArgForHexagonLinux()
364 CGF.Builder.CreateAdd(__overflow_area_pointer_int, in EmitVAArgForHexagonLinux()
H A DSystemZ.cpp354 CGF.Builder.CreateAdd(ScaledRegCount, RegBase, "reg_offset"); in EmitVAArg()
367 CGF.Builder.CreateAdd(RegCount, One, "reg_count"); in EmitVAArg()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp33 Result = Builder->CreateAdd(Result, Offset, GEP->getName() + ".offs", in emitGEPOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp176 Start = Builder.CreateAdd(Start, Splat); in matchStridedStart()
233 Inc = BinaryOperator::CreateAdd(BasePtr, Step, Inc->getName() + ".scalar", in matchStridedRecurrence()
310 Start = Builder.CreateAdd(Start, SplatOp, "start"); in matchStridedRecurrence()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2215 Count = Builder.CreateAdd(Count, ConstantInt::get(CountTy, 1)); in transformLoopToCountable()
2225 NewCount = Builder.CreateAdd(NewCount, CntInitVal); in transformLoopToCountable()
2301 NewCount = Builder.CreateAdd(NewCount, CntInitVal); in transformLoopToPopcount()
2646 Value *LowBitMask = Builder.CreateAdd(BitMask, Constant::getAllOnesValue(Ty), in recognizeShiftUntilBitTest()
2659 Builder.CreateAdd(XMaskedNumActiveBits, Constant::getAllOnesValue(Ty), in recognizeShiftUntilBitTest()
2669 Builder.CreateAdd(LoopBackedgeTakenCount, ConstantInt::get(Ty, 1), in recognizeShiftUntilBitTest()
2720 Builder.CreateAdd(IV, ConstantInt::get(Ty, 1), IV->getName() + ".next", in recognizeShiftUntilBitTest()
3011 Value *ValNumActiveBitsOffset = Builder.CreateAdd( in recognizeShiftUntilZero()
3025 Builder.CreateAdd(LoopBackedgeTakenCount, ConstantInt::get(Ty, 1), in recognizeShiftUntilZero()
3043 Builder.CreateAdd(CIV, ConstantInt::get(Ty, 1), CIV->getName() + ".next", in recognizeShiftUntilZero()
[all …]
H A DReassociate.cpp248 static BinaryOperator *CreateAdd(Value *S1, Value *S2, const Twine &Name, in CreateAdd() function
252 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd()
962 BinaryOperator *New = CreateAdd(Or->getOperand(0), Or->getOperand(1), "", in convertOrWithNoCommonBitsToAdd()
1016 CreateAdd(Sub->getOperand(0), NegVal, "", Sub->getIterator(), Sub); in BreakUpSubtract()
1094 return CreateAdd(V2, V1, "reass.add", It, &*It); in EmitAddTreeOfValues()
1655 ? BinaryOperator::CreateAdd(MaxOccVal, MaxOccVal) in OptimizeAdd()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp1245 IRB.CreateAdd(Size, ConstantInt::get(MS.IntptrTy, kOriginSize - 1)); in paintOrigin()
1743 IRB.CreateAdd(ShadowLong, constToIntPtr(IntptrTy, ShadowBase)); in getShadowOriginPtrUserspace()
1754 IRB.CreateAdd(OriginLong, constToIntPtr(IntptrTy, OriginBase)); in getShadowOriginPtrUserspace()
1855 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForArgument()
1865 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getOriginPtrForArgument()
4946 return IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowAddrForVAArgument()
4953 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForVAArgument()
4973 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getOriginPtrForVAArgument()
5178 Value *CopySize = IRB.CreateAdd( in finalizeInstrumentation()
5206 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
[all …]
H A DAddressSanitizer.cpp1108 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
1327 return IRB.CreateAdd(Shadow, ShadowBase); in memToShadow()
1779 LastAccessedByte = IRB.CreateAdd( in createSlowPathCmp()
1947 IRB.CreateAdd(AddrLong, SizeMinusOne), in instrumentUnusualSizeOrAlignment()
3185 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in copyToShadowInline()
3224 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)), in copyToShadow()
3564 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in processStaticAllocas()
3576 IRB.CreateAdd(LocalStackBase, in processStaticAllocas()
3586 IRB.CreateAdd(LocalStackBase, in processStaticAllocas()
3649 Value *SavedFlagPtrPtr = IRBPoison.CreateAdd( in processStaticAllocas()
[all …]
H A DInstrProfiling.cpp453 auto *NewVal = Builder.CreateAdd(OldVal, LiveInValue); in doExtraRewritesBeforeFinalDeletion()
755 IncBuilder.CreateAdd(LoadSamplingVar, GetConstant(IncBuilder, 1)); in doSampling()
767 IncBuilder.CreateAdd(LoadSamplingVar, GetConstant(IncBuilder, 1)); in doSampling()
1127 auto *Add = Builder.CreateAdd(Builder.CreatePtrToInt(Addr, Int64Ty), BiasLI); in getCounterAddress()
1243 auto *Count = Builder.CreateAdd(Load, Inc->getStep()); in lowerIncrement()
1278 auto *Temp = Builder.CreateAdd( in lowerMCDCTestVectorBitmapUpdate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp526 Builder.CreateAdd(Index, ConstantInt::get(Index->getType(), K)); in promoteAllocaUserToVector()
591 Builder.CreateAdd(Index, ConstantInt::get(Index->getType(), K)); in promoteAllocaUserToVector()
1483 Value *TID = Builder.CreateAdd(Tmp0, Tmp1); in tryPromoteAllocaToLDS()
1484 TID = Builder.CreateAdd(TID, TIdZ); in tryPromoteAllocaToLDS()
H A DAMDGPUCodeGenPrepare.cpp1299 Value *Div = Builder.CreateAdd(IQ, JQ); in expandDivRem24Impl()
1418 X = Builder.CreateAdd(X, SignX); in expandDivRem32()
1419 Y = Builder.CreateAdd(Y, SignY); in expandDivRem32()
1467 Z = Builder.CreateAdd(Z, getMulHu(Builder, Z, NegYZ)); in expandDivRem32()
1476 Q = Builder.CreateSelect(Cond, Builder.CreateAdd(Q, One), Q); in expandDivRem32()
1483 Res = Builder.CreateSelect(Cond, Builder.CreateAdd(Q, One), Q); in expandDivRem32()

1234