Produce the runtime::Module with an annotated codegen and global symbol. Parameters ---------- target_options: Optional[dict] Pairs of a target name and compilation options entry_functions: Optional[List[str]] The set of entry functions to start from. Returns
(
target_options: dict | None = None,
entry_functions: list[str] | None = None,
)
| 700 | |
| 701 | |
| 702 | def RunCodegen( |
| 703 | target_options: dict | None = None, |
| 704 | entry_functions: list[str] | None = None, |
| 705 | ) -> tvm.ir.transform.Pass: |
| 706 | """Produce the runtime::Module with an annotated codegen and global symbol. |
| 707 | |
| 708 | Parameters |
| 709 | ---------- |
| 710 | target_options: Optional[dict] |
| 711 | Pairs of a target name and compilation options |
| 712 | entry_functions: Optional[List[str]] |
| 713 | The set of entry functions to start from. |
| 714 | |
| 715 | Returns |
| 716 | ------- |
| 717 | ret : tvm.transform.Pass |
| 718 | The registered pass to remove unused functions. |
| 719 | """ |
| 720 | if entry_functions is None: |
| 721 | entry_functions = [] |
| 722 | |
| 723 | # enable cutlass byoc registries |
| 724 | # pylint: disable=unused-import,import-outside-toplevel |
| 725 | from tvm.contrib import cutlass as _cutlass |
| 726 | |
| 727 | return _ffi_api.RunCodegen(target_options, entry_functions) # type: ignore |
| 728 | |
| 729 | |
| 730 | def FoldConstant() -> tvm.ir.transform.Pass: |
no outgoing calls
searching dependent graphs…