LLVM  13.0.0git
Macros | Functions
ResetMachineFunctionPass.cpp File Reference
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/StackProtector.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/Debug.h"
Include dependency graph for ResetMachineFunctionPass.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "reset-machine-function"


 STATISTIC (NumFunctionsReset, "Number of functions reset")
 STATISTIC (NumFunctionsVisited, "Number of functions visited")
 INITIALIZE_PASS (ResetMachineFunction, DEBUG_TYPE, "Reset machine function if ISel failed", false, false) MachineFunctionPass *llvm

Detailed Description

This file implements a pass that will conditionally reset a machine function as if it was just created. This is used to provide a fallback mechanism when GlobalISel fails, thus the condition for the reset to happen is that the MachineFunction has the FailedISel property.

Definition in file ResetMachineFunctionPass.cpp.

Macro Definition Documentation


#define DEBUG_TYPE   "reset-machine-function"

Definition at line 27 of file ResetMachineFunctionPass.cpp.

Function Documentation


INITIALIZE_PASS ( ResetMachineFunction  ,
"Reset machine function if ISel failed"  ,
false  ,

Definition at line 83 of file ResetMachineFunctionPass.cpp.

◆ STATISTIC() [1/2]

STATISTIC ( NumFunctionsReset  ,
"Number of functions reset"   

◆ STATISTIC() [2/2]

STATISTIC ( NumFunctionsVisited  ,
"Number of functions visited"