| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
#ifndef LLVM_TARGET_CGPASSBUILDEROPTION_H |
| 15 |
#define LLVM_TARGET_CGPASSBUILDEROPTION_H |
| 16 |
|
| 17 |
#include "llvm/ADT/Optional.h" |
| 18 |
#include "llvm/ADT/StringRef.h" |
| 19 |
#include "llvm/Target/TargetOptions.h" |
| 20 |
|
| 21 |
namespace llvm { |
| 22 |
|
| 23 |
enum class RunOutliner { TargetDefault, AlwaysOutline, NeverOutline }; |
| 24 |
enum class RegAllocType { Default, Basic, Fast, Greedy, PBQP }; |
| 25 |
enum class CFLAAType { None, Steensgaard, Andersen, Both }; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
struct CGPassBuilderOption { |
| 30 |
Optional<bool> OptimizeRegAlloc; |
| 31 |
Optional<bool> EnableIPRA; |
| 32 |
bool DebugPM = false; |
| 33 |
bool DisableVerify = false; |
| 34 |
bool EnableImplicitNullChecks = false; |
| 35 |
bool EnableBlockPlacementStats = false; |
| 36 |
bool MISchedPostRA = false; |
| 37 |
bool EarlyLiveIntervals = false; |
| 38 |
|
| 39 |
bool DisableLSR = false; |
| 40 |
bool DisableCGP = false; |
| 41 |
bool PrintLSR = false; |
| 42 |
bool DisableMergeICmps = false; |
| 43 |
bool DisablePartialLibcallInlining = false; |
| 44 |
bool DisableConstantHoisting = false; |
| 45 |
bool PrintISelInput = false; |
| 46 |
bool PrintGCInfo = false; |
| 47 |
bool RequiresCodeGenSCCOrder = false; |
| 48 |
|
| 49 |
RunOutliner EnableMachineOutliner = RunOutliner::TargetDefault; |
| 50 |
RegAllocType RegAlloc = RegAllocType::Default; |
| 51 |
CFLAAType UseCFLAA = CFLAAType::None; |
| 52 |
Optional<GlobalISelAbortMode> EnableGlobalISelAbort; |
| 53 |
|
| 54 |
Optional<bool> VerifyMachineCode; |
| 55 |
Optional<bool> EnableFastISelOption; |
| 56 |
Optional<bool> EnableGlobalISelOption; |
| 57 |
}; |
| 58 |
|
| 59 |
CGPassBuilderOption getCGPassBuilderOption(); |
| 60 |
|
| 61 |
} |
| 62 |
|
| 63 |
#endif |