From 21d94aa1ce07dcde36f6f3dd7c95f5178a87440a Mon Sep 17 00:00:00 2001 From: Scott Todd Date: Mon, 27 Nov 2023 12:40:41 -0800 Subject: [PATCH] Remove snippets for compiler plugins. --- docs/website/docs/reference/bindings/c-api.md | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/docs/website/docs/reference/bindings/c-api.md b/docs/website/docs/reference/bindings/c-api.md index 5882cf1a3cd1..12f2993df47d 100644 --- a/docs/website/docs/reference/bindings/c-api.md +++ b/docs/website/docs/reference/bindings/c-api.md @@ -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 @@ -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 |