Skip to content

Commit

Permalink
Merge pull request #970 from ltratt/move_promote
Browse files Browse the repository at this point in the history
Move promote.rs to ykrt
  • Loading branch information
vext01 authored Feb 9, 2024
2 parents 7443540 + a6e30d1 commit 77768c3
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ regex = "1.9"
tempfile = "3.9.0"
ykbuild = { path = "../ykbuild" }
ykrt = { path = "../ykrt", features = ["yk_testing", "yk_jitstate_debug"] }
yktracec = { path = "../yktracec", features = ["yk_testing"] }

[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
lang_tester = "0.8"
ykcapi = { path = "../ykcapi", features = ["yk_testing"] }
yktracec = { path = "../yktracec", features = ["yk_testing"] }
ykrt = { path = "../ykrt", features = ["yk_testing", "yk_jitstate_debug"] }

[build-dependencies]
Expand Down
2 changes: 0 additions & 2 deletions tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use std::{
};
use ykbuild::ykllvm_bin;

pub use yktracec::promote::__yk_lookup_promote_usize;

const TEMPDIR_SUBST: &str = "%%TEMPDIR%%";
pub static EXTRA_LINK: LazyLock<HashMap<&'static str, Vec<ExtraLinkage>>> = LazyLock::new(|| {
let mut map = HashMap::new();
Expand Down
1 change: 1 addition & 0 deletions ykrt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mod deopt;
mod frame;
mod location;
pub(crate) mod mt;
pub mod promote;
pub(crate) mod thread_intercept;
pub mod trace;
mod ykstats;
Expand Down
2 changes: 1 addition & 1 deletion ykrt/src/mt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ use crate::print_jit_state;
use crate::{
compile::{default_compiler, CompilationError, CompiledTrace, Compiler, GuardId},
location::{HotLocation, HotLocationKind, Location, TraceFailed},
promote,
trace::{default_tracer, AOTTraceIterator, TraceCollector, Tracer},
ykstats::{TimingState, YkStats},
};
use yktracec::promote;

// The HotThreshold must be less than a machine word wide for [`Location::Location`] to do its
// pointer tagging thing. We therefore choose a type which makes this statically clear to
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions yktracec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use libc::{c_void, size_t};
use std::ffi::{c_char, c_int};

pub mod promote;

extern "C" {
pub fn __yktracec_irtrace_compile(
func_names: *const *const c_char,
Expand Down

0 comments on commit 77768c3

Please sign in to comment.