PassContextObj contains the information that a pass can rely on, such as analysis results.
More...
#include <transform.h>
PassContextObj contains the information that a pass can rely on, such as analysis results.
- See also
- PassContext
◆ PassContextObj()
| tvm::transform::PassContextObj::PassContextObj |
( |
| ) |
|
|
default |
◆ GetConfig()
template<typename T >
| ffi::Optional< T > tvm::transform::PassContextObj::GetConfig |
( |
const std::string & |
key | ) |
const |
|
inline |
Get a config value, returning an empty optional when the key is absent.
- Parameters
-
- Template Parameters
-
| T | The expected value type. |
- Exceptions
-
| Error | if the key exists but the value does not match T. |
◆ GetConfigOrDefault()
template<typename TConfig >
| TConfig tvm::transform::PassContextObj::GetConfigOrDefault |
( |
const std::string & |
key | ) |
const |
|
inline |
Get a config object, constructing reflection defaults only when absent.
- Parameters
-
- Template Parameters
-
| TConfig | The ObjectRef config type with reflection-defined defaults. |
- Returns
- The configured object, or a fresh default object for this call.
◆ RegisterReflection()
| static void tvm::transform::PassContextObj::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::transform::PassContextObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"transform.PassContext" |
, |
|
|
PassContextObj |
, |
|
|
ffi::Object |
|
|
) |
| |
◆ config
| ffi::Map<ffi::String, Any> tvm::transform::PassContextObj::config |
Pass specific configurations.
◆ disabled_pass
| ffi::Array<ffi::String> tvm::transform::PassContextObj::disabled_pass |
The list of disabled passes.
◆ instruments
| ffi::Array<PassInstrument> tvm::transform::PassContextObj::instruments |
A list of pass instrument implementations.
◆ opt_level
| int tvm::transform::PassContextObj::opt_level {2} |
The default optimization level.
◆ required_pass
| ffi::Array<ffi::String> tvm::transform::PassContextObj::required_pass |
The list of required passes.
The documentation for this class was generated from the following file: