Skip to content

Commit 652f127

Browse files
committed
CodeGen: Move ABI option enums to support
Move these out of TargetOptions and into Support to avoid the dependency on Target. There are similar ABI options already in Support/CodeGen.h.
1 parent b7f272a commit 652f127

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

llvm/include/llvm/Support/CodeGen.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ namespace llvm {
5050
};
5151
}
5252

53+
namespace FloatABI {
54+
enum ABIType {
55+
Default, // Target-specific (either soft or hard depending on triple, etc).
56+
Soft, // Soft float.
57+
Hard // Hard float.
58+
};
59+
}
60+
61+
enum class EABI {
62+
Unknown,
63+
Default, // Default means not specified
64+
EABI4, // Target-specific (either 4, 5 or gnu depending on triple).
65+
EABI5,
66+
GNU
67+
};
68+
5369
/// Code generation optimization level.
5470
enum class CodeGenOptLevel {
5571
None = 0, ///< -O0

llvm/include/llvm/Target/TargetOptions.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "llvm/ADT/FloatingPointMode.h"
1818
#include "llvm/MC/MCTargetOptions.h"
19+
#include "llvm/Support/CodeGen.h"
1920

2021
#include <memory>
2122

@@ -24,14 +25,6 @@ namespace llvm {
2425
class MachineFunction;
2526
class MemoryBuffer;
2627

27-
namespace FloatABI {
28-
enum ABIType {
29-
Default, // Target-specific (either soft or hard depending on triple, etc).
30-
Soft, // Soft float.
31-
Hard // Hard float.
32-
};
33-
}
34-
3528
namespace FPOpFusion {
3629
enum FPOpFusionMode {
3730
Fast, // Enable fusion of FP ops wherever it's profitable.
@@ -70,14 +63,6 @@ namespace llvm {
7063
None // Do not use Basic Block Sections.
7164
};
7265

73-
enum class EABI {
74-
Unknown,
75-
Default, // Default means not specified
76-
EABI4, // Target-specific (either 4, 5 or gnu depending on triple).
77-
EABI5,
78-
GNU
79-
};
80-
8166
/// Identify a debugger for "tuning" the debug info.
8267
///
8368
/// The "debugger tuning" concept allows us to present a more intuitive

0 commit comments

Comments
 (0)