Skip to content

Commit

Permalink
Move promote.rs from yktracec to ykrt.
Browse files Browse the repository at this point in the history
Promotion is a run-time concept that can be used by multiple backends,
so it doesn't make sense for it to live in yktracec.
  • Loading branch information
ltratt committed Feb 9, 2024
1 parent 0788da5 commit a6e30d1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
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 a6e30d1

Please sign in to comment.