Home
last modified time | relevance | path

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

123

/external/llvm/unittests/IR/
DPatternMatch.cpp54 Value *One = IRB.CreateAdd(IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(2)), in TEST_F()
56 Value *Two = IRB.CreateAdd(One, IRB.getInt32(42)); in TEST_F()
57 Value *Leaf = IRB.CreateAdd(IRB.CreateAdd(Two, IRB.getInt32(8)), in TEST_F()
58 IRB.CreateAdd(Two, IRB.getInt32(13))); in TEST_F()
269 EXPECT_FALSE(m_NSWAdd(m_Value(), m_Value()).match(IRB.CreateAdd(L, R))); in TEST_F()
283 EXPECT_FALSE(m_NUWAdd(m_Value(), m_Value()).match(IRB.CreateAdd(L, R))); in TEST_F()
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h225 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size),
234 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs");
247 Result = Builder->CreateAdd(Op, Result, GEP->getName()+".offs");
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp102 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1)); in convertMemCpyToLoop()
196 Value *FwdIndexPtr = FwdLoopBuilder.CreateAdd( in convertMemMoveToLoop()
234 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLen->getType(), 1)); in convertMemSetToLoop()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1121 return BinaryOperator::CreateAdd(XorLHS, in visitAdd()
1147 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
1191 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
1282 auto *New = BinaryOperator::CreateAdd(A, B); in visitAdd()
1291 auto *New = BinaryOperator::CreateAdd(A, B); in visitAdd()
1508 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
1534 return BinaryOperator::CreateAdd(X, AddOne(C)); in visitSub()
1628 return BinaryOperator::CreateAdd(Op0, in visitSub()
1653 return BinaryOperator::CreateAdd(Op0, Builder->CreateMul(A, B)); in visitSub()
1660 return BinaryOperator::CreateAdd(Op0, NewMul); in visitSub()
DInstCombineAndOrXor.cpp319 Value *Add = Builder->CreateAdd(V, NegLo, V->getName()+".off"); in InsertRangeTest()
338 Value *Add = Builder->CreateAdd(V, NegLo, V->getName()+".off"); in InsertRangeTest()
411 return Builder->CreateAdd(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd()
1048 Value *Add = Builder->CreateAdd(Val, AddCST, Val->getName()+".off"); in FoldAndOfICmps()
1869 Value *NewAdd = Builder->CreateAdd(NewAnd, MaxAddCst); in FoldOrOfICmps()
1919 Builder->CreateAdd(B, ConstantInt::getSigned(B->getType(), -1)), A); in FoldOrOfICmps()
2010 Value *Add = Builder->CreateAdd(Val, AddCST, Val->getName()+".off"); in FoldOrOfICmps()
2711 return BinaryOperator::CreateAdd(Op0I->getOperand(1), ConstantRHS); in visitXor()
2726 return BinaryOperator::CreateAdd(Op0I->getOperand(0), C); in visitXor()
DInstCombineMulDivRem.cpp288 return BinaryOperator::CreateAdd(Builder->CreateMul(X, Op1), Mul); in visitMul()
890 Value *Inc = Builder->CreateAdd(Op1, One); in commonIDivTransforms()
990 N = IC.Builder->CreateAdd(N, ConstantInt::get(N->getType(), CI.logBase2())); in foldUDivShl()
1400 Value *Add = Builder->CreateAdd(Op1, N1); in visitURem()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp645 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
829 return IRB.CreateAdd(Shadow, ConstantInt::get(IntptrTy, Mapping.Offset)); in memToShadow()
1057 LastAccessedByte = IRB.CreateAdd( in createSlowPathCmp()
1143 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1748 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in poisonRedZones()
1779 Value *p = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in SetShadowToStackAfterReturnInlined()
1948 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in poisonStack()
1961 IRB.CreateAdd(LocalStackBase, in poisonStack()
1971 IRB.CreateAdd(LocalStackBase, in poisonStack()
2008 Value *SavedFlagPtrPtr = IRBPoison.CreateAdd( in poisonStack()
[all …]
DMemorySanitizer.cpp944 IRB.CreateAdd(ShadowLong, in getShadowPtr()
958 IRB.CreateAdd(OriginLong, in getOriginPtr()
975 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForArgument()
985 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getOriginPtrForArgument()
2857 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForVAArgument()
2898 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, AMD64FpEndOffset), in finalizeInstrumentation()
2913 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
2924 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
2982 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForVAArgument()
3011 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), in finalizeInstrumentation()
[all …]
DSanitizerCoverage.cpp463 Value *GuardP = IRB.CreateAdd( in InjectCoverageAtBlock()
489 Value *P = IRB.CreateAdd( in InjectCoverageAtBlock()
494 Value *Inc = IRB.CreateAdd(LI, ConstantInt::get(IRB.getInt8Ty(), 1)); in InjectCoverageAtBlock()
DGCOVProfiling.cpp617 Count = Builder.CreateAdd(Count, Builder.getInt64(1)); in emitProfileArcs()
630 Count = Builder.CreateAdd(Count, Builder.getInt64(1)); in emitProfileArcs()
931 Value *Add = Builder.CreateAdd(Builder.CreateLoad(Counter), in insertIndirectCounterIncrement()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp57 Instruction *Add = BinaryOperator::CreateAdd(One, ArgX, "addresult", BB); in createAdd1()
108 BinaryOperator::CreateAdd(CallFibX1, CallFibX2, "addresult", RecurseBB); in CreateFibFunction()
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp87 Value *Add = builder.CreateAdd(One, ArgX); in main()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp82 Value *Sum = BinaryOperator::CreateAdd(CallFibX1, CallFibX2, in CreateFibFunction()
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITTestBase.h101 Value *AddResult = Builder.CreateAdd(Arg1, Arg2);
186 Value *Accumulator = Builder.CreateAdd(Param, RecursiveReturn);
DMCJITTest.cpp252 Value *Result = Builder.CreateAdd(Call1, Call2); in TEST_F()
/external/llvm/include/llvm/IR/
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
DConstantFolder.h34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
/external/llvm/unittests/Transforms/Utils/
DLocal.cpp52 builder.CreateAdd(phi, phi); in TEST()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp272 Value *SR_1 = Builder.CreateAdd(SR, One); in generateUnsignedDivisionCode()
284 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode()
320 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp346 Value *TID = Builder.CreateAdd(Tmp0, Tmp1); in visitAlloca()
347 TID = Builder.CreateAdd(TID, TIdZ); in visitAlloca()
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp57 Res = Builder.CreateAdd(Orig, Val); in LowerAtomicRMWInst()
DReassociate.cpp318 static BinaryOperator *CreateAdd(Value *S1, Value *S2, const Twine &Name, in CreateAdd() function
321 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd()
1015 BinaryOperator *New = CreateAdd(Sub->getOperand(0), NegVal, "", Sub, Sub); in BreakUpSubtract()
1090 return CreateAdd(V2, V1, "tmp", I, I); in EmitAddTreeOfValues()
1646 ? BinaryOperator::CreateAdd(MaxOccVal, MaxOccVal) in OptimizeAdd()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp545 ResR = Builder.CreateAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd()
548 ResI = Builder.CreateAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd()
728 ResI = Builder.CreateAdd(ResIl, ResIr, "mul.i"); in EmitBinMul()
781 llvm::Value *Tmp3 = Builder.CreateAdd(Tmp1, Tmp2); // ac+bd in EmitBinDiv()
785 llvm::Value *Tmp6 = Builder.CreateAdd(Tmp4, Tmp5); // cc+dd in EmitBinDiv()
/external/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp182 auto *Add1 = BinaryOperator::CreateAdd(Value, Value, "add", BB); in TEST_F()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp287 PartValue = Builder.CreateAdd(LHS, RHS, "ctpop.step"); in LowerCTPOP()
289 Count = Builder.CreateAdd(PartValue, Count, "ctpop.part"); in LowerCTPOP()

123