22#ifndef TVM_TIRX_STMT_H_
23#define TVM_TIRX_STMT_H_
34 if (!stmt.defined())
return true;
36 if (
const auto* op = stmt.as<
SeqStmtObj>())
return op->seq.empty();
44inline constexpr ffi::reflection::AttrKey<bool>
kDisableUnroll{
"tirx.disable_unroll"};
51inline constexpr ffi::reflection::AttrKey<int64_t>
kAutoUnrollMaxStep{
"tirx.auto_unroll_max_step"};
57inline constexpr ffi::reflection::AttrKey<bool>
kUnrollExplicit{
"tirx.unroll_explicit"};
59inline constexpr ffi::reflection::AttrKey<bool>
kVolatile{
"tirx.volatile"};
Statements shared across IR dialects.
TIRx tensor expressions and construction helpers.
Evaluates an expression. This is mostly used for putting a Call node into Stmt.
Definition stmt.h:366
Constant integer literals in the program.
Definition expr.h:314
The container of seq statement. Represent a sequence of statements.
Definition stmt.h:74
Container of all statements.
Definition stmt.h:61
constexpr ffi::reflection::AttrKey< bool > kVolatile
Annotation key on AllocTensor marking the allocation as volatile.
Definition stmt.h:59
constexpr const char * kPragmaUnroll
Definition stmt.h:42
constexpr ffi::reflection::AttrKey< int64_t > kAutoUnrollMaxStep
For annotation: maximum work for automatic unrolling.
Definition stmt.h:51
constexpr ffi::reflection::AttrKey< bool > kDisableUnroll
Definition stmt.h:44
constexpr ffi::reflection::AttrKey< bool > kUnrollExplicit
For annotation: expand unrolled bodies instead of preserving unrolled loops.
Definition stmt.h:57
bool IsNoOp(const Stmt &stmt)
Whether stmt is undefined, an integer Evaluate, or an empty sequence.
Definition stmt.h:33
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
Enum identities for backend-defined thread hierarchies.