Skip to content

Commit b02187a

Browse files
committed
feat: rename
1 parent 73c6c81 commit b02187a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

libs/@local/hashql/compiletest/src/suite/mir_pass_transform_pre_inline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use hashql_mir::{
1111
context::MirContext,
1212
def::{DefId, DefIdSlice, DefIdVec},
1313
intern::Interner,
14-
pass::{Changed, GlobalTransformPass as _, GlobalTransformState, transform::PreInlining},
14+
pass::{Changed, GlobalTransformPass as _, GlobalTransformState, transform::PreInline},
1515
};
1616

1717
use super::{RunContext, Suite, SuiteDiagnostic, common::process_issues, mir_reify::mir_reify};
@@ -187,7 +187,7 @@ pub(crate) fn mir_pass_transform_pre_inline<'heap>(
187187
};
188188
let mut scratch = Scratch::new();
189189

190-
let mut pass = PreInlining::new_in(&mut scratch);
190+
let mut pass = PreInline::new_in(&mut scratch);
191191
let _: Changed = pass.run(
192192
&mut context,
193193
&mut GlobalTransformState::new_in(&bodies, heap),

libs/@local/hashql/mir/benches/transform.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use hashql_mir::{
2424
pass::{
2525
GlobalTransformPass as _, GlobalTransformState, TransformPass as _,
2626
transform::{
27-
CfgSimplify, DeadStoreElimination, ForwardSubstitution, InstSimplify, PreInlining,
27+
CfgSimplify, DeadStoreElimination, ForwardSubstitution, InstSimplify, PreInline,
2828
},
2929
},
3030
};
@@ -505,7 +505,7 @@ fn pipeline(criterion: &mut Criterion) {
505505
run_bencher(bencher, create_linear_cfg, |context, body, scratch| {
506506
let bodies = IdSlice::from_raw_mut(core::slice::from_mut(body));
507507

508-
PreInlining::new_in(scratch).run(
508+
PreInline::new_in(scratch).run(
509509
context,
510510
&mut GlobalTransformState::new_in(bodies, context.heap),
511511
bodies,
@@ -516,7 +516,7 @@ fn pipeline(criterion: &mut Criterion) {
516516
run_bencher(bencher, create_diamond_cfg, |context, body, scratch| {
517517
let bodies = IdSlice::from_raw_mut(core::slice::from_mut(body));
518518

519-
PreInlining::new_in(scratch).run(
519+
PreInline::new_in(scratch).run(
520520
context,
521521
&mut GlobalTransformState::new_in(bodies, context.heap),
522522
bodies,
@@ -527,7 +527,7 @@ fn pipeline(criterion: &mut Criterion) {
527527
run_bencher(bencher, create_complex_cfg, |context, body, scratch| {
528528
let bodies = IdSlice::from_raw_mut(core::slice::from_mut(body));
529529

530-
PreInlining::new_in(scratch).run(
530+
PreInline::new_in(scratch).run(
531531
context,
532532
&mut GlobalTransformState::new_in(bodies, context.heap),
533533
bodies,

libs/@local/hashql/mir/src/pass/transform/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ pub use self::{
2121
forward_substitution::ForwardSubstitution,
2222
inline::{Inline, InlineConfig, InlineCostEstimationConfig, InlineHeuristicsConfig},
2323
inst_simplify::InstSimplify,
24-
pre_inline::PreInlining,
24+
pre_inline::PreInline,
2525
ssa_repair::SsaRepair,
2626
};

libs/@local/hashql/mir/src/pass/transform/pre_inline.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ use crate::{
4545
/// This pass manages its own per-body change tracking and does not populate the caller-provided
4646
/// [`GlobalTransformState`]. Callers receive a combined [`Changed`] result indicating whether any
4747
/// body was modified.
48-
pub struct PreInlining<A: Allocator> {
48+
pub struct PreInline<A: Allocator> {
4949
alloc: A,
5050
}
5151

52-
impl<A: BumpAllocator> PreInlining<A> {
52+
impl<A: BumpAllocator> PreInline<A> {
5353
/// Creates a new pre-inlining pass with the given allocator.
5454
///
5555
/// The allocator is used for temporary data structures within sub-passes and is reset
@@ -180,7 +180,7 @@ impl<A: BumpAllocator> PreInlining<A> {
180180

181181
const MAX_ITERATIONS: usize = 16;
182182

183-
impl<'env, 'heap, A: BumpAllocator> GlobalTransformPass<'env, 'heap> for PreInlining<A> {
183+
impl<'env, 'heap, A: BumpAllocator> GlobalTransformPass<'env, 'heap> for PreInline<A> {
184184
#[expect(clippy::integer_division_remainder_used)]
185185
fn run(
186186
&mut self,

0 commit comments

Comments
 (0)