Rename langref.rst to ir.rst.

This aligns with our use of the term "IR" rather than "IL" or
other terms involving "language".
This commit is contained in:
Dan Gohman
2018-08-02 09:18:59 -07:00
parent 987bbfa922
commit c61f8a5baf
8 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ Cranelift Code Generator
Cranelift is a low-level retargetable code generator. It translates a Cranelift is a low-level retargetable code generator. It translates a
[target-independent intermediate [target-independent intermediate
representation](https://cranelift.readthedocs.io/en/latest/langref.html) representation](https://cranelift.readthedocs.io/en/latest/ir.html)
into executable machine code. into executable machine code.
[![Documentation Status](https://readthedocs.org/projects/cranelift/badge/?version=latest)](https://cranelift.readthedocs.io/en/latest/?badge=latest) [![Documentation Status](https://readthedocs.org/projects/cranelift/badge/?version=latest)](https://cranelift.readthedocs.io/en/latest/?badge=latest)

View File

@@ -89,7 +89,7 @@ representation. Some target ISAs have a fast instruction selector that can
translate simple code directly to MachineInstrs, bypassing SelectionDAG when translate simple code directly to MachineInstrs, bypassing SelectionDAG when
possible. possible.
:doc:`Cranelift <langref>` uses a single intermediate representation to cover :doc:`Cranelift <ir>` uses a single intermediate representation to cover
these levels of abstraction. This is possible in part because of Cranelift's these levels of abstraction. This is possible in part because of Cranelift's
smaller scope. smaller scope.

View File

@@ -6,8 +6,8 @@ Contents:
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
langref ir
metaref meta
testing testing
regalloc regalloc
compare-llvm compare-llvm

View File

@@ -1,6 +1,6 @@
**************************** **********************
Cranelift Language Reference Cranelift IR Reference
**************************** **********************
.. default-domain:: clif .. default-domain:: clif
.. highlight:: clif .. highlight:: clif

View File

@@ -80,7 +80,7 @@ open :class:`InstructionGroup`.
.. autoclass:: InstructionGroup .. autoclass:: InstructionGroup
:members: :members:
The basic Cranelift instruction set described in :doc:`langref` is defined by the The basic Cranelift instruction set described in :doc:`ir` is defined by the
Python module :mod:`base.instructions`. This module has a global value Python module :mod:`base.instructions`. This module has a global value
:data:`base.instructions.GROUP` which is an :class:`InstructionGroup` instance :data:`base.instructions.GROUP` which is an :class:`InstructionGroup` instance
containing all the base instructions. containing all the base instructions.

View File

@@ -90,7 +90,7 @@ easier to provide substantial input functions for the compiler tests.
File tests are :file:`*.clif` files in the :file:`filetests/` directory File tests are :file:`*.clif` files in the :file:`filetests/` directory
hierarchy. Each file has a header describing what to test followed by a number hierarchy. Each file has a header describing what to test followed by a number
of input functions in the :doc:`Cranelift textual intermediate representation of input functions in the :doc:`Cranelift textual intermediate representation
<langref>`: <ir>`:
.. productionlist:: .. productionlist::
test_file : test_header `function_list` test_file : test_header `function_list`

View File

@@ -19,7 +19,7 @@ pub enum CodegenError {
/// Cranelift can compile very large and complicated functions, but the [implementation has /// Cranelift can compile very large and complicated functions, but the [implementation has
/// limits][limits] that cause compilation to fail when they are exceeded. /// limits][limits] that cause compilation to fail when they are exceeded.
/// ///
/// [limits]: https://cranelift.readthedocs.io/en/latest/langref.html#implementation-limits /// [limits]: https://cranelift.readthedocs.io/en/latest/ir.html#implementation-limits
#[fail(display = "Implementation limit exceeded")] #[fail(display = "Implementation limit exceeded")]
ImplLimitExceeded, ImplLimitExceeded,

View File

@@ -54,7 +54,7 @@ pub enum WasmError {
/// Cranelift can compile very large and complicated functions, but the [implementation has /// Cranelift can compile very large and complicated functions, but the [implementation has
/// limits][limits] that cause compilation to fail when they are exceeded. /// limits][limits] that cause compilation to fail when they are exceeded.
/// ///
/// [limits]: https://cranelift.readthedocs.io/en/latest/langref.html#implementation-limits /// [limits]: https://cranelift.readthedocs.io/en/latest/ir.html#implementation-limits
#[fail(display = "Implementation limit exceeded")] #[fail(display = "Implementation limit exceeded")]
ImplLimitExceeded, ImplLimitExceeded,
} }