Fixed formatting issues
This commit is contained in:
committed by
Dan Gohman
parent
5c85c1ba4a
commit
2462a065ad
@@ -8,7 +8,6 @@
|
|||||||
///
|
///
|
||||||
/// The output will appear in files named `cretonne.dbg.*`, where the suffix is named after the
|
/// The output will appear in files named `cretonne.dbg.*`, where the suffix is named after the
|
||||||
/// thread doing the logging.
|
/// thread doing the logging.
|
||||||
|
|
||||||
#[cfg(not(feature = "no_std"))]
|
#[cfg(not(feature = "no_std"))]
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
#[cfg(not(feature = "no_std"))]
|
#[cfg(not(feature = "no_std"))]
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ use ir::{InstructionData, Function, Inst, Opcode, Type};
|
|||||||
use scoped_hash_map::ScopedHashMap;
|
use scoped_hash_map::ScopedHashMap;
|
||||||
use timing;
|
use timing;
|
||||||
|
|
||||||
#[cfg(feature = "no_std")]
|
use std::vec::Vec;
|
||||||
use alloc::Vec;
|
|
||||||
|
|
||||||
/// Test whether the given opcode is unsafe to even consider for GVN.
|
/// Test whether the given opcode is unsafe to even consider for GVN.
|
||||||
fn trivially_unsafe_for_gvn(opcode: Opcode) -> bool {
|
fn trivially_unsafe_for_gvn(opcode: Opcode) -> bool {
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ use entity::SparseSet;
|
|||||||
use dominator_tree::DominatorTree;
|
use dominator_tree::DominatorTree;
|
||||||
use ir::{Ebb, Layout};
|
use ir::{Ebb, Layout};
|
||||||
|
|
||||||
#[cfg(feature = "no_std")]
|
use std::vec::Vec;
|
||||||
use alloc::Vec;
|
|
||||||
|
|
||||||
/// Present EBBs in a topological order such that all dominating EBBs are guaranteed to be visited
|
/// Present EBBs in a topological order such that all dominating EBBs are guaranteed to be visited
|
||||||
/// before the current EBB.
|
/// before the current EBB.
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ use std::collections::{HashMap, hash_map};
|
|||||||
use environ::{FuncEnvironment, GlobalValue};
|
use environ::{FuncEnvironment, GlobalValue};
|
||||||
use std::{i32, u32};
|
use std::{i32, u32};
|
||||||
|
|
||||||
// this is for no_std builds, but has no affect on regular builds
|
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
|
|
||||||
/// Translates wasm operators into Cretonne IL instructions. Returns `true` if it inserted
|
/// Translates wasm operators into Cretonne IL instructions. Returns `true` if it inserted
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use cretonne::settings;
|
|||||||
use wasmparser;
|
use wasmparser;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|
||||||
// this is for no_std builds, but has no affect on regular builds
|
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
use std::string::String;
|
use std::string::String;
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use cretonne::settings::Flags;
|
|||||||
use translation_utils::{SignatureIndex, FunctionIndex, TableIndex, GlobalIndex, MemoryIndex,
|
use translation_utils::{SignatureIndex, FunctionIndex, TableIndex, GlobalIndex, MemoryIndex,
|
||||||
Global, Table, Memory};
|
Global, Table, Memory};
|
||||||
|
|
||||||
// this is for no_std builds, but has no affect on regular builds
|
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
use std::string::String;
|
use std::string::String;
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ use sections_translator::{SectionParsingError, parse_function_signatures, parse_
|
|||||||
parse_elements_section, parse_data_section};
|
parse_elements_section, parse_data_section};
|
||||||
use environ::ModuleEnvironment;
|
use environ::ModuleEnvironment;
|
||||||
|
|
||||||
// this is for no_std builds, but has no affect on regular builds
|
|
||||||
use std::string::String;
|
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 IL
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ use wasmparser;
|
|||||||
use std::str::from_utf8;
|
use std::str::from_utf8;
|
||||||
use environ::ModuleEnvironment;
|
use environ::ModuleEnvironment;
|
||||||
|
|
||||||
// this is for no_std builds, but has no affect on regular builds
|
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
use std::string::String;
|
use std::string::String;
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ use environ::{FuncEnvironment, GlobalValue};
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use translation_utils::{GlobalIndex, MemoryIndex, SignatureIndex, FunctionIndex};
|
use translation_utils::{GlobalIndex, MemoryIndex, SignatureIndex, FunctionIndex};
|
||||||
|
|
||||||
// this is for no_std builds, but has no affect on regular builds
|
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
|
|
||||||
/// A control stack frame can be an `if`, a `block` or a `loop`, each one having the following
|
/// A control stack frame can be an `if`, a `block` or a `loop`, each one having the following
|
||||||
|
|||||||
Reference in New Issue
Block a user