LLVM 20.0.0git
CGPassBuilderOption.h
Go to the documentation of this file.
1//===- CGPassBuilderOption.h - Options for pass builder ---------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file declares the CCState and CCValAssign classes, used for lowering
10// and implementing calling conventions.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TARGET_CGPASSBUILDEROPTION_H
15#define LLVM_TARGET_CGPASSBUILDEROPTION_H
16
18#include <optional>
19
20namespace llvm {
21
24
25// Not one-on-one but mostly corresponding to commandline options in
26// TargetPassConfig.cpp.
28 std::optional<bool> OptimizeRegAlloc;
29 std::optional<bool> EnableIPRA;
30 bool DebugPM = false;
31 bool DisableVerify = false;
36 bool MISchedPostRA = false;
37 bool EarlyLiveIntervals = false;
38 bool GCEmptyBlocks = false;
39
40 bool DisableLSR = false;
41 bool DisableCGP = false;
42 bool PrintLSR = false;
43 bool DisableMergeICmps = false;
50 bool DisableCFIFixup = false;
51 bool PrintAfterISel = false;
52 bool PrintISelInput = false;
54
56 StringRef RegAlloc = "default";
57 std::optional<GlobalISelAbortMode> EnableGlobalISelAbort;
58 std::string FSProfileFile;
59 std::string FSRemappingFile;
60
61 std::optional<bool> VerifyMachineCode;
62 std::optional<bool> EnableFastISelOption;
63 std::optional<bool> EnableGlobalISelOption;
64 std::optional<bool> DebugifyAndStripAll;
65 std::optional<bool> DebugifyCheckAndStripAll;
66};
67
69
70} // namespace llvm
71
72#endif // LLVM_TARGET_CGPASSBUILDEROPTION_H
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
@ Fast
Attempts to make calls as fast as possible (e.g.
Definition: CallingConv.h:41
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Default
The result values are uniform if and only if all operands are uniform.
CGPassBuilderOption getCGPassBuilderOption()
std::optional< bool > EnableGlobalISelOption
std::optional< bool > EnableIPRA
std::optional< bool > OptimizeRegAlloc
std::optional< bool > VerifyMachineCode
std::optional< bool > DebugifyCheckAndStripAll
std::optional< bool > DebugifyAndStripAll
std::optional< bool > EnableFastISelOption
std::optional< GlobalISelAbortMode > EnableGlobalISelAbort