16 #ifndef LLVM_CODEGEN_MACHINEOPTIMIZATIONREMARKEMITTER_H
17 #define LLVM_CODEGEN_MACHINEOPTIMIZATIONREMARKEMITTER_H
23 class MachineBasicBlock;
24 class MachineBlockFrequencyInfo;
68 RemarkName, Loc, MBB) {}
92 PassName, RemarkName, Loc, MBB) {}
116 PassName, RemarkName, Loc, MBB) {}
143 : MF(MF), MBFI(MBFI) {}
176 bool shouldEmitVerbose() {
return MBFI !=
nullptr; }
185 std::unique_ptr<MachineOptimizationRemarkEmitter> ORE;
195 assert(ORE &&
"pass not run yet");
const char * PassName
Name of the pass that triggers this report.
DiagnosticKind
Defines the different supported kind of a diagnostic.
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function. ...
MI-specific kinds of diagnostic Arguments.
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic b...
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
StringRef getPassName() const
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
DiagnosticInfoMIROptimization(enum DiagnosticKind Kind, const char *PassName, StringRef RemarkName, const DiagnosticLocation &Loc, const MachineBasicBlock *MBB)
static bool classof(const DiagnosticInfo *DI)
StringRef RemarkName
Textual identifier for the remark (single-word, camel-case).
yaml::Output * getDiagnosticsOutputFile()
Return the YAML file used by the backend to save optimization diagnostics.
const Function & getFunction() const
MachineArgument(StringRef Key, const MachineInstr &MI)
Print an entire MachineInstr.
This is the base abstract class for diagnostic reporting in the backend.
Represent the analysis usage information of a pass.
Used in the streaming interface as the general argument type.
const MachineBasicBlock * getBlock() const
Common features for diagnostics dealing with optimization remarks that are used by both IR and MIR pa...
Representation of each machine instruction.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static const Function * getParent(const Value *V)
StringRef - Represent a constant reference to a string, i.e.
Common features for diagnostics dealing with optimization remarks that are used by machine passes...