# 'hacc' Dialect Passes ## `-hacc-append-device-spec` ### Options ```text -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: ```mlir func.func @bar() attributes {hacc.rename_func = #hacc.rename_func<@foo>} { return } func.func @caller() { func.call @bar() : () -> () return } ``` Will be transformed into: ```mlir 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