Miscellaneous-Templates

List templates with instances

Required inputs: IR

Get information about instances of templates for debugging purposes.

Possible Messages

Key

Text

Severity

Disabled

template_ast_weight

{}, AST weight: {}

None

False

template_instances

{} ({}), AST weight: {}

None

False

template_without_instance

0

None

False

Options

include_dependent

include_dependent : bool = False

If true, includes nonreal instances inside other templates.
 

only_toplevel

only_toplevel : bool = True

If true, inspect only templates in global or namespace scope.
 

show_instances

show_instances : bool = False

If true, prints all instances per template.
 

show_uninstantiated

show_uninstantiated : bool = True

If true, includes templates with no instances.