LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
llvm::ChangedIRComparer Class Reference

#include "llvm/Passes/StandardInstrumentations.h"

Collaboration diagram for llvm::ChangedIRComparer:
Collaboration graph

Public Member Functions

 ChangedIRComparer (raw_ostream &OS, const ChangedIRData &Before, const ChangedIRData &After, bool ColourMode)
void compare (Any IR, StringRef Prefix, StringRef PassID, StringRef Name)

Static Public Member Functions

static void analyzeIR (Any IR, ChangedIRData &Data)

Protected Member Functions

void handleFunctionCompare (StringRef Name, StringRef Prefix, StringRef PassID, bool InModule, const ChangedFuncData &Before, const ChangedFuncData &After)

Static Protected Member Functions

static const ModulegetModuleForComparison (Any IR)
static bool generateFunctionData (ChangedIRData &Data, const Function &F)

Protected Attributes

const ChangedIRDataBefore
const ChangedIRDataAfter
bool UseColour

Detailed Description

Definition at line 343 of file StandardInstrumentations.h.

Constructor & Destructor Documentation

◆ ChangedIRComparer()

llvm::ChangedIRComparer::ChangedIRComparer ( raw_ostream OS,
const ChangedIRData Before,
const ChangedIRData After,
bool  ColourMode 

Definition at line 345 of file StandardInstrumentations.h.

Member Function Documentation

◆ analyzeIR()

void ChangedIRComparer::analyzeIR ( Any  IR,
ChangedIRData Data 

◆ compare()

void ChangedIRComparer::compare ( Any  IR,
StringRef  Prefix,
StringRef  PassID,
StringRef  Name 

◆ generateFunctionData()

bool ChangedIRComparer::generateFunctionData ( ChangedIRData Data,
const Function F 

◆ getModuleForComparison()

const Module * ChangedIRComparer::getModuleForComparison ( Any  IR)

Definition at line 681 of file StandardInstrumentations.cpp.

References IR.

Referenced by analyzeIR(), and compare().

◆ handleFunctionCompare()

void ChangedIRComparer::handleFunctionCompare ( StringRef  Name,
StringRef  Prefix,
StringRef  PassID,
bool  InModule,
const ChangedFuncData Before,
const ChangedFuncData After 

Definition at line 1188 of file StandardInstrumentations.cpp.

References B, and llvm::OrderedChangedData< IRData >::report().

Referenced by compare().

Member Data Documentation

◆ After

const ChangedIRData& llvm::ChangedIRComparer::After

Definition at line 370 of file StandardInstrumentations.h.

Referenced by compare().

◆ Before

const ChangedIRData& llvm::ChangedIRComparer::Before

Definition at line 369 of file StandardInstrumentations.h.

Referenced by compare().

◆ Out

raw_ostream& llvm::ChangedIRComparer::Out

Definition at line 371 of file StandardInstrumentations.h.

◆ UseColour

bool llvm::ChangedIRComparer::UseColour

Definition at line 372 of file StandardInstrumentations.h.

The documentation for this class was generated from the following files: