llvm-mca-macros
Procedural macros to generate marker comments for LLVM's Machine Code Analyzer.
These macros generate markers after the function epilogue and before the function prologue. If more granularity is needed, you can use the llvm-mca crate instead.
Usage
By default, llvm_mca will disable inlining. For example, this:
use llvm_mca;
will generate the equivalent of:
If inlining is desired, the allow_inline attribute can be specified:
use llvm_mca;
This will generate the equivalent of:
Generating assembly
You must set the RUSTFLAGS="--emit asm" option when building your project with cargo. For example:
RUSTFLAGS="--emit asm"
This will output assembly files in target/*/deps