[PATCH] D64039: [WebAssembly] tablegen: distinguish float/int immediate operands.
Wouter van Oortmerssen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 17:27:56 PDT 2019
aardappel marked an inline comment as done.
aardappel added inline comments.
================
Comment at: lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp:92
bool isToken() const override { return Kind == Token; }
- bool isImm() const override {
- return Kind == Integer || Kind == Float || Kind == Symbol;
- }
+ bool isImm() const override { return Kind == Integer || Kind == Symbol; }
+ bool isFPImm() const { return Kind == Float; }
----------------
aheejin wrote:
> Isn't this supposed to include both integer and float immediates? (It is an inherited one, so)
That really depends on how you define it. "Imm" is a class name driven by the tablegen def, that we happened to use for both int and float, which was problematic, since our emitter assumed they were separate. With this change I force them to be separate in both the def and the code.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64039/new/
https://reviews.llvm.org/D64039
More information about the llvm-commits
mailing list