Revision a3cac6513d39c01592fa92e77aee1f5033e0209a authored by Dan Palermo on 14 June 2021, 18:29:20 UTC, committed by Dan Palermo on 14 June 2021, 18:29:20 UTC
1 parent 08cc265
LICM.h
#ifndef HALIDE_LICM_H
#define HALIDE_LICM_H
/** \file
* Methods for lifting loop invariants out of inner loops.
*/
#include "Expr.h"
namespace Halide {
namespace Internal {
/** Hoist loop-invariants out of inner loops. This is especially
* important in cases where LLVM would not do it for us
* automatically. For example, it hoists loop invariants out of cuda
* kernels. */
Stmt hoist_loop_invariant_values(Stmt);
/** Just hoist loop-invariant if statements as far up as
* possible. Does not lift other values. It's useful to run this
* earlier in lowering to simplify the IR. */
Stmt hoist_loop_invariant_if_statements(Stmt);
} // namespace Internal
} // namespace Halide
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...