llvm::InlineCostAnnotationPrinterPass

Pass that prints per-instruction inline cost annotations for debugging.

Synopsis

Declared in <llvm/Analysis/InlineCost.h>

struct InlineCostAnnotationPrinterPass
    : RequiredPassInfoMixin<InlineCostAnnotationPrinterPass>

Description

This pass is used to annotate instructions during the inline process for debugging and analysis. The main purpose of the pass is to see and test inliner's decisions when creating new optimizations to InlineCost.

Base Classes

NameDescription
RequiredPassInfoMixin<InlineCostAnnotationPrinterPass>A CRTP mix-in for passes that should not be skipped.

Member Functions

NameDescription
InlineCostAnnotationPrinterPass [constructor]Construct a printer that writes annotations to OS.
run Print inline-cost annotations for every viable call in F.

Static Member Functions

NameDescription
isRequired Return true; required passes cannot be skipped.

Data Members

NameDescription
OS Stream that receives the inline-cost annotation dump.