diff options
author | JF Bastien <jfb@google.com> | 2015-07-27 23:25:54 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2015-07-27 23:25:54 +0000 |
commit | 088c47ee5be1c7ed4aae2bbfda6f762d4643c4df (patch) | |
tree | 00f4551252f45eadbd3cc44514771ac45c52feca /llvm/lib | |
parent | a381e10518c6457104d343655f128a6d625789a3 (diff) | |
download | llvm-088c47ee5be1c7ed4aae2bbfda6f762d4643c4df.zip llvm-088c47ee5be1c7ed4aae2bbfda6f762d4643c4df.tar.gz llvm-088c47ee5be1c7ed4aae2bbfda6f762d4643c4df.tar.bz2 |
WebAssembly: add a generic CPU
Summary: WebAssemblySubtarget.cpp expects a default 'generic' CPU to exist, and this seems to be prevalent with other targets. It makes sense to have something between MVP and bleeding-edge, even though for now it's the same as MVP. This removes a warning that's currently generated.
Subscribers: jfb, llvm-commits, sunfish
Differential Revision: http://reviews.llvm.org/D11546
llvm-svn: 243345
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssembly.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssembly.td b/llvm/lib/Target/WebAssembly/WebAssembly.td index a123bf6f..53dd929 100644 --- a/llvm/lib/Target/WebAssembly/WebAssembly.td +++ b/llvm/lib/Target/WebAssembly/WebAssembly.td @@ -50,6 +50,9 @@ def WebAssemblyInstrInfo : InstrInfo; // Minimal Viable Product. def : ProcessorModel<"mvp", NoSchedModel, []>; +// Generic processor: latest stable version. +def : ProcessorModel<"generic", NoSchedModel, []>; + // Latest and greatest experimental version of WebAssembly. Bugs included! def : ProcessorModel<"bleeding-edge", NoSchedModel, [FeatureSIMD128]>; |