LLVM: lib/CodeGen/ResetMachineFunctionPass.cpp File Reference (original) (raw)
This file implements a pass that will conditionally reset a machine function as if it was just created. More...
Go to the source code of this file.
| Macros | |
|---|---|
| #define | DEBUG_TYPE "reset-machine-function" |
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"
Function Documentation
◆ INITIALIZE_PASS()
| INITIALIZE_PASS | ( | ResetMachineFunction | , |
|---|---|---|---|
| DEBUG_TYPE | , | ||
| "Reset machine function if ISel failed" | , | ||
| false | , | ||
| false | ) |
◆ STATISTIC() [1/2]
| STATISTIC | ( | NumFunctionsReset | , |
|---|---|---|---|
| "Number of functions reset" | ) |
◆ STATISTIC() [2/2]
| STATISTIC | ( | NumFunctionsVisited | , |
|---|---|---|---|
| "Number of functions visited" | ) |