tvm
Loading...
Searching...
No Matches
Namespaces | Functions
analysis.h File Reference

Analysis utilities and passes for TIR. More...

#include <tvm/ir/module.h>
#include <tvm/ir/prim/expr.h>
#include <tvm/ir/transform.h>
#include <tvm/target/target.h>
#include <tvm/tirx/function.h>
#include <tvm/tirx/op/attr.h>
#include <tvm/tirx/stmt.h>
#include <string>
Include dependency graph for analysis.h:

Go to the source code of this file.

Namespaces

namespace  tvm
 An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
 
namespace  tvm::tirx
 
namespace  tvm::tirx::transform
 

Functions

TVM_TIRX_DLL ffi::Array< PrimExpr > tvm::tirx::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 base are invariant of var[j] for all i and j.
 
TVM_TIRX_DLL ffi::Array< ffi::Optional< PrimExpr > > tvm::tirx::DetectClipBound (const PrimExpr &e, const ffi::Array< PrimVar > &vars)
 Detect if expression corresponds to clip bound of the vars.
 
TVM_TIRX_DLL bool tvm::tirx::VerifyMemory (const Function &func)
 Verify if memory accesses are legal for a specific target device type.
 
TVM_TIRX_DLL size_t tvm::tirx::CalculateExprComplexity (const PrimExpr &expr)
 Calculate the expression complexity based on number of symbols it contains.
 
TVM_TIRX_DLL bool tvm::tirx::CheckWellFormed (const Function &func, bool assert_mode=true)
 Check whether a TIRx function is well formed.
 
TVM_TIRX_DLL bool tvm::tirx::CheckWellFormed (const IRModule &mod, bool assert_mode=true)
 Check whether a TIRx module is well formed.
 
TVM_TIRX_DLL const FunctionObj * tvm::tirx::FindEntryFunc (const IRModule &mod, GlobalVar *result_g_var)
 Find the entry function of the given IRModule, i.e, functions marked by tirx::attr::kIsEntryFunc.name, whose name is main or being the only Function.
 
TVM_TIRX_DLL Pass tvm::tirx::transform::VerifyMemory ()
 Pass variant of VerifyMemory.
 

Detailed Description

Analysis utilities and passes for TIR.