Skip to content

Commit b6753de

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in Barvinok.cpp (NFC)
1 parent 4c0c295 commit b6753de

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mlir/lib/Analysis/Presburger/Barvinok.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ QuasiPolynomial mlir::presburger::detail::getCoefficientInRationalFunction(
554554
/// t^num / \prod_j (1 - t^dens[j]).
555555
/// v represents the affine functions whose floors are multiplied by the
556556
/// generators, and ds represents the list of generators.
557-
std::pair<QuasiPolynomial, std::vector<Fraction>>
557+
static std::pair<QuasiPolynomial, std::vector<Fraction>>
558558
substituteMuInTerm(unsigned numParams, const ParamPoint &v,
559559
const std::vector<Point> &ds, const Point &mu) {
560560
unsigned numDims = mu.size();
@@ -606,8 +606,8 @@ substituteMuInTerm(unsigned numParams, const ParamPoint &v,
606606
/// Here, sign = ± 1,
607607
/// num is a QuasiPolynomial, and
608608
/// each dens[j] is a Fraction.
609-
void normalizeDenominatorExponents(int &sign, QuasiPolynomial &num,
610-
std::vector<Fraction> &dens) {
609+
static void normalizeDenominatorExponents(int &sign, QuasiPolynomial &num,
610+
std::vector<Fraction> &dens) {
611611
// We track the number of exponents that are negative in the
612612
// denominator, and convert them to their absolute values.
613613
unsigned numNegExps = 0;
@@ -634,8 +634,8 @@ void normalizeDenominatorExponents(int &sign, QuasiPolynomial &num,
634634

635635
/// Compute the binomial coefficients nCi for 0 ≤ i ≤ r,
636636
/// where n is a QuasiPolynomial.
637-
std::vector<QuasiPolynomial> getBinomialCoefficients(const QuasiPolynomial &n,
638-
unsigned r) {
637+
static std::vector<QuasiPolynomial>
638+
getBinomialCoefficients(const QuasiPolynomial &n, unsigned r) {
639639
unsigned numParams = n.getNumInputs();
640640
std::vector<QuasiPolynomial> coefficients;
641641
coefficients.reserve(r + 1);
@@ -651,8 +651,8 @@ std::vector<QuasiPolynomial> getBinomialCoefficients(const QuasiPolynomial &n,
651651

652652
/// Compute the binomial coefficients nCi for 0 ≤ i ≤ r,
653653
/// where n is a QuasiPolynomial.
654-
std::vector<Fraction> getBinomialCoefficients(const Fraction &n,
655-
const Fraction &r) {
654+
static std::vector<Fraction> getBinomialCoefficients(const Fraction &n,
655+
const Fraction &r) {
656656
std::vector<Fraction> coefficients;
657657
coefficients.reserve((int64_t)floor(r));
658658
coefficients.emplace_back(1);

0 commit comments

Comments
 (0)