Add a Relax function or a TIR PrimFunc to the IRModule being built. Parameters ---------- gv : GlobalVar The global var referring the function to be updated. updated_func : BaseFunc The updated function.
(self, gv: GlobalVar, updated_func: BaseFunc)
| 736 | return _ffi_api.BlockBuilderAddFunction(self, func, func_name) # type: ignore |
| 737 | |
| 738 | def update_func(self, gv: GlobalVar, updated_func: BaseFunc) -> None: |
| 739 | """Add a Relax function or a TIR PrimFunc to the IRModule being built. |
| 740 | |
| 741 | Parameters |
| 742 | ---------- |
| 743 | gv : GlobalVar |
| 744 | The global var referring the function to be updated. |
| 745 | |
| 746 | updated_func : BaseFunc |
| 747 | The updated function. |
| 748 | """ |
| 749 | return _ffi_api.BlockBuilderUpdateFunction(self, gv, updated_func) # type: ignore |
| 750 | |
| 751 | def current_block_is_dataflow(self) -> bool: |
| 752 | """Check if the block being built is DataflowBlock or not. |
no outgoing calls