Rename Cretonne to Cranelift!
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
[package]
|
||||
name = "cretonne-module"
|
||||
name = "cranelift-module"
|
||||
version = "0.13.0"
|
||||
authors = ["The Cretonne Project Developers"]
|
||||
description = "Support for linking functions and data with Cretonne"
|
||||
repository = "https://github.com/cretonne/cretonne"
|
||||
documentation = "https://cretonne.readthedocs.io/"
|
||||
authors = ["The Cranelift Project Developers"]
|
||||
description = "Support for linking functions and data with Cranelift"
|
||||
repository = "https://github.com/cranelift/cranelift"
|
||||
documentation = "https://cranelift.readthedocs.io/"
|
||||
license = "Apache-2.0 WITH LLVM-exception"
|
||||
readme = "README.md"
|
||||
|
||||
[dependencies]
|
||||
cretonne-codegen = { path = "../codegen", version = "0.13.0", default-features = false }
|
||||
cretonne-entity = { path = "../entity", version = "0.13.0", default-features = false }
|
||||
cranelift-codegen = { path = "../codegen", version = "0.13.0", default-features = false }
|
||||
cranelift-entity = { path = "../entity", version = "0.13.0", default-features = false }
|
||||
hashmap_core = { version = "0.1.8", optional = true }
|
||||
failure = "0.1.1"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["cretonne-codegen/std", "cretonne-entity/std"]
|
||||
core = ["hashmap_core", "cretonne-codegen/core"]
|
||||
std = ["cranelift-codegen/std", "cranelift-entity/std"]
|
||||
core = ["hashmap_core", "cranelift-codegen/core"]
|
||||
|
||||
[badges]
|
||||
maintenance = { status = "experimental" }
|
||||
travis-ci = { repository = "cretonne/cretonne" }
|
||||
travis-ci = { repository = "cranelift/cranelift" }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
This crate provides the `Module` trait, which provides an interface for
|
||||
multiple functions and data to be emitted with
|
||||
[Cretonne](https://crates.io/crates/cretonne) and then linked together.
|
||||
[Cranelift](https://crates.io/crates/cranelift) and then linked together.
|
||||
|
||||
This crate is structured as an optional layer on top of cretonne-codegen.
|
||||
This crate is structured as an optional layer on top of cranelift-codegen.
|
||||
It provides additional functionality, such as linking, however users that
|
||||
require greater flexibility don't need to use it.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Defines the `Backend` trait.
|
||||
|
||||
use cretonne_codegen::isa::TargetIsa;
|
||||
use cretonne_codegen::Context;
|
||||
use cretonne_codegen::{binemit, ir};
|
||||
use cranelift_codegen::isa::TargetIsa;
|
||||
use cranelift_codegen::Context;
|
||||
use cranelift_codegen::{binemit, ir};
|
||||
use std::marker;
|
||||
use DataContext;
|
||||
use Linkage;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Defines `DataContext`.
|
||||
|
||||
use cretonne_codegen::binemit::{Addend, CodeOffset};
|
||||
use cretonne_codegen::entity::PrimaryMap;
|
||||
use cretonne_codegen::ir;
|
||||
use cranelift_codegen::binemit::{Addend, CodeOffset};
|
||||
use cranelift_codegen::entity::PrimaryMap;
|
||||
use cranelift_codegen::ir;
|
||||
use std::boxed::Box;
|
||||
use std::vec::Vec;
|
||||
|
||||
@@ -59,7 +59,7 @@ pub struct DataDescription {
|
||||
pub data_relocs: Vec<(CodeOffset, ir::GlobalValue, Addend)>,
|
||||
}
|
||||
|
||||
/// This is to data objects what cretonne_codegen::Context is to functions.
|
||||
/// This is to data objects what cranelift_codegen::Context is to functions.
|
||||
pub struct DataContext {
|
||||
description: DataDescription,
|
||||
}
|
||||
@@ -147,7 +147,7 @@ impl DataContext {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use cretonne_codegen::ir;
|
||||
use cranelift_codegen::ir;
|
||||
use {DataContext, Init, Writability};
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Top-level lib.rs for `cretonne_module`.
|
||||
//! Top-level lib.rs for `cranelift_module`.
|
||||
|
||||
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
|
||||
#![warn(unused_import_braces)]
|
||||
@@ -21,9 +21,9 @@
|
||||
extern crate alloc;
|
||||
|
||||
#[macro_use]
|
||||
extern crate cretonne_codegen;
|
||||
extern crate cranelift_codegen;
|
||||
#[macro_use]
|
||||
extern crate cretonne_entity;
|
||||
extern crate cranelift_entity;
|
||||
#[macro_use]
|
||||
extern crate failure;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// TODO: Factor out `ir::Function`'s `ext_funcs` and `global_values` into a struct
|
||||
// shared with `DataContext`?
|
||||
|
||||
use cretonne_codegen::entity::{EntityRef, PrimaryMap};
|
||||
use cretonne_codegen::{binemit, ir, CodegenError, Context};
|
||||
use cranelift_codegen::entity::{EntityRef, PrimaryMap};
|
||||
use cranelift_codegen::{binemit, ir, CodegenError, Context};
|
||||
use data_context::DataContext;
|
||||
use std::borrow::ToOwned;
|
||||
use std::collections::HashMap;
|
||||
@@ -131,7 +131,7 @@ pub enum ModuleError {
|
||||
/// Indicates an identifier was defined, but was declared as an import
|
||||
#[fail(display = "Invalid to define identifier declared as an import: {}", _0)]
|
||||
InvalidImportDefinition(String),
|
||||
/// Wraps a `cretonne-codegen` error
|
||||
/// Wraps a `cranelift-codegen` error
|
||||
#[fail(display = "Compilation error: {}", _0)]
|
||||
Compilation(CodegenError),
|
||||
/// Wraps a generic error from a backend
|
||||
|
||||
Reference in New Issue
Block a user