‘hacc’ Dialect Passes¶
-hacc-append-device-spec¶
Options¶
-target : Device target name
-hacc-rename-func¶
Rename function based on attribute.
This pass renames a function according to the hacc.rename_func attribute
and updates all the references within the module.
For example:
func.func @bar() attributes {hacc.rename_func = #hacc.rename_func<@foo>} {
return
}
func.func @caller() {
func.call @bar() : () -> ()
return
}
Will be transformed into:
func.func @foo() {
return
}
func.func @caller() {
func.call @foo() : () -> ()
return
}
Restrictions:
There must be no existing function whose name is the same as the target function name