注册自定义Pass的执行函数。
1 | PassRegistrationData &CustomPassFn(const CustomPassFunc &custom_pass_fn) |
无。
参数名 |
输入/输出 |
描述 |
---|---|---|
custom_pass_fn |
输入 |
自定义Pass的执行函数。 |
返回自身对象的引用。
用户自定义并实现CustomPassFunc类函数,即自定义的改图函数。
1 | Status CustomPassFunc(GraphPtr &graph, CustomPassContext &custom_context) |
参数名 |
输入/输出 |
描述 |
---|---|---|
graph |
输入 |
要修改的图。 |
custom_context |
输入 |
维测类对象,通过此对象向框架注册维测信息。 |
- |
输出 |
|