CustomPassFn

Description

Registers the execution function of a custom pass.

Prototype

PassRegistrationData &CustomPassFn(const CustomPassFunc &custom_pass_fn);

Restrictions

None

Parameters

Parameter

Input/Output

Description

custom_pass_fn

Input

Execution function of a custom pass.

Returns

Reference to its own object.

Callback CustomPassFunc

You can customize and implement the CustomPassFunc class function.

Status CustomPassFunc(GraphPtr &graph, CustomPassContext &custom_context);
Table 1 Parameters

Parameter

Input/Output

Description

graph

Input

Graph to be modified.

custom_context

Input

Maintenance and test object, which is used to register maintenance and test information with the framework.

-

Output

SUCCESS(0): success.

Other values: failure.