Home
last modified time | relevance | path

Searched refs:CreateSub (Results 1 – 25 of 44) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp62 Value *UDividend = Builder.CreateSub(DvdXor, DividendSign); in generateSignedRemainderCode()
63 Value *UDivisor = Builder.CreateSub(DvsXor, DivisorSign); in generateSignedRemainderCode()
66 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode()
91 Value *Remainder = Builder.CreateSub(Dividend, Product); in generatedUnsignedRemainderCode()
134 Value *U_Dvnd = Builder.CreateSub(Tmp2, Tmp); in generateSignedDivisionCode()
136 Value *U_Dvsr = Builder.CreateSub(Tmp3, Tmp1); in generateSignedDivisionCode()
140 Value *Q = Builder.CreateSub(Tmp4, Q_Sgn); in generateSignedDivisionCode()
257 Value *SR = Builder.CreateSub(Tmp0, Tmp1); in generateUnsignedDivisionCode()
273 Value *Tmp2 = Builder.CreateSub(MSB, SR); in generateUnsignedDivisionCode()
315 Value *Tmp9 = Builder.CreateSub(Tmp4, Tmp7); in generateUnsignedDivisionCode()
[all …]
DLoopUnrollRuntime.cpp194 Builder.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1), in CloneLoopBlocks()
DLoopUtils.cpp640 return B.CreateSub(StartValue, Index); in transform()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp71 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
76 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1020 return Builder->CreateSub(RHS, NewAnd, "sub"); in checkForNegativeOperand()
1025 return Builder->CreateSub(RHS, NewOr, "sub"); in checkForNegativeOperand()
1045 return Builder->CreateSub(RHS, NewOr, "sub"); in checkForNegativeOperand()
1115 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), in visitAdd()
1151 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd()
1157 return BinaryOperator::CreateSub(LHS, V); in visitAdd()
1169 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
1482 Result = Builder->CreateSub(Result, Offset); in OptimizePointerDifference()
1544 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
1629 Builder->CreateSub(Z, Y, Op1->getName())); in visitSub()
DInstCombineMulDivRem.cpp42 A = IC.Builder->CreateSub(A, B); in simplifyValueKnownNonZero()
256 Sub = Builder->CreateSub(X, Y, "suba"); in visitMul()
258 Sub = Builder->CreateSub(Builder->CreateNeg(C1), Y, "subc"); in visitMul()
338 return BinaryOperator::CreateSub(Op0BO, Rem); in visitMul()
339 return BinaryOperator::CreateSub(Rem, Op0BO); in visitMul()
383 Value *V = Builder->CreateSub(Constant::getNullValue(I.getType()), in visitMul()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp99 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
103 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/llvm/bindings/go/llvm/
Dexecutionengine_test.go50 n_minus := builder.CreateSub(n, ConstInt(Int32Type(), 1, false), "subtmp")
/external/llvm/include/llvm/IR/
DNoFolder.h56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
DConstantFolder.h41 Constant *CreateSub(Constant *LHS, Constant *RHS,
DIRBuilder.h785 Value *CreateSub(Value *LHS, Value *RHS, const Twine &Name = "",
789 return Insert(Folder.CreateSub(LC, RC, HasNUW, HasNSW), Name);
794 return CreateSub(LHS, RHS, Name, false, true);
797 return CreateSub(LHS, RHS, Name, true, false);
1666 Value *Difference = CreateSub(LHS_int, RHS_int);
1765 PtrIntValue = CreateSub(PtrIntValue, OffsetValue, "offsetptr");
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp60 Res = Builder.CreateSub(Orig, Val); in LowerAtomicRMWInst()
DStraightLineStrengthReduce.cpp633 Builder.CreateSub(Basis.Ins, BinaryOperator::getNegArgument(Bump)); in rewriteCandidateWithBasis()
DLoopIdiomRecognize.cpp1033 Builder.CreateSub(TcPhi, ConstantInt::get(Ty, 1), in transformLoopToPopcount()
/external/llvm/unittests/IR/
DPatternMatch.cpp272 EXPECT_FALSE(m_NSWSub(m_Value(), m_Value()).match(IRB.CreateSub(L, R))); in TEST_F()
286 EXPECT_FALSE(m_NUWSub(m_Value(), m_Value()).match(IRB.CreateSub(L, R))); in TEST_F()
/external/llvm/lib/Transforms/Instrumentation/
DBoundsChecking.cpp153 Value *ObjSize = Builder->CreateSub(Size, Offset); in instrument()
DSafeStack.cpp615 SP = IRB.CreateSub(SP, Size); in moveDynamicAllocasToUnsafeStack()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp564 ResR = Builder.CreateSub(Op.LHS.first, Op.RHS.first, "sub.r"); in EmitBinSub()
567 ResI = Builder.CreateSub(Op.LHS.second, Op.RHS.second, "sub.i"); in EmitBinSub()
724 ResR = Builder.CreateSub(ResRl, ResRr, "mul.r"); in EmitBinMul()
789 llvm::Value *Tmp9 = Builder.CreateSub(Tmp7, Tmp8); // bc-ad in EmitBinDiv()
DCGExprCXX.cpp935 RemainingSize = Builder.CreateSub(RemainingSize, InitializedSize); in EmitNewArrayInitializer()
978 NumElements = Builder.CreateSub( in EmitNewArrayInitializer()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp173 Value *IndexPtr = LoopBuilder.CreateSub( in convertMemMoveToLoop()
/external/llvm/include/llvm/Analysis/
DTargetFolder.h57 Constant *CreateSub(Constant *LHS, Constant *RHS,
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITTestBase.h184 Value *RecursiveParam = Builder.CreateSub(Param, One);
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp409 SrcM1 = Builder.CreateSub(Src, SrcM1); in LowerIntrinsicCall()
DAtomicExpandPass.cpp353 return Builder.CreateSub(Loaded, Inc, "new"); in performAtomicOp()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp983 Builder.CreateSub(PN, StepV, Twine(IVName) + ".iv.next") : in expandIVInc()
1345 Result = Builder.CreateSub(expandCodeFor(Normalized->getStart(), TruncTy), in expandAddRecExprLiterally()

12