Revision 7af471fabebe12034c561ad6071bcab2eaeeaef7 authored by Andrew Adams on 12 October 2023, 18:47:40 UTC, committed by Andrew Adams on 12 October 2023, 18:47:40 UTC
1 parent 6a3fe1e
StrictifyFloat.h
#ifndef HALIDE_STRICTIFY_FLOAT_H
#define HALIDE_STRICTIFY_FLOAT_H
/** \file
* Defines a lowering pass to make all floating-point strict for all top-level Exprs.
*/
#include <map>
#include <string>
namespace Halide {
struct Target;
namespace Internal {
class Function;
/** Propagate strict_float intrinisics such that they immediately wrap
* all floating-point expressions. This makes the IR nodes context
* independent. If the Target::StrictFloat flag is specified in
* target, starts in strict_float mode so all floating-point type
* Exprs in the compilation will be marked with strict_float. Returns
* whether any strict floating-point is used in any function in the
* passed in env.
*/
bool strictify_float(std::map<std::string, Function> &env, const Target &t);
} // namespace Internal
} // namespace Halide
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...