Home
last modified time | relevance | path

Searched refs:Mul (Results 1 - 25 of 223) sorted by relevance

123456789

/third_party/skia/src/core/
H A DSkMalloc.cpp9 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw()
13 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw()
17 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw()
21 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
H A DSkMath.cpp50 size_t SkSafeMath::Mul(size_t x, size_t y) { in Mul() function in SkSafeMath
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp99 /// Create MulCandidates, each rooted at a Mul instruction, that is a part
105 if (I->getOpcode() == Instruction::Mul) in InsertMuls()
108 if (I->getOpcode() == Instruction::Mul) in InsertMuls()
123 if (auto *Mul = GetMulOperand(Add->getOperand(0))) in InsertMuls()
124 InsertMul(Mul); in InsertMuls()
125 if (auto *Mul = GetMulOperand(Add->getOperand(1))) in InsertMuls()
126 InsertMul(Mul); in InsertMuls()
188 for (auto &Mul : Muls) in dump()
189 LLVM_DEBUG(dbgs() << *Mul->Root << "\n" in dump()
190 << " " << *Mul in dump()
677 Instruction *Mul = cast<Instruction>(MulCand->Root); InsertParallelMACs() local
[all...]
/third_party/rust/crates/nom/tests/
H A Darithmetic_ast.rs20 Mul(Box<Expr>, Box<Expr>),
29 Mul,
40 Mul(ref left, ref right) => write!(format, "{} * {}", left, right),
54 Mul(ref left, ref right) => write!(format, "({:?} * {:?})", left, right),
85 Oper::Mul => Expr::Mul(Box::new(acc), Box::new(expr)), in fold_exprs()
96 Ok((i, (Oper::Mul, mul))) in term()
/third_party/skia/third_party/externals/tint/src/transform/
H A Dmultiplanar_external_texture.cc296 b.Add(b.Mul(1.164f, "y"), in createTexFnExtStatementList()
297 b.Mul(b.MemberAccessor("params", "vr"), "v")))), in createTexFnExtStatementList()
301 b.Sub(b.Sub(b.Mul(1.164f, "y"), in createTexFnExtStatementList()
302 b.Mul(b.MemberAccessor("params", "ug"), "u")), in createTexFnExtStatementList()
303 b.Mul(b.MemberAccessor("params", "vg"), "v")))), in createTexFnExtStatementList()
306 b.Add(b.Mul(1.164f, "y"), in createTexFnExtStatementList()
307 b.Mul(b.MemberAccessor("params", "ub"), "u")))), in createTexFnExtStatementList()
H A Ddecompose_memory_access.cc383 const Offset* Mul(LHS&& lhs_, RHS&& rhs_) { in Mul() function
497 b.Add(b.Expr("offset"), b.Mul(i, arr_ty->Stride())); in LoadFunc()
599 b.Add(b.Expr("offset"), b.Mul(i, arr_ty->Stride())); in StoreFunc()
831 state.Mul(vec_ty->type()->Size(), swizzle->Indices()[0]);
858 auto* offset = state.Mul(arr->Stride(), accessor->index);
867 auto* offset = state.Mul(vec_ty->type()->Size(), accessor->index);
876 auto* offset = state.Mul(mat_ty->ColumnStride(), accessor->index);
H A Dzero_init_workgroup_memory.cc387 return size ? b.Mul(size(), e) : e; in CalculateWorkgroupSize()
397 ? b.Mul(expr_size(), static_cast<int32_t>(const_size)) in CalculateWorkgroupSize()
398 : b.Mul(expr_size(), const_size); in CalculateWorkgroupSize()
/third_party/skia/src/gpu/
H A DGrBufferAllocPool.cpp436 void* ptr = INHERITED::makeSpace(SkSafeMath::Mul(vertexSize, vertexCount), in makeSpace()
458 void* ptr = INHERITED::makeSpaceAtLeast(SkSafeMath::Mul(vertexSize, minVertexCount), in makeSpaceAtLeast()
459 SkSafeMath::Mul(vertexSize, fallbackVertexCount), in makeSpaceAtLeast()
487 void* ptr = INHERITED::makeSpace(SkSafeMath::Mul(indexCount, sizeof(uint16_t)), in makeSpace()
508 void* ptr = INHERITED::makeSpaceAtLeast(SkSafeMath::Mul(minIndexCount, sizeof(uint16_t)), in makeSpaceAtLeast()
509 SkSafeMath::Mul(fallbackIndexCount, sizeof(uint16_t)), in makeSpaceAtLeast()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DShaderStorageBlockOutputHLSL.cpp292 TIntermTyped *Mul(TIntermTyped *left, TIntermTyped *right) in Mul() function
611 right = Mul(CreateUIntNode(arraySizes[i]), right); in writeEOpIndexDirectOrIndirectOutput()
613 right = Mul(CreateUIntNode(blockMemberInfo->arrayStride), right); in writeEOpIndexDirectOrIndirectOutput()
619 right = Mul(CreateUIntNode(BlockLayoutEncoder::kBytesPerComponent), right); in writeEOpIndexDirectOrIndirectOutput()
623 right = Mul(CreateUIntNode(blockMemberInfo->matrixStride), right); in writeEOpIndexDirectOrIndirectOutput()
630 right = Mul(CreateUIntNode(blockMemberInfo->matrixStride), right); in writeEOpIndexDirectOrIndirectOutput()
634 right = Mul(CreateUIntNode(BlockLayoutEncoder::kBytesPerComponent), right); in writeEOpIndexDirectOrIndirectOutput()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp106 Mul, // (B + i) * S enumerator
192 // Allocate candidates and find bases for Mul instructions.
317 if (C.CandidateKind == Candidate::Mul) { in isSimplestForm()
378 case Instruction::Mul: in allocateCandidatesAndFindBasis()
439 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
445 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
449 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(LHS), Zero, RHS, in allocateCandidatesAndFindBasisForMul()
643 case Candidate::Mul: { in rewriteCandidateWithBasis()
H A DReassociate.cpp341 assert((Opcode == Instruction::Mul || Opcode == Instruction::FMul) && in IncorporateWeight()
583 if ((Opcode == Instruction::Mul && match(Tmp, m_Neg(m_Value()))) || in LinearizeExprTree()
980 BinaryOperator *Mul = in ConvertShiftToMul() local
983 Mul->takeName(Shl); in ConvertShiftToMul()
986 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
987 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
995 Mul->setHasNoSignedWrap(true); in ConvertShiftToMul()
996 Mul->setHasNoUnsignedWrap(NUW); in ConvertShiftToMul()
997 return Mul; in ConvertShiftToMul()
1043 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instructio in RemoveFactorFromExpression()
[all...]
H A DDivRemPairs.cpp266 Instruction *Mul = BinaryOperator::CreateMul(DivInst, Y); in optimizeDivRem() local
267 Instruction *Sub = BinaryOperator::CreateSub(X, Mul); in optimizeDivRem()
301 Mul->insertAfter(RemInst); in optimizeDivRem()
302 Sub->insertAfter(Mul); in optimizeDivRem()
H A DNaryReassociate.cpp221 case Instruction::Mul: in isPotentiallyNaryReassociable()
289 case Instruction::Mul: in tryReassociate()
487 case Instruction::Mul: in tryReassociatedBinaryOp()
502 case Instruction::Mul: in matchTernaryOp()
516 case Instruction::Mul: in getBinarySCEV()
H A DLowerMatrixIntrinsics.cpp291 case Instruction::Mul: in isUniformShape()
673 Value *Mul = Builder.CreateFMul(A, B); in createMulAdd() local
674 return Builder.CreateFAdd(Sum, Mul); in createMulAdd()
677 Value *Mul = Builder.CreateMul(A, B); in createMulAdd() local
678 return Builder.CreateAdd(Sum, Mul); in createMulAdd()
824 case Instruction::Mul: in VisitBinaryOperator()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp204 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0)); in visitMul() local
206 if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap()) in visitMul()
208 if (I.hasNoSignedWrap() && Mul->hasNoSignedWrap() && in visitMul()
269 Value *Mul = Builder.CreateMul(C1, Op1); in visitMul() local
272 if (!match(Mul, m_Mul(m_Value(), m_Value()))) in visitMul()
273 return BinaryOperator::CreateAdd(Builder.CreateMul(X, Op1), Mul); in visitMul()
724 auto *Mul = BinaryOperator::Create(Instruction::Mul, X, in commonIDivTransforms() local
727 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
728 Mul in commonIDivTransforms()
750 auto *Mul = BinaryOperator::Create(Instruction::Mul, X, commonIDivTransforms() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp52 case Instruction::Mul: in getRelevantOperands()
114 case Instruction::Mul: in buildTruncExpressionDag()
345 case Instruction::Mul: in ReduceExpressionDag()
/third_party/rust/crates/syn/src/
H A Dop.rs11 Mul(Token![*]),
128 input.parse().map(BinOp::Mul) in parse()
178 BinOp::Mul(t) => t.to_tokens(tokens), in to_tokens()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DScalarEvolution.cpp409 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(this); in isNonConstantNegative() local
410 if (!Mul) return false; in isNonConstantNegative()
413 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
2296 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(Ops[i]); in CollectAddOperandsWithScales() local
2297 if (Mul && isa<SCEVConstant>(Mul->getOperand(0))) { in CollectAddOperandsWithScales()
2299 Scale * cast<SCEVConstant>(Mul->getOperand(0))->getAPInt(); in CollectAddOperandsWithScales()
2300 if (Mul->getNumOperands() == 2 && isa<SCEVAddExpr>(Mul->getOperand(1))) { in CollectAddOperandsWithScales()
2302 const SCEVAddExpr *Add = cast<SCEVAddExpr>(Mul in CollectAddOperandsWithScales()
2471 const SCEV *Mul = getMulExpr(Scale, Ops[i], SCEV::FlagAnyWrap, Depth + 1); getAddExpr() variable
2620 const SCEVMulExpr *Mul = cast<SCEVMulExpr>(Ops[Idx]); getAddExpr() variable
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
H A DMips16ISelDAGToDAG.cpp48 SDNode *Mul = CurDAG->getMachineNode(Opc, DL, MVT::Glue, N->getOperand(0), in selectMULT() local
50 SDValue InFlag = SDValue(Mul, 0); in selectMULT()
194 /// Mul with two results in trySelect()
/third_party/vixl/examples/aarch64/
H A Dfactorial.cc47 __ Mul(x0, x0, x1); in GenerateFactorial()
H A Dfactorial-rec.cc50 __ Mul(x0, x0, x1); in GenerateFactorialRec()
/third_party/node/deps/v8/src/wasm/
H A Dwasm-opcodes-inl.h98 CASE_ALL_OP(Mul, "mul") in OpcodeName()
252 CASE_I16x8_OP(Mul, "mul") in OpcodeName()
253 CASE_I32x4_OP(Mul, "mul") in OpcodeName()
254 CASE_I64x2_OP(Mul, "mul") in OpcodeName()
255 CASE_SIMDF_OP(Mul, "mul") in OpcodeName()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp56 case Instruction::Mul: in getIntImmCostInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
H A DOperator.h64 /// Mul, and Shl. It does not include SDiv, despite that operator having the
103 I->getOpcode() == Instruction::Mul || in classof()
109 CE->getOpcode() == Instruction::Mul || in classof()
433 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
/third_party/node/deps/v8/tools/
H A Dbigint-tester.py205 class Mul(BinaryOp): class
278 "mul": Mul,

Completed in 24 milliseconds

123456789