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<
SeqStmtNode>())
return op->seq.empty();
Evaluates an expression. This is mostly used for putting a Call node into Stmt.
Definition stmt.h:352
Constant integer literals in the program.
Definition expr.h:135
The container of seq statement. Represent a sequence of statements.
Definition stmt.h:75
Container of all statements.
Definition stmt.h:62
Statements shared across IR dialects.
constexpr const char * kDisableUnroll
Definition stmt.h:44
constexpr const char * kPragmaUnroll
Definition stmt.h:42
constexpr const char * kUnrollExplicit
For annotation: expand unrolled bodies instead of preserving unrolled loops.
Definition stmt.h:57
constexpr const char * kAutoUnrollMaxStep
For annotation: maximum work for automatic unrolling.
Definition stmt.h:51
constexpr const char * kVolatile
Annotation key on AllocTensor marking the allocation as volatile.
Definition stmt.h:59
constexpr const char * kTensorDataAlignment
Mark tensor initial addr alignment in bytes.
Definition stmt.h:61
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 attr.h:23
TIRx tensor expressions and construction helpers.