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:
@@ -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.
|
||||||
|
|
||||||
[](https://cranelift.readthedocs.io/en/latest/?badge=latest)
|
[](https://cranelift.readthedocs.io/en/latest/?badge=latest)
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ Contents:
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
langref
|
ir
|
||||||
metaref
|
meta
|
||||||
testing
|
testing
|
||||||
regalloc
|
regalloc
|
||||||
compare-llvm
|
compare-llvm
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
****************************
|
**********************
|
||||||
Cranelift Language Reference
|
Cranelift IR Reference
|
||||||
****************************
|
**********************
|
||||||
|
|
||||||
.. default-domain:: clif
|
.. default-domain:: clif
|
||||||
.. highlight:: clif
|
.. highlight:: clif
|
||||||
@@ -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.
|
||||||
@@ -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`
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user