https://github.com/halide/Halide
Raw File
Tip revision: d1d7b245bb17eb9cad9521f00d722312a451b0f4 authored by Steven Johnson on 03 February 2022, 00:42:24 UTC
cpp-generator-v2-experiment-KEEP
Tip revision: d1d7b24
SimplifySpecializations.h
#ifndef SIMPLIFY_SPECIALIZATIONS_H
#define SIMPLIFY_SPECIALIZATIONS_H

/** \file
 *
 * Defines pass that try to simplify the RHS/LHS of a function's definition
 * based on its specializations.
 */

#include <map>
#include <string>

#include "Expr.h"

namespace Halide {
namespace Internal {

class Function;

/** Try to simplify the RHS/LHS of a function's definition based on its
 * specializations. */
void simplify_specializations(std::map<std::string, Function> &env);

}  // namespace Internal
}  // namespace Halide

#endif
back to top