Rename Cretonne to Cranelift!

This commit is contained in:
Dan Gohman
2018-07-13 09:01:28 -07:00
parent 19a636af96
commit f4dbd38a4c
306 changed files with 977 additions and 975 deletions

View File

@@ -1,13 +1,13 @@
//! Defines `SimpleJITBackend`.
use cretonne_codegen::binemit::{Addend, CodeOffset, NullTrapSink, Reloc, RelocSink};
use cretonne_codegen::isa::TargetIsa;
use cretonne_codegen::{self, ir, settings};
use cretonne_module::{
use cranelift_codegen::binemit::{Addend, CodeOffset, NullTrapSink, Reloc, RelocSink};
use cranelift_codegen::isa::TargetIsa;
use cranelift_codegen::{self, ir, settings};
use cranelift_module::{
Backend, DataContext, DataDescription, Init, Linkage, ModuleNamespace, ModuleResult,
Writability,
};
use cretonne_native;
use cranelift_native;
use libc;
use memory::Memory;
use std::ffi::CString;
@@ -24,7 +24,7 @@ pub struct SimpleJITBuilder {
impl SimpleJITBuilder {
/// Create a new `SimpleJITBuilder`.
pub fn new() -> Self {
let (flag_builder, isa_builder) = cretonne_native::builders().unwrap_or_else(|_| {
let (flag_builder, isa_builder) = cranelift_native::builders().unwrap_or_else(|_| {
panic!("host machine is not a supported target");
});
let isa = isa_builder.finish(settings::Flags::new(flag_builder));
@@ -117,7 +117,7 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
fn define_function(
&mut self,
_name: &str,
ctx: &cretonne_codegen::Context,
ctx: &cranelift_codegen::Context,
_namespace: &ModuleNamespace<Self>,
code_size: u32,
) -> ModuleResult<Self::CompiledFunction> {

View File

@@ -1,4 +1,4 @@
//! Top-level lib.rs for `cretonne_simplejit`.
//! Top-level lib.rs for `cranelift_simplejit`.
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
#![warn(unused_import_braces, unstable_features)]
@@ -12,9 +12,9 @@
)
)]
extern crate cretonne_codegen;
extern crate cretonne_module;
extern crate cretonne_native;
extern crate cranelift_codegen;
extern crate cranelift_module;
extern crate cranelift_native;
extern crate errno;
extern crate libc;
extern crate region;