diff options
| author | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-09-21 20:53:55 +0000 |
|---|---|---|
| committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-09-21 20:53:55 +0000 |
| commit | e0403f13c461a515a77a297569bde3243a498cc9 (patch) | |
| tree | d74889841c74bdc52a9ef08508fcbb23c793c44c /llvm/utils/TableGen/AsmMatcherEmitter.cpp | |
| parent | a9d9836d98f7983adf3b4da4ce3f0a47645eba71 (diff) | |
| download | bcm5719-llvm-e0403f13c461a515a77a297569bde3243a498cc9.tar.gz bcm5719-llvm-e0403f13c461a515a77a297569bde3243a498cc9.zip | |
[WebAssembly] Simplified selecting asmmatcher stack instructions.
Summary:
By using the existing isCodeGenOnly bit in the tablegen defs, as
suggested by tlively in https://reviews.llvm.org/D51662
Tested: llvm-lit -v `find test -name WebAssembly`
Reviewers: tlively
Subscribers: dschuff, sbc100, jgravelle-google, aheejin, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D52373
llvm-svn: 342772
Diffstat (limited to 'llvm/utils/TableGen/AsmMatcherEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index a0283fc8017..e808661b7a5 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -1479,8 +1479,6 @@ void AsmMatcherInfo::buildInfo() { bool ReportMultipleNearMisses = AsmParser->getValueAsBit("ReportMultipleNearMisses"); - bool IsWebAssemblyTarget = Target.getName() == "WebAssembly"; - // Parse the instructions; we need to do this first so that we can gather the // singleton register classes. SmallPtrSet<Record*, 16> SingletonRegisters; @@ -1516,14 +1514,6 @@ void AsmMatcherInfo::buildInfo() { if (!V.empty() && V != Variant.Name) continue; - // [WebAssembly] Ignore non-stack instructions. - if (IsWebAssemblyTarget) { - auto Bit = CGI->TheDef->getValue("StackBased")->getValue()-> - getCastTo(BitRecTy::get()); - if (!Bit || !reinterpret_cast<const BitInit *>(Bit)->getValue()) - continue; - } - auto II = llvm::make_unique<MatchableInfo>(*CGI); II->initialize(*this, SingletonRegisters, Variant, HasMnemonicFirst); |

