[PATCH] D156306: [RISCV][NFC] Change type of isOrdered to boolean

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 03:17:04 PDT 2023


wangpc created this revision.
wangpc added reviewers: craig.topper, michaelmaitland.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
wangpc requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

The name is `isOrdered` but it's a string actually, which is a bit
confusing. We change its type to `bit` and get the order string via
its value.

We do a little trick here that an argument with default value is
added to calculate order string (this removes some redundancies)
since there is no scope to define variales.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156306

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoV.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156306.544281.patch
Type: text/x-patch
Size: 10986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230726/29e0db8e/attachment.bin>


More information about the llvm-commits mailing list