[PATCH] D61561: [LLParser] Simplify type checking in ParseArithmetic and ParseUnaryOp.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 4 23:25:50 PDT 2019


craig.topper created this revision.
craig.topper added reviewers: spatel, dblaikie, jyknight, arsenm.
Herald added subscribers: hiraditya, wdng.
Herald added a project: LLVM.

These methods previously took a 0, 1, or 2 to indicate what types were allowed, but the 0 encoding which meant both fp and integer types has been unused for years. Its leftover from when add/sub/mul used to be shared between int and fp

      

Simplify it by changing it to just a bool to distinquish int and fp.


https://reviews.llvm.org/D61561

Files:
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/AsmParser/LLParser.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61561.198162.patch
Type: text/x-patch
Size: 5292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190505/b629af85/attachment.bin>


More information about the llvm-commits mailing list