Skip to content

Commit

Permalink
Add more callouts/links to samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Nov 27, 2023
1 parent 186070f commit 05303b0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/website/docs/reference/bindings/c-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ options, passes, or pipelines.

### Usage

!!! info ""
#### Compiler session API

These snippets show the general layout of the API. For working examples,
see the [samples below](#samples).
!!! info ""

#### Compiler session API
This snippet shows the general layout of the API. For working examples, see
the [samples below](#samples).

To build a custom tool using the compiler API:

Expand Down Expand Up @@ -195,6 +195,12 @@ 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"
Expand Down Expand Up @@ -472,7 +478,7 @@ hardware devices like CPUs, GPUs and other accelerators.
!!! info ""

This snippet shows the general layout of the API. For working examples, see
the samples below.
the [samples below](#samples_1).

```cmake title="CMakeLists.txt"
target_include_directories(${_NAME} SYSTEM PRIVATE ${_IREE_RUNTIME_ROOT})
Expand Down

0 comments on commit 05303b0

Please sign in to comment.