24#ifndef TVM_TIRX_ANALYSIS_H_
25#define TVM_TIRX_ANALYSIS_H_
50 const ffi::Array<PrimVar>& vars);
61 const ffi::Array<PrimVar>& vars);
#define TVM_TIRX_DLL
Definition base.h:55
TIRx statements and shared statement entry header.
Managed reference to GlobalVarObj.
Definition expr.h:709
Managed reference class to IRModuleObj.
Definition module.h:292
Typed reference/view over any Expr whose ExprObj::ty is PrimType.
Definition expr.h:187
Primitive functions that contains TIR statements.
Definition function.h:50
Managed reference to FunctionObj.
Definition function.h:107
PassContext that is used to configure the pass behavior.
Definition transform.h:64
IRModule that holds the functions and type definitions.
TVM_TIRX_DLL ffi::Array< PrimExpr > DetectLinearEquation(const PrimExpr &e, const ffi::Array< PrimVar > &vars)
Detect if e can be rewritten as e = sum_{i=0}^{n-1} var[i] * coeff[i] + coeff[n] Where coeff[i] and b...
TVM_TIRX_DLL ffi::Array< ffi::Optional< PrimExpr > > DetectClipBound(const PrimExpr &e, const ffi::Array< PrimVar > &vars)
Detect if expression corresponds to clip bound of the vars.
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 CheckWellFormed(const Function &func, bool assert_mode=true)
Check whether a TIRx function is well formed.
TVM_TIRX_DLL const FunctionObj * FindEntryFunc(const IRModule &mod, GlobalVar *result_g_var)
Find the entry function of the given IRModule, i.e, functions marked by tirx::attr::kIsEntryFunc....
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
Compilation target object.
Attribute keys and callback contracts for TIRx operators.