Home
last modified time | relevance | path

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

12345678910

/external/llvm-project/llvm/unittests/Transforms/Utils/
DSSAUpdaterBulkTest.cpp56 Value *AddOp1 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 1)); in TEST()
61 Value *AddOp2 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 3)); in TEST()
66 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 5))); in TEST()
67 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 6))); in TEST()
68 auto *I3 = cast<Instruction>(B.CreateAdd(SubOp1, SubOp2)); in TEST()
140 Value *AddOp1 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 1)); in TEST()
144 Value *AddOp2 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 2)); in TEST()
148 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 3))); in TEST()
152 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 4))); in TEST()
DScalarEvolutionExpanderTest.cpp189 Value *Add = Builder.CreateAdd(Phi, ConstantInt::get(T_int64, 1), "add"); in TEST_F()
262 Builder.CreateAdd(Phi, ConstantInt::get(T_int64, 1), "add")); in TEST_F()
325 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
329 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
377 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
381 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
422 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
423 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
473 auto *S1 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
474 auto *S2 = cast<Instruction>(Builder.CreateAdd(Arg, C, "add")); in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/Utils/
DLocal.h59 Result = Builder->CreateAdd(Result, ConstantInt::get(IntIdxTy, Size),
73 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs");
92 Result = Builder->CreateAdd(Op, Result, GEP->getName()+".offs");
/external/llvm-project/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp302 NextAcc[0] = BinaryOperator::CreateAdd(Muls[0], Acc[4], "", LoopBB); in TEST_F()
304 NextAcc[1] = BinaryOperator::CreateAdd(Muls[1], Acc[5], "", LoopBB); in TEST_F()
306 NextAcc[2] = BinaryOperator::CreateAdd(Muls[2], Acc[6], "", LoopBB); in TEST_F()
308 NextAcc[3] = BinaryOperator::CreateAdd(Muls[3], Acc[7], "", LoopBB); in TEST_F()
311 NextAcc[4] = BinaryOperator::CreateAdd(Muls[4], Acc[0], "", LoopBB); in TEST_F()
313 NextAcc[5] = BinaryOperator::CreateAdd(Muls[5], Acc[1], "", LoopBB); in TEST_F()
315 NextAcc[6] = BinaryOperator::CreateAdd(Muls[6], Acc[2], "", LoopBB); in TEST_F()
317 NextAcc[7] = BinaryOperator::CreateAdd(Muls[7], Acc[3], "", LoopBB); in TEST_F()
332 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB); in TEST_F()
333 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB); in TEST_F()
[all …]
/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()
DAsmWriterTest.cpp27 std::unique_ptr<BinaryOperator> Add(BinaryOperator::CreateAdd(Undef, Undef)); in TEST()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Dadd_test_util.cc44 GPUOperation operation = CreateAdd(op_def, channels, channels[0]); in AddTwoEqualTensorsTest()
74 GPUOperation operation = CreateAdd(op_def, channels, channels[0]); in AddFirstTensorHasMoreChannelsThanSecondTest()
105 GPUOperation operation = CreateAdd(op_def, channels, 6); in AddFirstTensorHasLessChannelsThanSecond()
Dadd.h31 GPUOperation CreateAdd(const OperationDef& definition,
Dadd.cc26 GPUOperation CreateAdd(const OperationDef& definition, in CreateAdd() function
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dparallel_loop_emitter.cc94 llvm::Value* linear_index_base = b_->CreateAdd( in EmitIndexAndSetExitBasicBlock()
129 b_->CreateAdd(linear_index_base, base_index, "linear_index_plus_base", in EmitIndexAndSetExitBasicBlock()
136 b_->CreateAdd(linear_index_base, llvm::ConstantInt::get(index_type, i), in EmitIndexAndSetExitBasicBlock()
/external/llvm-project/llvm/include/llvm/IR/
DMatrixBuilder.h154 B.CreateAdd(B.CreateMul(ColumnIdx, ConstantInt::get( in CreateMatrixInsert()
161 Value *CreateAdd(Value *LHS, Value *RHS) { in CreateAdd() function
181 : B.CreateAdd(LHS, RHS); in CreateAdd()
229 Matrix, B.CreateAdd(B.CreateMul(ColumnIdx, NumRowsV), RowIdx),
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h220 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size),
229 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs");
242 Result = Builder->CreateAdd(Op, Result, GEP->getName()+".offs");
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerMemIntrinsics.cpp81 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
189 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
234 Value *FullOffset = ResBuilder.CreateAdd(RuntimeBytesCopied, ResidualIndex); in createMemCpyLoopUnknownSize()
243 ResBuilder.CreateAdd(ResidualIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
357 Value *FwdIndexPtr = FwdLoopBuilder.CreateAdd( in createMemMoveLoop()
401 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1)); in createMemSetLoop()
/external/llvm-project/llvm/lib/Transforms/Utils/
DLowerMemIntrinsics.cpp78 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
192 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
237 Value *FullOffset = ResBuilder.CreateAdd(RuntimeBytesCopied, ResidualIndex); in createMemCpyLoopUnknownSize()
247 ResBuilder.CreateAdd(ResidualIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
367 Value *FwdIndexPtr = FwdLoopBuilder.CreateAdd( in createMemMoveLoop()
415 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1)); in createMemSetLoop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp853 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
860 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
887 return BinaryOperator::CreateAdd(Builder.CreateNot(Y), X); in foldAddWithConstant()
1269 return BinaryOperator::CreateAdd(XorLHS, in visitAdd()
1289 return BinaryOperator::CreateNeg(Builder.CreateAdd(A, B)); in visitAdd()
1339 Value *NewAdd = Builder.CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
1695 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
1724 return BinaryOperator::CreateAdd(Builder.CreateNot(Op1), X); in visitSub()
1728 return BinaryOperator::CreateAdd(Builder.CreateNot(X), Op0); in visitSub()
1732 return BinaryOperator::CreateAdd( in visitSub()
[all …]
/external/llvm-project/polly/lib/CodeGen/
DPerfMonitor.cpp284 CyclesInScops = Builder.CreateAdd(CyclesInScops, CyclesInScop); in insertRegionEnd()
288 CyclesInCurrentScop = Builder.CreateAdd(CyclesInCurrentScop, CyclesInScop); in insertRegionEnd()
294 Builder.CreateAdd(TripCountForCurrentScop, Builder.getInt64(1)); in insertRegionEnd()
/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-project/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp850 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
857 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
884 return BinaryOperator::CreateAdd(Builder.CreateNot(Y), X); in foldAddWithConstant()
929 return BinaryOperator::CreateAdd(X, ConstantInt::get(Ty, *C2 ^ *C)); in foldAddWithConstant()
984 Value *NewAdd = Builder.CreateAdd(X, ConstantInt::get(Ty, *C)); in foldAddWithConstant()
1322 return BinaryOperator::CreateNeg(Builder.CreateAdd(A, B)); in visitAdd()
1345 return BinaryOperator::CreateAdd(A, Builder.CreateShl(RHS, 1, "reass.add")); in visitAdd()
1349 return BinaryOperator::CreateAdd(A, Builder.CreateShl(LHS, 1, "reass.add")); in visitAdd()
1709 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
1767 return BinaryOperator::CreateAdd(NegOp1, Op0); in visitSub()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_array.cc274 source_multi_index[i] = builder->CreateAdd( in SourceIndexOfSlice()
279 builder->CreateAdd(multidim_[i], GetConstantWithIndexType(starts[i])); in SourceIndexOfSlice()
325 linear_index = builder->CreateAdd( in SourceIndexOfBitcast()
412 logical_linear_index = builder->CreateAdd(logical_linear_index, addend, "", in Linearize()
431 logical_linear_index = builder->CreateAdd(logical_linear_index, addend, "", in Linearize()
Dsort_util.cc98 b->CreateAdd(first_element_in_block, index_within_block); in EmitCompareLoopBody()
177 current_keys_index = b->CreateAdd(current_keys_index, value_one); in EmitTiledCompareLoop()
184 cache_index = b->CreateAdd(cache_index, value_one); in EmitTiledCompareLoop()
/external/llvm-project/llvm/unittests/IR/
DAsmWriterTest.cpp28 std::unique_ptr<BinaryOperator> Add(BinaryOperator::CreateAdd(Undef, Undef)); in TEST()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp73 Instruction *Add = BinaryOperator::CreateAdd(One, ArgX, "addresult", BB); in createAdd1()
124 BinaryOperator::CreateAdd(CallFibX1, CallFibX2, "addresult", RecurseBB); in CreateFibFunction()
/external/llvm-project/llvm/examples/ParallelJIT/
DParallelJIT.cpp71 Instruction *Add = BinaryOperator::CreateAdd(One, ArgX, "addresult", BB); in createAdd1()
122 BinaryOperator::CreateAdd(CallFibX1, CallFibX2, "addresult", RecurseBB); in CreateFibFunction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1101 return BinaryOperator::CreateAdd(XorLHS, in visitAdd()
1127 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
1171 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
1262 auto *New = BinaryOperator::CreateAdd(A, B); in visitAdd()
1271 auto *New = BinaryOperator::CreateAdd(A, B); in visitAdd()
1488 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
1514 return BinaryOperator::CreateAdd(X, AddOne(C)); in visitSub()
1608 return BinaryOperator::CreateAdd(Op0, in visitSub()
1633 return BinaryOperator::CreateAdd(Op0, Builder->CreateMul(A, B)); in visitSub()
1640 return BinaryOperator::CreateAdd(Op0, NewMul); in visitSub()
/external/llvm-project/llvm/examples/HowToUseLLJIT/
DHowToUseLLJIT.cpp51 Value *Add = builder.CreateAdd(One, ArgX); in createDemoModule()

12345678910