Skip to content

Commit

Permalink
Small update for filename in isle_integration.md (bytecodealliance#…
Browse files Browse the repository at this point in the history
…5516)

* Small update for filename in `isle_integration.md`

The name "clif.isle" is stale (since bytecodealliance#4953), now two files "clif_lower.isle" and "clif_opt.isle" are generated. Not sure if that PR necessitates other changes this this doc.

* Update cranelift/docs/isle-integration.md

Co-authored-by: Jamey Sharp <jsharp@fastly.com>
  • Loading branch information
avanhatt and jameysharp authored Jan 4, 2023
1 parent 937601c commit 4bc4fae
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cranelift/docs/isle-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This will give pretty-printed errors with source context.
Additionally, the `cranelift-codegen-meta` crate will automatically generate
ISLE `extern` declarations and helpers for working with CLIF. The code that does
this is defined inside `cranelift/codegen/meta/src/gen_inst.rs` and it creates
the `clif.isle` file in the `target/` output directory, which is subsequently
several ISLE files in the `target/` output directory which are subsequently
read by the ISLE compiler as part of its prologue.

## Where are the relevant files?
Expand All @@ -55,9 +55,13 @@ read by the ISLE compiler as part of its prologue.
* `cranelift/codegen/src/prelude.isle`: Common definitions and declarations for
ISLE. This gets included in every ISLE compilation.

* `target/.../out/clif.isle`: Auto-generated declarations and helpers for
working with CLIF inside ISLE. Generated by `cranelift/codegen/build.rs`.
This gets included in every ISLE compilation.
* `target/.../out/clif_lower.isle`: Auto-generated declarations and helpers
for working with CLIF for instruction lowering inside ISLE. Generated by
`cranelift/codegen/build.rs`, which builds it into every backend.

* `target/.../out/clif_opt.isle`: Auto-generated declarations and helpers for
working with CLIF for mid-end optimizations. Generated by
`cranelift/codegen/build.rs`, which builds it into the mid-end optimizer.

* `cranelift/codegen/src/machinst/isle.rs`: Common Rust code for gluing
ISLE-generated code into a target architecture's backend. Contains
Expand Down

0 comments on commit 4bc4fae

Please sign in to comment.