Skip to content

Commit f46d212

Browse files
committed
[WebAssembly] Add missing feature methods
1 parent f061a39 commit f46d212

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ def HasMultiMemory :
7878
Predicate<"Subtarget->hasMultiMemory()">,
7979
AssemblerPredicate<(all_of FeatureMultiMemory), "multimemory">;
8080

81+
def HasMutableGlobals:
82+
Predicate<"Subtarget->hasMutableGlobals()">,
83+
AssemblerPredicate<(all_of FeatureMutableGlobals), "mutable-globals">;
84+
8185
//===----------------------------------------------------------------------===//
8286
// WebAssembly-specific DAG Node Types.
8387
//===----------------------------------------------------------------------===//

llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo {
105105
bool hasTailCall() const { return HasTailCall; }
106106
bool hasReferenceTypes() const { return HasReferenceTypes; }
107107
bool hasMultiMemory() const { return HasMultiMemory; }
108+
bool hasExtendedConst() const { return HasExtendedConst; }
108109

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

0 commit comments

Comments
 (0)