Home
last modified time | relevance | path

Searched refs:sum_ (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/flang/runtime/
H A Dsum.cpp27 void Reinitialize() { sum_ = 0; } in Reinitialize()
29 *p = static_cast<A>(sum_); in GetResult()
32 sum_ += *array_.Element<A>(at); in AccumulateAt()
38 INTERMEDIATE sum_{0}; member in Fortran::runtime::IntegerSumAccumulator
44 void Reinitialize() { sum_ = correction_ = 0; } in Reinitialize()
45 template <typename A> A Result() const { return sum_; } in Result()
52 auto oldSum{sum_}; in Accumulate()
53 sum_ += next; in Accumulate()
54 correction_ = (sum_ - oldSum) - next; // algebraically zero in Accumulate()
63 INTERMEDIATE sum_{0.0}, correction_{0.0}; member in Fortran::runtime::RealSumAccumulator
H A Ddot-product.cpp32 sum_ = sum_ || in AccumulateIndexed()
38 sum_ += std::conj(static_cast<Result>(xElement)) * in AccumulateIndexed()
41 sum_ += static_cast<Result>(xElement) * static_cast<Result>(yElement); in AccumulateIndexed()
45 Result GetResult() const { return sum_; } in GetResult()
49 Result sum_{}; member in Fortran::runtime::Accumulator
H A Dmatmul.cpp41 sum_ = sum_ || in Accumulate()
44 sum_ += static_cast<Result>(*x_.Element<XT>(xAt)) * in Accumulate()
48 Result GetResult() const { return sum_; } in GetResult()
52 Result sum_{}; member in Fortran::runtime::Accumulator
H A Dextrema.cpp632 void Reinitialize() { max_ = sum_ = 0; } in Reinitialize()
635 *p = static_cast<Type>(max_ * std::sqrt(1 + sum_)); in GetResult()
644 sum_ *= tsq; // scale sum to reflect change to the max in Accumulate()
645 sum_ += tsq; // include a term for the previous max in Accumulate()
649 sum_ += t * t; in Accumulate()
660 AccumType sum_{0}; // sum((others(:)/m)**2) member in Fortran::runtime::Norm2Accumulator
/llvm-project-15.0.7/llvm/test/CodeGen/Lanai/
H A Dmem_alu_combiner.ll23 %sum_.0.lcssa = phi i32 [ 0, %entry ], [ %add.lcssa, %for.cond.cleanup.loopexit ]
24 ret i32 %sum_.0.lcssa
28 %sum_.07 = phi i32 [ %add, %for.body ], [ 0, %for.body.preheader ]
31 %add = add nsw i32 %0, %sum_.07
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/dex/tools/clang_opt_bisect/
H A DTool.py314 for (_, vals, sum_, min_, max_, interesting, name,
316 writer.writerow([name, kind, sum_, min_, max_, interesting] +
/llvm-project-15.0.7/polly/lib/External/isl/doc/
H A Dimplementation.tex220 such that $a_j > 0$. Since $c_j = (n + r - \sum_{i\ne j} a_i \, c_i)/a_j$,
411 the equality is of the form $b + \sum_{i \le j} a_i \, x_i = 0$ with
801 That is, $r = b(\vec p) + c_j - f$ with $f = -\sum_{i\ne j} a_i c_i \ge 0$.