Rename the 'cfg' module to 'flowgraph'.
The 'cfg' name was easy to confuse with 'configuration'.
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
//! contexts concurrently. Typically, you would have one context per compilation thread and only a
|
||||
//! single ISA instance.
|
||||
|
||||
use cfg::ControlFlowGraph;
|
||||
use dominator_tree::DominatorTree;
|
||||
use flowgraph::ControlFlowGraph;
|
||||
use ir::Function;
|
||||
use isa::TargetIsa;
|
||||
use legalize_function;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! A Dominator Tree represented as mappings of Ebbs to their immediate dominator.
|
||||
|
||||
use cfg::{ControlFlowGraph, BasicBlock};
|
||||
use ir::{Ebb, Inst, Function, Layout, ProgramOrder};
|
||||
use entity_map::EntityMap;
|
||||
use flowgraph::{ControlFlowGraph, BasicBlock};
|
||||
use ir::{Ebb, Inst, Function, Layout, ProgramOrder};
|
||||
use packed_option::PackedOption;
|
||||
|
||||
use std::cmp::Ordering;
|
||||
@@ -222,9 +222,9 @@ impl DominatorTree {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use flowgraph::ControlFlowGraph;
|
||||
use ir::{Function, InstBuilder, Cursor, types};
|
||||
use cfg::ControlFlowGraph;
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn empty() {
|
||||
|
||||
@@ -10,7 +10,7 @@ pub use write::write_function;
|
||||
/// Version number of the cretonne crate.
|
||||
pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
pub mod cfg;
|
||||
pub mod flowgraph;
|
||||
pub mod dominator_tree;
|
||||
pub mod entity_list;
|
||||
pub mod entity_map;
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
//! avoids allocating data structures independently for each function begin compiled.
|
||||
|
||||
use dominator_tree::DominatorTree;
|
||||
use flowgraph::ControlFlowGraph;
|
||||
use ir::Function;
|
||||
use isa::TargetIsa;
|
||||
use regalloc::coloring::Coloring;
|
||||
use regalloc::live_value_tracker::LiveValueTracker;
|
||||
use regalloc::liveness::Liveness;
|
||||
use isa::TargetIsa;
|
||||
use cfg::ControlFlowGraph;
|
||||
|
||||
/// Persistent memory allocations for register allocation.
|
||||
pub struct Context {
|
||||
|
||||
@@ -175,12 +175,12 @@
|
||||
//!
|
||||
//! There is some room for improvement.
|
||||
|
||||
use cfg::ControlFlowGraph;
|
||||
use flowgraph::ControlFlowGraph;
|
||||
use ir::dfg::ValueDef;
|
||||
use ir::{Function, Value, Inst, Ebb};
|
||||
use isa::{TargetIsa, RecipeConstraints};
|
||||
use regalloc::liverange::LiveRange;
|
||||
use regalloc::affinity::Affinity;
|
||||
use regalloc::liverange::LiveRange;
|
||||
use sparse_map::SparseMap;
|
||||
|
||||
/// A set of live ranges, indexed by value number.
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
//! - Swizzle and shuffle instructions take a variable number of lane arguments. The number
|
||||
//! of arguments must match the destination type, and the lane indexes must be in range.
|
||||
|
||||
use ir::{types, Function, ValueDef, Ebb, Inst, SigRef, FuncRef, ValueList, JumpTable, Value};
|
||||
use ir::instructions::{InstructionFormat, BranchInfo};
|
||||
use ir::entities::AnyEntity;
|
||||
use cfg::ControlFlowGraph;
|
||||
use dominator_tree::DominatorTree;
|
||||
use flowgraph::ControlFlowGraph;
|
||||
use ir::entities::AnyEntity;
|
||||
use ir::instructions::{InstructionFormat, BranchInfo};
|
||||
use ir::{types, Function, ValueDef, Ebb, Inst, SigRef, FuncRef, ValueList, JumpTable, Value};
|
||||
use std::fmt::{self, Display, Formatter};
|
||||
use std::result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user