Change printer based on the string IR from unwrapAndPrint.

Synopsis

Declared in <llvm/Passes/StandardInstrumentations.h>

class IRChangedPrinter
    : public TextChangeReporter<std::string>

Description

The string representation is stored in a std::string to preserve it as the IR changes in each pass. Note that the banner is included in this representation but it is massaged before reporting.

Base Classes

Name

Description

TextChangeReporter<std::string>

Textual change reporter that prints banners and no‐change/filter messages.

Member Functions

Name

Description

IRChangedPrinter [constructor]

Construct a string‐based IR change printer.

~IRChangedPrinter [destructor] [virtual]

Destroy this IR change printer.

registerCallbacks

Register change‐reporting callbacks on PIC.

Protected Member Functions

Name

Description

generateIRRepresentation [virtual]

Capture the string representation of IR for PassID into Output.

handleAfter [virtual]

Print the before/after string IR when an interesting unit changed.

handleFiltered [virtual]

Report that the IR was filtered out.

handleIgnored [virtual]

Report that the pass was ignored.

handleInitialIR [virtual]

Print a module dump of the first IR that is changed.

handleInvalidated [virtual]

Report that the pass was invalidated.

omitAfter [virtual]

Report that the IR was omitted because it did not change.

Protected Data Members

Name

Description

Out

Output stream used for textual change banners and reports.

Derived Classes

Name

Description

IRChangedTester

Tester that asserts when interesting IR changes under print‐changed.

Created with MrDocs