Fix some markdown issues.
Work around some cases where the old markdown parser differs from the new Pulldown parser for the documentation.
This commit is contained in:
@@ -705,7 +705,7 @@ impl DataFlowGraph {
|
|||||||
/// Returns the position of `val` before removal.
|
/// Returns the position of `val` before removal.
|
||||||
///
|
///
|
||||||
/// *Important*: to ensure O(1) deletion, this method swaps the removed parameter with the
|
/// *Important*: to ensure O(1) deletion, this method swaps the removed parameter with the
|
||||||
/// last `ebb`` parameter. This can disrupt all the branch instructions jumping to this
|
/// last `ebb` parameter. This can disrupt all the branch instructions jumping to this
|
||||||
/// `ebb` for which you have to change the branch argument order if necessary.
|
/// `ebb` for which you have to change the branch argument order if necessary.
|
||||||
///
|
///
|
||||||
/// Panics if `val` is not an EBB parameter.
|
/// Panics if `val` is not an EBB parameter.
|
||||||
|
|||||||
@@ -526,7 +526,7 @@ impl Ieee32 {
|
|||||||
Ieee32(x)
|
Ieee32(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create an `Ieee32` number representing 2.0^n.
|
/// Create an `Ieee32` number representing `2.0^n`.
|
||||||
pub fn pow2<I: Into<i32>>(n: I) -> Ieee32 {
|
pub fn pow2<I: Into<i32>>(n: I) -> Ieee32 {
|
||||||
let n = n.into();
|
let n = n.into();
|
||||||
let w = 8;
|
let w = 8;
|
||||||
@@ -578,7 +578,7 @@ impl Ieee64 {
|
|||||||
Ieee64(x)
|
Ieee64(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create an `Ieee64` number representing 2.0^n.
|
/// Create an `Ieee64` number representing `2.0^n`.
|
||||||
pub fn pow2<I: Into<i64>>(n: I) -> Ieee64 {
|
pub fn pow2<I: Into<i64>>(n: I) -> Ieee64 {
|
||||||
let n = n.into();
|
let n = n.into();
|
||||||
let w = 11;
|
let w = 11;
|
||||||
|
|||||||
@@ -265,8 +265,9 @@ impl Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// True iff:
|
/// True iff:
|
||||||
/// 1) self.lane_count() == other.lane_count() and
|
///
|
||||||
/// 2) self.lane_bits() >= other.lane_bits()
|
/// 1. `self.lane_count() == other.lane_count()` and
|
||||||
|
/// 2. `self.lane_bits() >= other.lane_bits()`
|
||||||
pub fn wider_or_equal(self, other: Type) -> bool {
|
pub fn wider_or_equal(self, other: Type) -> bool {
|
||||||
self.lane_count() == other.lane_count() && self.lane_bits() >= other.lane_bits()
|
self.lane_count() == other.lane_count() && self.lane_bits() >= other.lane_bits()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ pub enum CtonError {
|
|||||||
|
|
||||||
/// An implementation limit was exceeded.
|
/// An implementation limit was exceeded.
|
||||||
///
|
///
|
||||||
/// Cretonne can compile very large and complicated functions, but the implementation has
|
/// Cretonne can compile very large and complicated functions, but the [implementation has
|
||||||
/// limits that cause compilation to fail when they are exceeded.
|
/// limits][limits] that cause compilation to fail when they are exceeded.
|
||||||
///
|
///
|
||||||
/// See http://cretonne.readthedocs.io/en/latest/langref.html#implementation-limits
|
/// [limits]: http://cretonne.readthedocs.io/en/latest/langref.html#implementation-limits
|
||||||
ImplLimitExceeded,
|
ImplLimitExceeded,
|
||||||
|
|
||||||
/// The code size for the function is too large.
|
/// The code size for the function is too large.
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
//! # Directives
|
//! # Directives
|
||||||
//!
|
//!
|
||||||
//! These are the directives recognized by *filecheck*:
|
//! These are the directives recognized by *filecheck*:
|
||||||
|
//!
|
||||||
//! <pre class="rust">
|
//! <pre class="rust">
|
||||||
//! <a href="#the-check-directive">check: <i><pattern></i></a>
|
//! <a href="#the-check-directive">check: <i><pattern></i></a>
|
||||||
//! <a href="#the-sameln-directive">sameln: <i><pattern></i></a>
|
//! <a href="#the-sameln-directive">sameln: <i><pattern></i></a>
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
//! <a href="#the-not-directive">not: <i><pattern></i></a>
|
//! <a href="#the-not-directive">not: <i><pattern></i></a>
|
||||||
//! <a href="#the-regex-directive">regex: <i><variable></i>=<i><regex></i></a>
|
//! <a href="#the-regex-directive">regex: <i><variable></i>=<i><regex></i></a>
|
||||||
//! </pre>
|
//! </pre>
|
||||||
|
//!
|
||||||
//! Each directive is described in more detail below.
|
//! Each directive is described in more detail below.
|
||||||
//!
|
//!
|
||||||
//! ## Example
|
//! ## Example
|
||||||
|
|||||||
@@ -43,8 +43,9 @@ impl FuncTranslator {
|
|||||||
/// - The declaration of *locals*, and
|
/// - The declaration of *locals*, and
|
||||||
/// - The function *body* as an expression.
|
/// - The function *body* as an expression.
|
||||||
///
|
///
|
||||||
/// See [the WebAssembly specification]
|
/// See [the WebAssembly specification][wasm].
|
||||||
/// (http://webassembly.github.io/spec/binary/modules.html#code-section).
|
///
|
||||||
|
/// [wasm]: http://webassembly.github.io/spec/binary/modules.html#code-section
|
||||||
///
|
///
|
||||||
/// The Cretonne IR function `func` should be completely empty except for the `func.signature`
|
/// The Cretonne IR function `func` should be completely empty except for the `func.signature`
|
||||||
/// and `func.name` fields. The signature may contain special-purpose arguments which are not
|
/// and `func.name` fields. The signature may contain special-purpose arguments which are not
|
||||||
|
|||||||
Reference in New Issue
Block a user