https://github.com/halide/Halide
Revision cd95b27d6b969a1da8337ba820ad8d0c50884bff authored by Steven Johnson on 27 July 2018, 16:56:13 UTC, committed by GitHub on 27 July 2018, 16:56:13 UTC
Rework runtime to allow more than 64 Target::Features (Issue #2911)
2 parent s d91647c + d734dc0
Raw File
Tip revision: cd95b27d6b969a1da8337ba820ad8d0c50884bff authored by Steven Johnson on 27 July 2018, 16:56:13 UTC
Merge pull request #3116 from halide/srj-features
Tip revision: cd95b27
PartitionLoops.h
#ifndef PARTITION_LOOPS_H
#define PARTITION_LOOPS_H

/** \file
 * Defines a lowering pass that partitions loop bodies into three
 * to handle boundary conditions: A prologue, a simplified
 * steady-stage, and an epilogue.
 */

#include "IR.h"

namespace Halide {
namespace Internal {

/** Return true if an expression uses a likely tag. */
bool has_likely_tag(Expr e);

/** Partitions loop bodies into a prologue, a steady state, and an
 * epilogue. Finds the steady state by hunting for use of clamped
 * ramps, or the 'likely' intrinsic. */
Stmt partition_loops(Stmt s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top