Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Update information on Func to EmitC (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre authored Feb 21, 2024
1 parent 1b1884c commit 7f2d0da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The `emitc-opt` tool supports the following options:

| option | |
| :----------------------------------------- |:------------------------------------------------------------------------ |
| `--convert-func-to-emitc` | Convert Func dialect to EmitC dialect |
| `--convert-scf-to-emitc` | Convert SCF dialect to EmitC dialect, maintaining structured control flow|
| `--convert-stablehlo-region-ops-to-emitc ` | Convert StableHLO operations containing regions to EmitC dialect. |
| `--convert-stablehlo-to-emitc ` | Convert from StableHLO dialect to EmitC dialect. |
Expand Down
12 changes: 10 additions & 2 deletions docs/func-op-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-->
# Func Op Coverage

The table below shows the supported func ops.
The table below shows the func ops, supported with the `--convert-func-to-emitc` **upstream** conversion.

| op | supported | comment |
| :-------------------- |:------------------:| :------ |
| call | :heavy_check_mark: | |
| func | :heavy_check_mark: | |
| return | :heavy_check_mark: | |

The table below shows the func ops, supported **upstream** via `--mlir-to-cpp`

| op | supported | comment |
| :-------------------- |:------------------:| :------ |
| call | :white_check_mark: | via `emitc-translate` |
| constant | :white_check_mark: | via `emitc-translate` |
| func | :white_check_mark: | via `emitc-translate` |
| return | :white_check_mark: | via `emitc-translate` |

0 comments on commit 7f2d0da

Please sign in to comment.