tvm_tirx.script.ir_builder.parser_protocol.func_name_

Contents

tvm_tirx.script.ir_builder.parser_protocol.func_name_#

tvm_tirx.script.ir_builder.parser_protocol.func_name_(name)#

Set the active native function’s source name.

Parameters:

name (str) – Function identifier; used for the module reference and public symbol according to language variant privacy options.

Returns:

None – No value.

Return type:

None

Notes

Requires a function frame. Mutates its signature metadata and emits no statement; invalid or repeated naming follows native diagnostics. No source location argument is needed because the frame owns its location.

# Source
def f():
    pass
# Generated builder, inside the function frame
X.func_name_("f")