Home
last modified time | relevance | path

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

123456

/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.cpp324 Builder.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1), in CloneLoopBlocks()
654 Value *TestVal = B2.CreateSub(TripCount, ModVal, "unroll_iter"); in UnrollRuntimeLoopRemainder()
660 B2.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1), in UnrollRuntimeLoopRemainder()
/external/swiftshader/third_party/llvm-7.0/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.cpp345 Builder.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1), in CloneLoopBlocks()
860 Value *TestVal = B2.CreateSub(TripCount, ModVal, "unroll_iter"); in UnrollRuntimeLoopRemainder()
866 B2.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1), in UnrollRuntimeLoopRemainder()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Fibonacci/
Dfibonacci.cpp83 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
88 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/swiftshader/third_party/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/examples/Fibonacci/
Dfibonacci.cpp84 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
89 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DSSAUpdaterBulk.cpp58 Value *SubOp1 = B.CreateSub(FirstArg, ConstantInt::get(I32Ty, 2)); in TEST()
63 Value *SubOp2 = B.CreateSub(FirstArg, ConstantInt::get(I32Ty, 4)); in TEST()
70 auto *I4 = cast<Instruction>(B.CreateSub(SubOp1, SubOp2)); in TEST()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp166 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd()
172 return BinaryOperator::CreateSub(LHS, V); in visitAdd()
233 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
517 Result = Builder->CreateSub(Result, CstOffset); in OptimizePointerDifference()
589 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
612 Builder->CreateSub(Z, Y, Op1->getName())); in visitSub()
DInstCombineMulDivRem.cpp41 A = IC.Builder->CreateSub(A, B); in simplifyValueKnownNonZero()
151 Sub = Builder->CreateSub(X, Y, "suba"); in visitMul()
153 Sub = Builder->CreateSub(Builder->CreateNeg(C1), Y, "subc"); in visitMul()
213 return BinaryOperator::CreateSub(Op0BO, Rem); in visitMul()
214 return BinaryOperator::CreateSub(Rem, Op0BO); in visitMul()
246 Value *V = Builder->CreateSub(Constant::getNullValue(I.getType()), in visitMul()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp890 return Builder.CreateSub(RHS, NewAnd, "sub"); in checkForNegativeOperand()
895 return Builder.CreateSub(RHS, NewOr, "sub"); in checkForNegativeOperand()
915 return Builder.CreateSub(RHS, NewOr, "sub"); in checkForNegativeOperand()
943 return BinaryOperator::CreateSub(SubOne(Op1C), X); in foldAddWithConstant()
1184 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), in visitAdd()
1213 return BinaryOperator::CreateSub(RHS, A); in visitAdd()
1218 return BinaryOperator::CreateSub(LHS, B); in visitAdd()
1226 return BinaryOperator::CreateSub(A, B); in visitAdd()
1564 Result = Builder.CreateSub(Result, Offset); in OptimizePointerDifference()
1615 return BinaryOperator::CreateSub(Y, X); in visitSub()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1000 return Builder->CreateSub(RHS, NewAnd, "sub"); in checkForNegativeOperand()
1005 return Builder->CreateSub(RHS, NewOr, "sub"); in checkForNegativeOperand()
1025 return Builder->CreateSub(RHS, NewOr, "sub"); in checkForNegativeOperand()
1095 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), in visitAdd()
1131 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd()
1137 return BinaryOperator::CreateSub(LHS, V); in visitAdd()
1149 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
1462 Result = Builder->CreateSub(Result, Offset); in OptimizePointerDifference()
1524 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
1609 Builder->CreateSub(Z, Y, Op1->getName())); in visitSub()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp595 Res = Builder.CreateSub(Num, Rem); in expandDivRem24()
692 Value *RCP_S_E = Builder.CreateSub(RCP, E); in expandDivRem32()
704 Value *Remainder = Builder.CreateSub(Num, Num_S_Remainder); in expandDivRem32()
725 Value *Quotient_S_One = Builder.CreateSub(Quotient, One); in expandDivRem32()
734 Value *Remainder_S_Den = Builder.CreateSub(Remainder, Den); in expandDivRem32()
748 Res = Builder.CreateSub(Res, Sign); in expandDivRem32()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/ParallelJIT/
DParallelJIT.cpp113 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
117 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/swiftshader/third_party/LLVM/examples/ParallelJIT/
DParallelJIT.cpp98 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
102 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp115 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction()
119 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DNoFolder.h56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
/external/swiftshader/third_party/LLVM/lib/MC/
DMCAsmInfo.cpp146 return MCBinaryExpr::CreateSub(Res, PC, Context); in getExprForFDESymbol()
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/go/llvm/
Dexecutionengine_test.go50 n_minus := builder.CreateSub(n, ConstInt(Int32Type(), 1, false), "subtmp")
/external/llvm/bindings/go/llvm/
Dexecutionengine_test.go50 n_minus := builder.CreateSub(n, ConstInt(Int32Type(), 1, false), "subtmp")
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DNoFolder.h62 Instruction *CreateSub(Constant *LHS, Constant *RHS,
64 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
/external/llvm/include/llvm/IR/
DNoFolder.h56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DExpandMemCmp.cpp222 Value *Diff = Builder.CreateSub(LoadSrc1, LoadSrc2); in emitLoadCompareByteBlock()
548 return Builder.CreateSub(LoadSrc1, LoadSrc2); in getMemCmpOneBlock()
561 return Builder.CreateSub(ZextUGT, ZextULT); in getMemCmpOneBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DDivRemPairs.cpp111 Instruction *Sub = BinaryOperator::CreateSub(X, Mul); in optimizeDivRem()
/external/clang/lib/CodeGen/
DCGOpenMPRuntimeNVPTX.cpp74 llvm::Value *Mask = Bld.CreateSub(getNVPTXWarpSize(CGF), Bld.getInt32(1)); in getMasterThreadID()
76 return Bld.CreateAnd(Bld.CreateSub(NumThreads, Bld.getInt32(1)), in getMasterThreadID()

123456