[PATCH] D144300: [RISCV] Use MCSubtargetInfo::hasFeature where possible. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 14:01:05 PST 2023
craig.topper created this revision.
craig.topper added reviewers: reames, asb, luismarques, kito-cheng, philipp.tomsich.
Herald added subscribers: luke, VincentWu, vkmr, frasercrmck, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
Rather than using operator[] on getFeatureBits we can use
hasFeature to shorten the code.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144300
Files:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144300.498503.patch
Type: text/x-patch
Size: 11112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230217/dd7695be/attachment.bin>
More information about the llvm-commits
mailing list