Skip to content

Commit

Permalink
Remove snippets for compiler plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Nov 27, 2023
1 parent 05303b0 commit 21d94aa
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions docs/website/docs/reference/bindings/c-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,11 @@ An _output_ (`iree_compiler_output_t`) represents a compilation artifact.
#### Plugins

A _plugin_ extends the compiler with some combination of target backends,
options, passes, or pipelines.
options, passes, or pipelines. For documentation on compiler plugins, see
[`compiler/PluginAPI/README.md`](https://github.com/openxla/iree/blob/main/compiler/src/iree/compiler/PluginAPI/README.md).

### Usage

#### Compiler session API

!!! info ""

This snippet shows the general layout of the API. For working examples, see
Expand Down Expand Up @@ -193,24 +192,6 @@ int main(int argc, char** argv) {
}
```
#### Compiler plugins
!!! info ""
This snippet comes from the
[example compiler plugin](https://github.com/openxla/iree/tree/main/samples/compiler_plugins/example).
For other examples, see the [samples below](#samples).
To add a compiler plugin that extends the compiler with custom options:
```cmake title="samples/compiler_plugins/example/CMakeLists.txt"
--8<-- "samples/compiler_plugins/example/CMakeLists.txt:22:39"
```

```c++ title="samples/compiler_plugins/example/src/PluginRegistration.cpp"
--8<-- "samples/compiler_plugins/example/src/PluginRegistration.cpp:7"
```

#### Samples
| Project | Source | Description |
Expand Down

0 comments on commit 21d94aa

Please sign in to comment.