Use consistent formatting for module-level comments.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
//! Test command for verifying dominator trees.
|
//! Test command for verifying dominator trees.
|
||||||
//!
|
//!
|
||||||
//! The `test domtree` test command looks for annotations on instructions like this:
|
//! The `test domtree` test command looks for annotations on instructions like this:
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
//! Immediate operands for Cretonne instructions
|
//! Immediate operands for Cretonne instructions
|
||||||
//!
|
//!
|
||||||
//! This module defines the types of immediate operands that can appear on Cretonne instructions.
|
//! This module defines the types of immediate operands that can appear on Cretonne instructions.
|
||||||
|
|||||||
@@ -3,12 +3,6 @@
|
|||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
use std::fmt::{self, Display, Debug, Formatter};
|
use std::fmt::{self, Display, Debug, Formatter};
|
||||||
|
|
||||||
// ====--------------------------------------------------------------------------------------====//
|
|
||||||
//
|
|
||||||
// Value types
|
|
||||||
//
|
|
||||||
// ====--------------------------------------------------------------------------------------====//
|
|
||||||
|
|
||||||
/// The type of an SSA value.
|
/// The type of an SSA value.
|
||||||
///
|
///
|
||||||
/// The `VOID` type is only used for instructions that produce no value. It can't be part of a SIMD
|
/// The `VOID` type is only used for instructions that produce no value. It can't be part of a SIMD
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
|
//! Lexical analysis for .cton files.
|
||||||
// ====--------------------------------------------------------------------------------------====//
|
|
||||||
//
|
|
||||||
// Lexical analysis for .cton files.
|
|
||||||
//
|
|
||||||
// ====--------------------------------------------------------------------------------------====//
|
|
||||||
|
|
||||||
use std::str::CharIndices;
|
use std::str::CharIndices;
|
||||||
use std::u16;
|
use std::u16;
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
|
//! Parser for .cton files.
|
||||||
// ====--------------------------------------------------------------------------------------====//
|
|
||||||
//
|
|
||||||
// Parser for .cton files.
|
|
||||||
//
|
|
||||||
// ====--------------------------------------------------------------------------------------====//
|
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//! "Dummy" environment for testing wasm translation.
|
||||||
|
|
||||||
use environ::{FuncEnvironment, GlobalValue, ModuleEnvironment};
|
use environ::{FuncEnvironment, GlobalValue, ModuleEnvironment};
|
||||||
use translation_utils::{Global, Memory, Table, GlobalIndex, TableIndex, SignatureIndex,
|
use translation_utils::{Global, Memory, Table, GlobalIndex, TableIndex, SignatureIndex,
|
||||||
FunctionIndex, MemoryIndex};
|
FunctionIndex, MemoryIndex};
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//! Support for configurable wasm translation.
|
||||||
|
|
||||||
mod spec;
|
mod spec;
|
||||||
mod dummy;
|
mod dummy;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
///! Helper functions and structures for the translation.
|
//! Helper functions and structures for the translation.
|
||||||
use wasmparser;
|
use wasmparser;
|
||||||
use cretonne;
|
use cretonne;
|
||||||
use std::u32;
|
use std::u32;
|
||||||
|
|||||||
Reference in New Issue
Block a user