fn create_bytecode_processing_pipeline(options: &Options) -> FunctionTargetPipeline {
    let mut res = FunctionTargetPipeline::default();

    // Add processors in order they are executed.
    if options.trans_v2 {
        res.add_processor(DebugInstrumenter::new());
        res.add_processor(EliminateImmRefsProcessor::new());
        res.add_processor(EliminateMutRefsProcessor::new());
        res.add_processor(ReachingDefProcessor::new());
        res.add_processor(LiveVarAnalysisProcessor::new());
        res.add_processor(BorrowAnalysisProcessor::new());
        res.add_processor(MemoryInstrumentationProcessor::new());
        res.add_processor(CleanAndOptimizeProcessor::new());
        res.add_processor(UsageProcessor::new());
        res.add_processor(SpecInstrumenter::new());
    } else {
        res.add_processor(EliminateImmRefsProcessor::new());
        res.add_processor(EliminateMutRefsProcessor::new());
        res.add_processor(ReachingDefProcessor::new());
        res.add_processor(LiveVarAnalysisProcessor::new());
        res.add_processor(BorrowAnalysisProcessor::new());
        res.add_processor(MemoryInstrumentationProcessor::new());
        res.add_processor(CleanAndOptimizeProcessor::new());
        res.add_processor(UsageProcessor::new());
        res.add_processor(PackedTypesProcessor::new());
    }

    res
}
/// Function to create the transformation pipeline.
Function to create the transformation pipeline.
Function to create the transformation pipeline .
fn create_bytecode_processing_pipeline(options: &Options) -> FunctionTargetPipeline {
    let mut res = FunctionTargetPipeline::default();
    // Add processors in order they are executed.
    if options.trans_v2 {
        res.add_processor(DebugInstrumenter::new());
        res.add_processor(EliminateImmRefsProcessor::new());
        res.add_processor(EliminateMutRefsProcessor::new());
        res.add_processor(ReachingDefProcessor::new());
        res.add_processor(LiveVarAnalysisProcessor::new());
        res.add_processor(BorrowAnalysisProcessor::new());
        res.add_processor(MemoryInstrumentationProcessor::new());
        res.add_processor(CleanAndOptimizeProcessor::new());
        res.add_processor(UsageProcessor::new());
        res.add_processor(SpecInstrumenter::new());
    } else {
        res.add_processor(EliminateImmRefsProcessor::new());
        res.add_processor(EliminateMutRefsProcessor::new());
        res.add_processor(ReachingDefProcessor::new());
        res.add_processor(LiveVarAnalysisProcessor::new());
        res.add_processor(BorrowAnalysisProcessor::new());
        res.add_processor(MemoryInstrumentationProcessor::new());
        res.add_processor(CleanAndOptimizeProcessor::new());
        res.add_processor(UsageProcessor::new());
        res.add_processor(PackedTypesProcessor::new());
    }
    res
}
fn create_bytecode_processing_pipeline ( options : & Options ) -> FunctionTargetPipeline { let mut res = FunctionTargetPipeline :: default ( ) ; // Add processors in order they are executed. if options . trans_v2 { res . add_processor ( DebugInstrumenter :: new ( ) ) ; res . add_processor ( EliminateImmRefsProcessor :: new ( ) ) ; res . add_processor ( EliminateMutRefsProcessor :: new ( ) ) ; res . add_processor ( ReachingDefProcessor :: new ( ) ) ; res . add_processor ( LiveVarAnalysisProcessor :: new ( ) ) ; res . add_processor ( BorrowAnalysisProcessor :: new ( ) ) ; res . add_processor ( MemoryInstrumentationProcessor :: new ( ) ) ; res . add_processor ( CleanAndOptimizeProcessor :: new ( ) ) ; res . add_processor ( UsageProcessor :: new ( ) ) ; res . add_processor ( SpecInstrumenter :: new ( ) ) ; } else { res . add_processor ( EliminateImmRefsProcessor :: new ( ) ) ; res . add_processor ( EliminateMutRefsProcessor :: new ( ) ) ; res . add_processor ( ReachingDefProcessor :: new ( ) ) ; res . add_processor ( LiveVarAnalysisProcessor :: new ( ) ) ; res . add_processor ( BorrowAnalysisProcessor :: new ( ) ) ; res . add_processor ( MemoryInstrumentationProcessor :: new ( ) ) ; res . add_processor ( CleanAndOptimizeProcessor :: new ( ) ) ; res . add_processor ( UsageProcessor :: new ( ) ) ; res . add_processor ( PackedTypesProcessor :: new ( ) ) ; } res }
Function to create the transformation pipeline.
Function to create the transformation pipeline .
options
&Options