Rename 'cton_*' library names to match the 'cretonne_*' crate names.

This renames `cton_frontend` to `cretonne_frontend` and so on.

This fixes the first part of #287.
This commit is contained in:
Dan Gohman
2018-04-17 07:55:59 -07:00
parent f552c8768e
commit 7767186dd0
38 changed files with 42 additions and 62 deletions

View File

@@ -10,11 +10,11 @@
#[macro_use(dbg)]
extern crate cretonne;
extern crate cton_reader;
extern crate cretonne_reader;
extern crate filecheck;
extern crate num_cpus;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use runner::TestRunner;
use std::path::Path;
use std::time;

View File

@@ -6,8 +6,8 @@ use cretonne::print_errors::pretty_verifier_error;
use cretonne::settings::Flags;
use cretonne::timing;
use cretonne::verify_function;
use cton_reader::IsaSpec;
use cton_reader::parse_test;
use cretonne_reader::IsaSpec;
use cretonne_reader::parse_test;
use std::borrow::Cow;
use std::fs;
use std::io::{self, Read};

View File

@@ -3,7 +3,7 @@
use cretonne::ir::Function;
use cretonne::isa::TargetIsa;
use cretonne::settings::{Flags, FlagsOrIsa};
use cton_reader::{Comment, Details};
use cretonne_reader::{Comment, Details};
use filecheck::{Checker, CheckerBuilder, NO_VARIABLES};
use std::borrow::Cow;
use std::result;

View File

@@ -9,7 +9,7 @@ use cretonne::dbg::DisplayList;
use cretonne::ir;
use cretonne::ir::entities::AnyEntity;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use match_directive::match_directive;
use std::borrow::Cow;
use std::collections::HashMap;

View File

@@ -1,7 +1,7 @@
//! The `cat` subtest.
use cretonne::ir::Function;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use subtest::{self, Context, Result as STResult, SubTest};

View File

@@ -6,7 +6,7 @@ use cretonne;
use cretonne::binemit;
use cretonne::ir;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -8,7 +8,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -16,7 +16,7 @@ use cretonne::dominator_tree::{DominatorTree, DominatorTreePreorder};
use cretonne::flowgraph::ControlFlowGraph;
use cretonne::ir::Function;
use cretonne::ir::entities::AnyEntity;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use match_directive::match_directive;
use std::borrow::{Borrow, Cow};
use std::collections::HashMap;

View File

@@ -6,7 +6,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -8,7 +8,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -5,7 +5,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -5,7 +5,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -7,7 +7,7 @@ use std::borrow::Cow;
use cretonne::cfg_printer::CFGPrinter;
use cretonne::ir::Function;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use subtest::{self, Context, Result as STResult, SubTest};
/// Object implementing the `test print-cfg` sub-test.

View File

@@ -8,7 +8,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -8,7 +8,7 @@
use cretonne;
use cretonne::ir::Function;
use cretonne::print_errors::pretty_error;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
use subtest::{run_filecheck, Context, Result, SubTest};

View File

@@ -11,7 +11,7 @@
use cretonne::ir::Function;
use cretonne::verify_function;
use cton_reader::TestCommand;
use cretonne_reader::TestCommand;
use match_directive::match_directive;
use std::borrow::{Borrow, Cow};
use subtest::{Context, Result, SubTest};