LLVM  6.0.0svn
Macros | Functions
ResetMachineFunctionPass.cpp File Reference

This file implements a pass that will conditionally reset a machine function as if it was just created. More...

#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/Support/Debug.h"
Include dependency graph for ResetMachineFunctionPass.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "reset-machine-function"
 

Functions

 STATISTIC (NumFunctionsReset, "Number of functions reset")
 
 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

◆ DEBUG_TYPE

#define DEBUG_TYPE   "reset-machine-function"

Definition at line 24 of file ResetMachineFunctionPass.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( ResetMachineFunction  ,
DEBUG_TYPE  ,
"reset machine function if ISel failed"  ,
false  ,
false   
)

Definition at line 67 of file ResetMachineFunctionPass.cpp.

◆ STATISTIC()

STATISTIC ( NumFunctionsReset  ,
"Number of functions reset"   
)