This commit is contained in:
bjorn3
2019-09-28 16:43:00 +02:00
committed by Dan Gohman
parent c274d81b5b
commit bb8fa40ef0
49 changed files with 62 additions and 62 deletions

View File

@@ -10,9 +10,9 @@
use crate::ir::Constant;
use crate::HashMap;
use cranelift_entity::EntityRef;
use alloc::collections::BTreeMap;
use alloc::vec::Vec;
use cranelift_entity::EntityRef;
/// This type describes the actual constant data.
pub type ConstantData = Vec<u8>;

View File

@@ -14,12 +14,12 @@ use crate::isa::TargetIsa;
use crate::packed_option::ReservedValue;
use crate::write::write_operands;
use crate::HashMap;
use alloc::vec::Vec;
use core::fmt;
use core::iter;
use core::mem;
use core::ops::{Index, IndexMut};
use core::u16;
use alloc::vec::Vec;
/// A data flow graph defines all instructions and extended basic blocks in a function as well as
/// the data flow dependencies between them. The DFG also tracks values which can be either

View File

@@ -455,8 +455,8 @@ impl From<Table> for AnyEntity {
#[cfg(test)]
mod tests {
use super::*;
use core::u32;
use alloc::string::ToString;
use core::u32;
#[test]
fn value_with_number() {

View File

@@ -7,9 +7,9 @@
use crate::ir::{ArgumentLoc, ExternalName, SigRef, Type};
use crate::isa::{CallConv, RegInfo, RegUnit};
use alloc::vec::Vec;
use core::fmt;
use core::str::FromStr;
use alloc::vec::Vec;
/// Function signature.
///

View File

@@ -120,8 +120,8 @@ impl FromStr for ExternalName {
mod tests {
use super::ExternalName;
use crate::ir::LibCall;
use core::u32;
use alloc::string::ToString;
use core::u32;
#[test]
fn display_testcase() {

View File

@@ -4,11 +4,11 @@
//! Each type here should have a corresponding definition in the
//! `cranelift-codegen/meta/src/shared/immediates` crate in the meta language.
use alloc::vec::Vec;
use core::fmt::{self, Display, Formatter};
use core::iter::FromIterator;
use core::str::{from_utf8, FromStr};
use core::{i32, u32};
use alloc::vec::Vec;
/// Convert a type into a vector of bytes; all implementors in this file must use little-endian
/// orderings of bytes to match WebAssembly's little-endianness.
@@ -936,11 +936,11 @@ impl IntoBytes for Ieee64 {
#[cfg(test)]
mod tests {
use super::*;
use alloc::string::ToString;
use core::fmt::Display;
use core::mem;
use core::str::FromStr;
use core::{f32, f64};
use alloc::string::ToString;
#[test]
fn format_imm64() {

View File

@@ -6,10 +6,10 @@
//! A large part of this module is auto-generated from the instruction descriptions in the meta
//! directory.
use alloc::vec::Vec;
use core::fmt::{self, Display, Formatter};
use core::ops::{Deref, DerefMut};
use core::str::FromStr;
use alloc::vec::Vec;
use crate::ir;
use crate::ir::types;

View File

@@ -4,9 +4,9 @@
//! The actual table of destinations is stored in a `JumpTableData` struct defined in this module.
use crate::ir::entities::Ebb;
use alloc::vec::Vec;
use core::fmt::{self, Display, Formatter};
use core::slice::{Iter, IterMut};
use alloc::vec::Vec;
/// Contents of a jump table.
///

View File

@@ -750,8 +750,8 @@ mod tests {
use crate::cursor::{Cursor, CursorPosition};
use crate::entity::EntityRef;
use crate::ir::{Ebb, Inst, ProgramOrder, SourceLoc};
use core::cmp::Ordering;
use alloc::vec::Vec;
use core::cmp::Ordering;
struct LayoutCursor<'f> {
/// Borrowed function layout. Public so it can be re-borrowed from this cursor.

View File

@@ -6,12 +6,12 @@
use crate::entity::{Iter, IterMut, Keys, PrimaryMap};
use crate::ir::{StackSlot, Type};
use crate::packed_option::PackedOption;
use alloc::vec::Vec;
use core::cmp;
use core::fmt;
use core::ops::{Index, IndexMut};
use core::slice;
use core::str::FromStr;
use alloc::vec::Vec;
#[cfg(feature = "enable-serde")]
use serde::{Deserialize, Serialize};