Revision 6f5dc6bec58bf0a6305113166bfdcfeb80af3c5f authored by Steven Johnson on 07 December 2020, 19:27:17 UTC, committed by Steven Johnson on 07 December 2020, 19:27:17 UTC
Currently, it can contain garbage after parsing
1 parent 4f554a7
Monotonic.h
#ifndef HALIDE_MONOTONIC_H
#define HALIDE_MONOTONIC_H
/** \file
*
* Methods for computing whether expressions are monotonic
*/
#include <iostream>
#include <string>
#include "Expr.h"
#include "Scope.h"
namespace Halide {
namespace Internal {
/**
* Detect whether an expression is monotonic increasing in a variable,
* decreasing, or unknown.
*/
enum class Monotonic { Constant,
Increasing,
Decreasing,
Unknown };
Monotonic is_monotonic(const Expr &e, const std::string &var,
const Scope<Monotonic> &scope = Scope<Monotonic>::empty_scope());
/** Emit the monotonic class in human-readable form for debugging. */
std::ostream &operator<<(std::ostream &stream, const Monotonic &m);
void is_monotonic_test();
} // namespace Internal
} // namespace Halide
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...