<commit_before>
use pass;
use ir;

/// An IR strength reduction pass.
pub struct Inliner;

impl pass::Metadata for Inliner
{
    fn id(&self) -> pass::Id { pass::Id(0x32bbc291) }
    fn name(&self) -> &'static str { "inliner" }
}

impl pass::Transform<ir::Value> for Inliner
{
}

// TODO: blamket impl for all passes
impl Into<pass::Info<ir::Value>> for Box<Inliner>
{
    fn into(self) -> pass::Info<ir::Value> {
        pass::Info::Transform(self)
    }
}

pub fn inline(inst: ir::Instruction) -> ir::Value {
    match inst {
        ir::Instruction::Call(i) => self::inline_call(i),
        _ => panic!("{} instructions cannot be inlined"),
    }
}

pub fn inline_call(inst: ir::instruction::Call) -> ir::Value {
    unimplemented!();
}<commit_msg>Add stub implementation for inliner pass<commit_after>
use pass;
use ir;

/// An IR strength reduction pass.
pub struct Inliner;

impl pass::Metadata for Inliner
{
    fn id(&self) -> pass::Id { pass::Id(0x32bbc291) }
    fn name(&self) -> &'static str { "inliner" }
}

impl pass::Transform<ir::Value> for Inliner
{
    fn run_function(&mut self, func: ir::Function)
        -> ir::Function {
        func
    }
}

// TODO: blamket impl for all passes
impl Into<pass::Info<ir::Value>> for Box<Inliner>
{
    fn into(self) -> pass::Info<ir::Value> {
        pass::Info::Transform(self)
    }
}

pub fn inline(inst: ir::Instruction) -> ir::Value {
    match inst {
        ir::Instruction::Call(i) => self::inline_call(i),
        _ => panic!("{} instructions cannot be inlined"),
    }
}

pub fn inline_call(_inst: ir::instruction::Call) -> ir::Value {
    unimplemented!();
}
{'fraction_non_alphanumeric': 0.17035670356703567, 'fraction_numerical': 0.007380073800738007, 'mean_word_length': 3.5069252077562325, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5192380', 'n_tokens_mistral': 569, 'n_tokens_neox': 554, 'n_words': 142}