https://github.com/halide/Halide
Raw File
Tip revision: a57aecbbaeb36241b298afb4e479b44b4a589b7d authored by Steven Johnson on 21 October 2021, 20:30:53 UTC
Merge branch 'master' into srj/visit-warnings
Tip revision: a57aecb
UniquifyVariableNames.h
#ifndef HALIDE_UNIQUIFY_VARIABLE_NAMES
#define HALIDE_UNIQUIFY_VARIABLE_NAMES

/** \file
 * Defines the lowering pass that renames all variables to have unique names.
 */

#include "Expr.h"

namespace Halide {
namespace Internal {

/** Modify a statement so that every internally-defined variable name
 * is unique. This lets later passes assume syntactic equivalence is
 * semantic equivalence. */
Stmt uniquify_variable_names(const Stmt &s);

void uniquify_variable_names_test();

}  // namespace Internal
}  // namespace Halide

#endif
back to top