Skip to content
Snippets Groups Projects
Commit 070f9f11 authored by Dan Gohman's avatar Dan Gohman
Browse files

[WebAssembly] Add an -mdirect flag for the direct wasm object feature.

Add a target flag for enabling the new direct wasm object emission
feature.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288447 91177308-0d34-0410-b5e6-96231b3b80d8
parent 1057307a
No related branches found
No related tags found
No related merge requests found
...@@ -1613,6 +1613,8 @@ def ffixed_x18 : Flag<["-"], "ffixed-x18">, Group<m_aarch64_Features_Group>, ...@@ -1613,6 +1613,8 @@ def ffixed_x18 : Flag<["-"], "ffixed-x18">, Group<m_aarch64_Features_Group>,
def msimd128 : Flag<["-"], "msimd128">, Group<m_wasm_Features_Group>; def msimd128 : Flag<["-"], "msimd128">, Group<m_wasm_Features_Group>;
def mno_simd128 : Flag<["-"], "mno-simd128">, Group<m_wasm_Features_Group>; def mno_simd128 : Flag<["-"], "mno-simd128">, Group<m_wasm_Features_Group>;
def mdirect : Flag<["-"], "mdirect">, Group<m_wasm_Features_Group>;
def mno_direct : Flag<["-"], "mno-direct">, Group<m_wasm_Features_Group>;
def mamdgpu_debugger_abi : Joined<["-"], "mamdgpu-debugger-abi=">, def mamdgpu_debugger_abi : Joined<["-"], "mamdgpu-debugger-abi=">,
Flags<[HelpHidden]>, Flags<[HelpHidden]>,
......
...@@ -8019,6 +8019,10 @@ private: ...@@ -8019,6 +8019,10 @@ private:
SIMDLevel = std::min(SIMDLevel, SIMDEnum(SIMD128 - 1)); SIMDLevel = std::min(SIMDLevel, SIMDEnum(SIMD128 - 1));
continue; continue;
} }
if (Feature == "+direct")
continue;
if (Feature == "-direct")
continue;
Diags.Report(diag::err_opt_not_valid_with_opt) << Feature Diags.Report(diag::err_opt_not_valid_with_opt) << Feature
<< "-target-feature"; << "-target-feature";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment