tvm_tirx.script.ir_builder.frame

Contents

tvm_tirx.script.ir_builder.frame#

Context-managed frames for constructing IR with the shared builder stack.

Classes#

StmtFrame(loc, stmts)

A frame containing a sequence of core IR statements.

ForFrame(loc, stmts, vars, doms)

AssertFrame(loc, stmts, condition, ...)

WhileFrame(loc, stmts, condition)

IfFrame(loc, stmts, condition, then_stmts, ...)

ThenFrame(loc, stmts)

ElseFrame(loc, stmts)

RegionFrame(loc, stmts, op, args, ...)

A result-free region whose body parameters are lexical bindings.

Alias

Canonical API

IRModuleFrame

tvm_tirx.script.ir_builder.IRModuleFrame