[PATCH] D53172: [WebAssembly][NFC] Unify ARGUMENT classes

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 12 00:32:03 PDT 2018


tlively added a comment.

In https://reviews.llvm.org/D53172#1262820, @aheejin wrote:

> This makes typenames in the arguments lowercase, which is inconsistent with other existing non-SIMD instructions, but currently other SIMD instructions are anyway, so I guess it would be ok. On a different note, do we need `ARGUMENT` instruction for every variation of v128 vector? If there's only one V128 type register in the backend, wouldn't a single `ARGUMENT_v128` suffice?


Yeah, I'd rather have all caps for everything, but being able to concatenate strings to make identifiers is just too useful. I would be willing to special case the ARGUMENT instructions to have all-caps names for consistency in other files if you think that would be better, though. It would be nice if TableGen had slightly richer string manipulation functions to make this easier. Unfortunately we do need a separate ARGUMENT for each vector type. Otherwise TableGen complains about not being able to infer types.


Repository:
  rL LLVM

https://reviews.llvm.org/D53172





More information about the llvm-commits mailing list