diff --git a/llvm/include/llvm/Target/CGPassBuilderOption.h b/llvm/include/llvm/Target/CGPassBuilderOption.h index 72cb1b383da48..6b5c023a9b6ad 100644 --- a/llvm/include/llvm/Target/CGPassBuilderOption.h +++ b/llvm/include/llvm/Target/CGPassBuilderOption.h @@ -31,8 +31,10 @@ struct CGPassBuilderOption { bool DisableVerify = false; bool EnableImplicitNullChecks = false; bool EnableBlockPlacementStats = false; + bool EnableMachineFunctionSplitter = false; bool MISchedPostRA = false; bool EarlyLiveIntervals = false; + bool GCEmptyBlocks = false; bool DisableLSR = false; bool DisableCGP = false; @@ -41,16 +43,25 @@ struct CGPassBuilderOption { bool DisablePartialLibcallInlining = false; bool DisableConstantHoisting = false; bool DisableSelectOptimize = true; + bool DisableAtExitBasedGlobalDtorLowering = false; + bool DisableExpandReductions = false; + bool DisableRAFSProfileLoader = false; + bool DisableCFIFixup = false; + bool PrintAfterISel = false; bool PrintISelInput = false; bool RequiresCodeGenSCCOrder = false; RunOutliner EnableMachineOutliner = RunOutliner::TargetDefault; RegAllocType RegAlloc = RegAllocType::Default; std::optional EnableGlobalISelAbort; + std::string FSProfileFile; + std::string FSRemappingFile; std::optional VerifyMachineCode; std::optional EnableFastISelOption; std::optional EnableGlobalISelOption; + std::optional DebugifyAndStripAll; + std::optional DebugifyCheckAndStripAll; }; CGPassBuilderOption getCGPassBuilderOption(); diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index f15d59d4e35b4..faa5466b69e8b 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -474,6 +474,11 @@ CGPassBuilderOption llvm::getCGPassBuilderOption() { SET_OPTION(EnableIPRA) SET_OPTION(OptimizeRegAlloc) SET_OPTION(VerifyMachineCode) + SET_OPTION(DisableAtExitBasedGlobalDtorLowering) + SET_OPTION(DisableExpandReductions) + SET_OPTION(PrintAfterISel) + SET_OPTION(FSProfileFile) + SET_OPTION(GCEmptyBlocks) #define SET_BOOLEAN_OPTION(Option) Opt.Option = Option; @@ -490,6 +495,11 @@ CGPassBuilderOption llvm::getCGPassBuilderOption() { SET_BOOLEAN_OPTION(DisableSelectOptimize) SET_BOOLEAN_OPTION(PrintLSR) SET_BOOLEAN_OPTION(PrintISelInput) + SET_BOOLEAN_OPTION(DebugifyAndStripAll) + SET_BOOLEAN_OPTION(DebugifyCheckAndStripAll) + SET_BOOLEAN_OPTION(DisableRAFSProfileLoader) + SET_BOOLEAN_OPTION(DisableCFIFixup) + SET_BOOLEAN_OPTION(EnableMachineFunctionSplitter) return Opt; }