Say "IR" instead of "IL".
While the specifics of these terms are debatable, "IR" generally isn't incorrect in this context, and is the more widely recognized term at this time. See also the discussion in #267. Fixes #267.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//! This module contains the bulk of the interesting code performing the translation between
|
||||
//! WebAssembly and Cretonne IL.
|
||||
//! WebAssembly and Cretonne IR.
|
||||
//!
|
||||
//! The translation is done in one pass, opcode by opcode. Two main data structures are used during
|
||||
//! code translations: the value stack and the control stack. The value stack mimics the execution
|
||||
@@ -38,7 +38,7 @@ use std::vec::Vec;
|
||||
|
||||
// Clippy warns about "flags: _" but its important to document that the flags field is ignored
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(unneeded_field_pattern))]
|
||||
/// Translates wasm operators into Cretonne IL instructions. Returns `true` if it inserted
|
||||
/// Translates wasm operators into Cretonne IR instructions. Returns `true` if it inserted
|
||||
/// a return.
|
||||
pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
|
||||
op: Operator,
|
||||
|
||||
@@ -26,7 +26,7 @@ pub enum GlobalValue {
|
||||
/// Environment affecting the translation of a single WebAssembly function.
|
||||
///
|
||||
/// A `FuncEnvironment` trait object is required to translate a WebAssembly function to Cretonne
|
||||
/// IL. The function environment provides information about the WebAssembly module as well as the
|
||||
/// IR. The function environment provides information about the WebAssembly module as well as the
|
||||
/// runtime environment.
|
||||
pub trait FuncEnvironment {
|
||||
/// Get the flags for the current compilation.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Stand-alone WebAssembly to Cretonne IL translator.
|
||||
//! Stand-alone WebAssembly to Cretonne IR translator.
|
||||
//!
|
||||
//! This module defines the `FuncTranslator` type which can translate a single WebAssembly
|
||||
//! function to Cretonne IL guided by a `FuncEnvironment` which provides information about the
|
||||
//! function to Cretonne IR guided by a `FuncEnvironment` which provides information about the
|
||||
//! WebAssembly module and the runtime environment.
|
||||
|
||||
use code_translator::translate_operator;
|
||||
@@ -14,9 +14,9 @@ use environ::FuncEnvironment;
|
||||
use state::TranslationState;
|
||||
use wasmparser::{self, BinaryReader};
|
||||
|
||||
/// WebAssembly to Cretonne IL function translator.
|
||||
/// WebAssembly to Cretonne IR function translator.
|
||||
///
|
||||
/// A `FuncTranslator` is used to translate a binary WebAssembly function into Cretonne IL guided
|
||||
/// A `FuncTranslator` is used to translate a binary WebAssembly function into Cretonne IR guided
|
||||
/// by a `FuncEnvironment` object. A single translator instance can be reused to translate multiple
|
||||
/// functions which will reduce heap allocation traffic.
|
||||
pub struct FuncTranslator {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Performs the translation from a wasm module in binary format to the in-memory representation
|
||||
//! of the Cretonne IL. More particularly, it translates the code of all the functions bodies and
|
||||
//! Performs translation from a wasm module in binary format to the in-memory form
|
||||
//! of Cretonne IR. More particularly, it translates the code of all the functions bodies and
|
||||
//! interacts with an environment implementing the
|
||||
//! [`ModuleEnvironment`](trait.ModuleEnvironment.html)
|
||||
//! trait to deal with tables, globals and linear memory.
|
||||
|
||||
@@ -10,7 +10,7 @@ use environ::ModuleEnvironment;
|
||||
|
||||
use std::string::String;
|
||||
|
||||
/// Translate a sequence of bytes forming a valid Wasm binary into a list of valid Cretonne IL
|
||||
/// Translate a sequence of bytes forming a valid Wasm binary into a list of valid Cretonne IR
|
||||
/// [`Function`](../cretonne/ir/function/struct.Function.html).
|
||||
/// Returns the functions and also the mappings for imported functions and signature between the
|
||||
/// indexes in the wasm module and the indexes inside each functions.
|
||||
|
||||
Reference in New Issue
Block a user