Skip to content

Add dump-mir=<val> options #518

Open
@spastorino

Description

@spastorino

rustc +nightly -Zdump-mir=<val> -Zmir-opt-level=3

-Z                              dump-mir=val -- dump MIR state to file.                                 
    `val` is used to select which passes and functions to dump. For example:                                        
    `all` matches all passes and functions,                                                                           
    `foo` matches all passes for functions whose name contains 'foo',                                                    
    `foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',   
    `foo | bar` all passes for function names containing 'foo' or 'bar'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    -Zdump-mirDebug flag: MIR dumpA-MIRArea: mid-level intermediate representation (MIR)A-devexArea: contributor developer experienceA-mir-optArea: MIR optimizationsC-enhancementCategory: enhancementE-mediumDifficulty: might require some prior knowledge or code readingT-compilerRelevant to compiler team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions