1 #ifndef HALIDE_DEFINITION_H 2 #define HALIDE_DEFINITION_H 17 struct DefinitionContents;
18 struct FunctionContents;
19 class ReductionDomain;
26 struct Specialization;
62 return contents.
same_as(other.contents);
86 const std::vector<Expr> &
args()
const;
87 std::vector<Expr> &
args();
97 const std::vector<Expr> &
values()
const;
98 std::vector<Expr> &
values();
void mutate(IRMutator *)
Pass an IRMutator through to all Exprs referenced in the definition.
A base class for algorithms that need to recursively walk over the IR.
A schedule for a single stage of a Halide pipeline.
A fragment of Halide syntax.
bool same_as(const Definition &other) const
Equality of identity.
const Expr & predicate() const
Get the predicate on the definition.
Definition()
Construct an undefined Definition object.
const std::vector< Expr > & args() const
Get the default (no-specialization) arguments (left-hand-side) of the definition. ...
This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
void accept(IRVisitor *) const
Pass an IRVisitor through to all Exprs referenced in the definition.
bool is_init() const
Is this an init definition; otherwise it's an update definition.
const std::vector< Specialization > & specializations() const
You may create several specialized versions of a func with different stage-specific schedules...
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt) ...
std::vector< Expr > split_predicate() const
Split predicate into vector of ANDs.
Not visible externally, similar to 'static' linkage in C.
Support classes for reference-counting via intrusive shared pointers.
Defines the internal representation of the schedule for a function.
bool defined() const
Definition objects are nullable.
const StageSchedule & schedule() const
Get the default (no-specialization) stage-specific schedule associated with this definition.
std::string source_location() const
Attempt to get the source file and line where this definition was made using DWARF introspection...
std::string failure_message
HALIDE_ALWAYS_INLINE bool same_as(const IntrusivePtr &other) const
A reference-counted handle on a reduction domain, which is just a vector of ReductionVariable.
A Function definition which can either represent a init or an update definition.
const std::vector< Expr > & values() const
Get the default (no-specialization) right-hand-side of the definition.
Definition get_copy() const
Return a copy of this Definition.
A base class for passes over the IR which modify it (e.g.
const Specialization & add_specialization(Expr condition)
You may create several specialized versions of a func with different stage-specific schedules...