24#ifndef TVM_TIR_ANALYSIS_H_
25#define TVM_TIR_ANALYSIS_H_
Managed reference to GlobalVarNode.
Definition expr.h:853
Managed reference class to IRModuleNode.
Definition module.h:255
Typed reference/view over any Expr whose ExprNode::ty is PrimType.
Definition base_expr.h:447
Primitive functions that contains TIR statements.
Definition function.h:49
Managed reference to FunctionNode.
Definition function.h:105
PassContext that is used to configure the pass behavior.
Definition transform.h:62
IRModule that holds the functions and type definitions.
TVM_TIRX_DLL size_t CalculateConstantBytes(const Function &func, int64_t constant_byte_alignment)
Calculate the constants size in bytes needed by the TIR allocates inside the TIR Function.
const FunctionNode * FindEntryFunc(const IRModule &mod, GlobalVar *result_g_var)
Find the entry function of the given IRModule, i.e, functions marked by tirx::attr::kIsEntryFunc,...
TVM_TIRX_DLL bool VerifyMemory(const Function &func)
Verify if memory accesses are legal for a specific target device type.
TVM_TIRX_DLL size_t CalculateExprComplexity(const PrimExpr &expr)
Calculate the expression complexity based on number of symbols it contains.
TVM_TIRX_DLL bool VerifyWellFormed(const Function &func, bool assert_mode=true)
Verify if the given TIR is well-formed. The verification includes:
TVM_TIRX_DLL size_t CalculateWorkspaceBytes(const Function &func, int64_t workspace_byte_alignment)
Calculate the workspace size in bytes needed by the TIR allocates inside the TIR Function.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
#define TVM_TIRX_DLL
Definition base.h:83
Compilation target object.
Attribute types in the Op registry for TIR ops.
TIRx statements and shared statement entry header.