https://github.com/halide/Halide
Raw File
Tip revision: f80fb1b060c8fc96ef6e748f59c6b532dc534ad6 authored by Steven Johnson on 03 February 2022, 00:41:23 UTC
Gen2 C++ Generator Experiment, KEEP
Tip revision: f80fb1b
TrimNoOps.h
#ifndef TRIM_NO_OPS_H
#define TRIM_NO_OPS_H

/** \file
 * Defines a lowering pass that truncates loops to the region over
 * which they actually do something.
 */

#include "Expr.h"

namespace Halide {
namespace Internal {

/** Truncate loop bounds to the region over which they actually do
 * something. For examples see test/correctness/trim_no_ops.cpp */
Stmt trim_no_ops(Stmt s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top