Skip to main content

Module stmt

Module stmt 

Source
Expand description

Statements. Every statement is a Stmt; the body of a loop, conditional or region is a SeqStmt, so a single statement given as a body is wrapped in one, and a Bind binds a variable for the statements after it in the enclosing body.

Structsยง

AssertStmt
The check that the boolean condition holds, raising an error of kind error_kind, such as "ValueError", whose message concatenates message_parts when it does not.
AssertStmtObj
The object behind AssertStmt.
Bind
The binding of the variable var to value, visible to the statements after it in the enclosing body. It has no body of its own.
BindObj
The object behind Bind.
Break
The exit from the innermost enclosing loop.
BreakObj
The object behind Break.
Continue
The jump to the next iteration of the innermost enclosing loop.
ContinueObj
The object behind Continue.
Evaluate
The evaluation of value for its side effects, its result discarded. Evaluate of the constant 0 is a no-op.
EvaluateObj
The object behind Evaluate.
For
The loop of var from begin while below end, incremented by step, running body.
ForKind
ForObj
The object behind For.
If
The conditional running then_case when condition holds, and else_case, if any, otherwise.
IfObj
The object behind If.
RegionStmt
A statement with one body, whose meaning the region operator op defines.
RegionStmtObj
The object behind RegionStmt.
Return
The exit from the enclosing function, returning value.
ReturnObj
The object behind Return.
SeqStmt
The statements seq, run in order: the body of a loop, conditional or region.
SeqStmtObj
The object behind SeqStmt.
Stmt
The base of every statement: its source location loc.
StmtObj
The object behind Stmt.
TensorStore
The store of the primitive value at indices of dest: a store into a tensor, or into any expression whose type supports it.
TensorStoreObj
The object behind TensorStore.
While
The loop running body while the scalar condition holds.
WhileObj
The object behind While.