Prefer to use qualified type names in generated code.

Emit type names like ir::Foo instead of just Foo to avoid very long
manual use declarations in files including generated code.
This commit is contained in:
Jakob Stoklund Olesen
2017-08-18 14:14:23 -07:00
parent 6bcb24b3a6
commit c7b9bc1abf
6 changed files with 26 additions and 23 deletions

View File

@@ -3,13 +3,11 @@
//! A `Builder` provides a convenient interface for inserting instructions into a Cretonne
//! function. Many of its methods are generated from the meta language instruction definitions.
use ir;
use ir::types;
use ir::{InstructionData, DataFlowGraph};
use ir::{Opcode, Type, Inst, Value, Ebb, JumpTable, SigRef, FuncRef, StackSlot, GlobalVar,
ValueList, MemFlags};
use ir::immediates::{Imm64, Uimm8, Ieee32, Ieee64, Offset32, Uoffset32};
use ir::condcodes::{IntCC, FloatCC};
use isa::RegUnit;
use ir::{Opcode, Type, Inst, Value};
use isa;
/// Base trait for instruction builders.
///

View File

@@ -1,6 +1,5 @@
//! Encoding tables for RISC-V.
use ir::condcodes::IntCC;
use ir;
use isa;
use isa::constraints::*;

View File

@@ -17,7 +17,6 @@ use cursor::{Cursor, FuncCursor};
use dominator_tree::DominatorTree;
use flowgraph::ControlFlowGraph;
use ir;
use ir::condcodes::IntCC;
use isa::TargetIsa;
use bitset::BitSet;