Home
last modified time | relevance | path

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

12345

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp162 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
224 Value *NewAdd = Builder->CreateAdd(X, Z, LHS->getName()); in visitAdd()
251 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
427 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), in EmitGEPOffset()
437 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs"); in EmitGEPOffset()
450 Result = Builder->CreateAdd(Op, Result, GEP->getName()+".offs"); in EmitGEPOffset()
542 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
559 return BinaryOperator::CreateAdd(X, AddOne(C)); in visitSub()
611 return BinaryOperator::CreateAdd(Op0, in visitSub()
649 return BinaryOperator::CreateAdd(Op0, Builder->CreateMul(A, B)); in visitSub()
[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/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/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_array.cc180 source_index[i] = builder->CreateAdd( in SourceIndexOfSlice()
185 source_index[i] = builder->CreateAdd( in SourceIndexOfSlice()
216 logical_linear_index = builder->CreateAdd(logical_linear_index, addend, "", in Linearize()
312 new_index[which_dimension] = ir_builder->CreateAdd( in BumpIndex()
/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.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/swiftshader/third_party/LLVM/lib/Target/X86/
DX86TargetObjectFile.cpp34 return MCBinaryExpr::CreateAdd(Res, Four, getContext()); in getExprForDwarfGlobalReference()
/external/swiftshader/third_party/LLVM/examples/ParallelJIT/
DParallelJIT.cpp56 Instruction *Add = BinaryOperator::CreateAdd(One, ArgX, "addresult", BB); in createAdd1()
107 BinaryOperator::CreateAdd(CallFibX1, CallFibX2, "addresult", RecurseBB); in CreateFibFunction()
/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/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp965 IRB.CreateAdd(ShadowLong, in getShadowPtr()
979 IRB.CreateAdd(OriginLong, in getOriginPtr()
996 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForArgument()
1006 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getOriginPtrForArgument()
2958 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForVAArgument()
2999 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, AMD64FpEndOffset), in finalizeInstrumentation()
3014 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
3025 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
3085 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForVAArgument()
3114 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), in finalizeInstrumentation()
[all …]
DAddressSanitizer.cpp694 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
891 return IRB.CreateAdd(Shadow, ConstantInt::get(IntptrTy, Mapping.Offset)); in memToShadow()
1127 LastAccessedByte = IRB.CreateAdd( in createSlowPathCmp()
1213 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1942 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in poisonRedZones()
1973 Value *p = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in SetShadowToStackAfterReturnInlined()
2150 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in poisonStack()
2163 IRB.CreateAdd(LocalStackBase, in poisonStack()
2173 IRB.CreateAdd(LocalStackBase, in poisonStack()
2220 Value *SavedFlagPtrPtr = IRBPoison.CreateAdd( in poisonStack()
[all …]
DSanitizerCoverage.cpp541 Value *GuardP = IRB.CreateAdd( in InjectCoverageAtBlock()
571 Value *P = IRB.CreateAdd( in InjectCoverageAtBlock()
576 Value *Inc = IRB.CreateAdd(LI, ConstantInt::get(IRB.getInt8Ty(), 1)); in InjectCoverageAtBlock()
/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
DLocal.cpp52 builder.CreateAdd(phi, phi); in TEST()
/external/swiftshader/third_party/LLVM/examples/HowToUseJIT/
DHowToUseJIT.cpp86 Value *Add = builder.CreateAdd(One, ArgX); in main()
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp95 Value *Add = builder.CreateAdd(One, ArgX); in main()
/external/swiftshader/third_party/LLVM/lib/Target/X86/MCTargetDesc/
DX86MCAsmInfo.cpp119 return MCBinaryExpr::CreateAdd(Res, Four, Context); in getExprForPersonalitySymbol()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dparallel_loop_emitter.cc84 llvm::Value* linear_index = ir_builder_->CreateAdd( in EmitIndexAndSetExitBasicBlock()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp94 Value *Sum = BinaryOperator::CreateAdd(CallFibX1, CallFibX2, in CreateFibFunction()
/external/swiftshader/third_party/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);
/external/llvm/include/llvm/IR/
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/
DMSP430MCInstLower.cpp103 Expr = MCBinaryExpr::CreateAdd(Expr, in LowerSymbolOperand()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMMCInstLower.cpp59 Expr = MCBinaryExpr::CreateAdd(Expr, in GetSymbolRef()

12345