Skip to content

Commit

Permalink
[WebAssembly] Add missing feature methods (llvm#90644)
Browse files Browse the repository at this point in the history
  • Loading branch information
aheejin authored May 1, 2024
1 parent f2e8089 commit a1c1279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def HasMultiMemory :
Predicate<"Subtarget->hasMultiMemory()">,
AssemblerPredicate<(all_of FeatureMultiMemory), "multimemory">;

def HasMutableGlobals:
Predicate<"Subtarget->hasMutableGlobals()">,
AssemblerPredicate<(all_of FeatureMutableGlobals), "mutable-globals">;

//===----------------------------------------------------------------------===//
// WebAssembly-specific DAG Node Types.
//===----------------------------------------------------------------------===//
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo {
bool hasTailCall() const { return HasTailCall; }
bool hasReferenceTypes() const { return HasReferenceTypes; }
bool hasMultiMemory() const { return HasMultiMemory; }
bool hasExtendedConst() const { return HasExtendedConst; }

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

0 comments on commit a1c1279

Please sign in to comment.