Skip to content

Commit 7cca0fe

Browse files
committed
[LLVM][WebAssembly] Reorder branch hinting option in WebAssemblySubtarget.h
1 parent d13fe56 commit 7cca0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo {
4040
} SIMDLevel = NoSIMD;
4141

4242
bool HasAtomics = false;
43+
bool HasBranchHinting = false;
4344
bool HasBulkMemory = false;
4445
bool HasBulkMemoryOpt = false;
4546
bool HasCallIndirectOverlong = false;
@@ -54,7 +55,6 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo {
5455
bool HasSignExt = false;
5556
bool HasTailCall = false;
5657
bool HasWideArithmetic = false;
57-
bool HasBranchHinting = false;
5858

5959
/// What processor and OS we're targeting.
6060
Triple TargetTriple;
@@ -97,6 +97,7 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo {
9797
// Predicates used by WebAssemblyInstrInfo.td.
9898
bool hasAddr64() const { return TargetTriple.isArch64Bit(); }
9999
bool hasAtomics() const { return HasAtomics; }
100+
bool hasBranchHinting() const { return HasBranchHinting; }
100101
bool hasBulkMemory() const { return HasBulkMemory; }
101102
bool hasBulkMemoryOpt() const { return HasBulkMemoryOpt; }
102103
bool hasCallIndirectOverlong() const { return HasCallIndirectOverlong; }
@@ -113,7 +114,6 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo {
113114
bool hasSIMD128() const { return SIMDLevel >= SIMD128; }
114115
bool hasTailCall() const { return HasTailCall; }
115116
bool hasWideArithmetic() const { return HasWideArithmetic; }
116-
bool hasBranchHinting() const { return HasBranchHinting; }
117117

118118
/// Parses features string setting specified subtarget options. Definition of
119119
/// function is auto generated by tblgen.

0 commit comments

Comments
 (0)