Rename Cretonne to Cranelift!
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
[package]
|
||||
authors = ["The Cretonne Project Developers"]
|
||||
name = "cretonne-reader"
|
||||
authors = ["The Cranelift Project Developers"]
|
||||
name = "cranelift-reader"
|
||||
version = "0.13.0"
|
||||
description = "Cretonne textual IR reader"
|
||||
description = "Cranelift textual IR reader"
|
||||
license = "Apache-2.0 WITH LLVM-exception"
|
||||
documentation = "https://cretonne.readthedocs.io/"
|
||||
repository = "https://github.com/cretonne/cretonne"
|
||||
documentation = "https://cranelift.readthedocs.io/"
|
||||
repository = "https://github.com/cranelift/cranelift"
|
||||
readme = "README.md"
|
||||
|
||||
[dependencies]
|
||||
cretonne-codegen = { path = "../codegen", version = "0.13.0" }
|
||||
cranelift-codegen = { path = "../codegen", version = "0.13.0" }
|
||||
target-lexicon = "0.0.2"
|
||||
|
||||
[badges]
|
||||
maintenance = { status = "experimental" }
|
||||
travis-ci = { repository = "cretonne/cretonne" }
|
||||
travis-ci = { repository = "cranelift/cranelift" }
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
This crate library supports reading .cton files. This functionality is needed
|
||||
for testing [Cretonne](https://crates.io/crates/cretonne), but is not essential
|
||||
This crate library supports reading .clif files. This functionality is needed
|
||||
for testing [Cranelift](https://crates.io/crates/cranelift), but is not essential
|
||||
for a JIT compiler.
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
//! If a test case file contains `isa` commands, the tests will only be run against the specified
|
||||
//! ISAs. If the file contains no `isa` commands, the tests will be run against all supported ISAs.
|
||||
|
||||
use cretonne_codegen::isa::TargetIsa;
|
||||
use cretonne_codegen::settings::{Configurable, Flags, SetError};
|
||||
use cranelift_codegen::isa::TargetIsa;
|
||||
use cranelift_codegen::settings::{Configurable, Flags, SetError};
|
||||
use error::{Location, ParseResult};
|
||||
use testcommand::TestOption;
|
||||
|
||||
/// The ISA specifications in a `.cton` file.
|
||||
/// The ISA specifications in a `.clif` file.
|
||||
pub enum IsaSpec {
|
||||
/// The parsed file does not contain any `isa` commands, but it may contain `set` commands
|
||||
/// which are reflected in the finished `Flags` object.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Lexical analysis for .cton files.
|
||||
//! Lexical analysis for .clif files.
|
||||
|
||||
use cretonne_codegen::ir::types;
|
||||
use cretonne_codegen::ir::{Ebb, Value};
|
||||
use cranelift_codegen::ir::types;
|
||||
use cranelift_codegen::ir::{Ebb, Value};
|
||||
use error::Location;
|
||||
#[allow(unused_imports, deprecated)]
|
||||
use std::ascii::AsciiExt;
|
||||
@@ -479,8 +479,8 @@ impl<'a> Lexer<'a> {
|
||||
mod tests {
|
||||
use super::trailing_digits;
|
||||
use super::*;
|
||||
use cretonne_codegen::ir::types;
|
||||
use cretonne_codegen::ir::{Ebb, Value};
|
||||
use cranelift_codegen::ir::types;
|
||||
use cranelift_codegen::ir::{Ebb, Value};
|
||||
use error::Location;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Cretonne file reader library.
|
||||
//! Cranelift file reader library.
|
||||
//!
|
||||
//! The `cretonne_reader` library supports reading .cton files. This functionality is needed for
|
||||
//! testing Cretonne, but is not essential for a JIT compiler.
|
||||
//! The `cranelift_reader` library supports reading .clif files. This functionality is needed for
|
||||
//! testing Cranelift, but is not essential for a JIT compiler.
|
||||
|
||||
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
|
||||
#![warn(unused_import_braces, unstable_features)]
|
||||
@@ -15,7 +15,7 @@
|
||||
)
|
||||
)]
|
||||
|
||||
extern crate cretonne_codegen;
|
||||
extern crate cranelift_codegen;
|
||||
extern crate target_lexicon;
|
||||
|
||||
pub use error::{Location, ParseError, ParseResult};
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
//! Parser for .cton files.
|
||||
//! Parser for .clif files.
|
||||
|
||||
use cretonne_codegen::entity::EntityRef;
|
||||
use cretonne_codegen::ir;
|
||||
use cretonne_codegen::ir::entities::AnyEntity;
|
||||
use cretonne_codegen::ir::immediates::{Ieee32, Ieee64, Imm64, Offset32, Uimm32};
|
||||
use cretonne_codegen::ir::instructions::{InstructionData, InstructionFormat, VariableArgs};
|
||||
use cretonne_codegen::ir::types::VOID;
|
||||
use cretonne_codegen::ir::{
|
||||
use cranelift_codegen::entity::EntityRef;
|
||||
use cranelift_codegen::ir;
|
||||
use cranelift_codegen::ir::entities::AnyEntity;
|
||||
use cranelift_codegen::ir::immediates::{Ieee32, Ieee64, Imm64, Offset32, Uimm32};
|
||||
use cranelift_codegen::ir::instructions::{InstructionData, InstructionFormat, VariableArgs};
|
||||
use cranelift_codegen::ir::types::VOID;
|
||||
use cranelift_codegen::ir::{
|
||||
AbiParam, ArgumentExtension, ArgumentLoc, Ebb, ExtFuncData, ExternalName, FuncRef, Function,
|
||||
GlobalValue, GlobalValueData, Heap, HeapBase, HeapData, HeapStyle, JumpTable, JumpTableData,
|
||||
MemFlags, Opcode, SigRef, Signature, StackSlot, StackSlotData, StackSlotKind, Type, Value,
|
||||
ValueLoc,
|
||||
};
|
||||
use cretonne_codegen::isa::{self, Encoding, RegUnit, TargetIsa};
|
||||
use cretonne_codegen::packed_option::ReservedValue;
|
||||
use cretonne_codegen::settings::CallConv;
|
||||
use cretonne_codegen::{settings, timing};
|
||||
use cranelift_codegen::isa::{self, Encoding, RegUnit, TargetIsa};
|
||||
use cranelift_codegen::packed_option::ReservedValue;
|
||||
use cranelift_codegen::settings::CallConv;
|
||||
use cranelift_codegen::{settings, timing};
|
||||
use error::{Location, ParseError, ParseResult};
|
||||
use isaspec;
|
||||
use lexer::{LexError, Lexer, LocatedError, LocatedToken, Token};
|
||||
@@ -2291,11 +2291,11 @@ impl<'a> Parser<'a> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use cretonne_codegen::ir::entities::AnyEntity;
|
||||
use cretonne_codegen::ir::types;
|
||||
use cretonne_codegen::ir::StackSlotKind;
|
||||
use cretonne_codegen::ir::{ArgumentExtension, ArgumentPurpose};
|
||||
use cretonne_codegen::settings::CallConv;
|
||||
use cranelift_codegen::ir::entities::AnyEntity;
|
||||
use cranelift_codegen::ir::types;
|
||||
use cranelift_codegen::ir::StackSlotKind;
|
||||
use cranelift_codegen::ir::{ArgumentExtension, ArgumentPurpose};
|
||||
use cranelift_codegen::settings::CallConv;
|
||||
use error::ParseError;
|
||||
use isaspec::IsaSpec;
|
||||
use testfile::{Comment, Details};
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
//! The `SourceMap` struct defined in this module makes this mapping available
|
||||
//! to parser clients.
|
||||
|
||||
use cretonne_codegen::ir::entities::AnyEntity;
|
||||
use cretonne_codegen::ir::{Ebb, FuncRef, GlobalValue, Heap, JumpTable, SigRef, StackSlot, Value};
|
||||
use cranelift_codegen::ir::entities::AnyEntity;
|
||||
use cranelift_codegen::ir::{Ebb, FuncRef, GlobalValue, Heap, JumpTable, SigRef, StackSlot, Value};
|
||||
use error::{Location, ParseResult};
|
||||
use lexer::split_entity_name;
|
||||
use std::collections::HashMap;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//! Test commands.
|
||||
//!
|
||||
//! A `.cton` file can begin with one or more *test commands* which specify what is to be tested.
|
||||
//! A `.clif` file can begin with one or more *test commands* which specify what is to be tested.
|
||||
//! The general syntax is:
|
||||
//!
|
||||
//! <pre>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//! Data structures representing a parsed test file.
|
||||
//!
|
||||
//! A test file is a `.cton` file which contains test commands and settings for running a
|
||||
//! A test file is a `.clif` file which contains test commands and settings for running a
|
||||
//! file-based test case.
|
||||
//!
|
||||
|
||||
use cretonne_codegen::ir::entities::AnyEntity;
|
||||
use cretonne_codegen::ir::Function;
|
||||
use cranelift_codegen::ir::entities::AnyEntity;
|
||||
use cranelift_codegen::ir::Function;
|
||||
use error::Location;
|
||||
use isaspec::IsaSpec;
|
||||
use sourcemap::SourceMap;
|
||||
@@ -13,7 +13,7 @@ use testcommand::TestCommand;
|
||||
|
||||
/// A parsed test case.
|
||||
///
|
||||
/// This is the result of parsing a `.cton` file which contains a number of test commands and ISA
|
||||
/// This is the result of parsing a `.clif` file which contains a number of test commands and ISA
|
||||
/// specs followed by the functions that should be tested.
|
||||
pub struct TestFile<'a> {
|
||||
/// `test foo ...` lines.
|
||||
|
||||
Reference in New Issue
Block a user