[all-commits] [llvm/llvm-project] 34aff4: [RISCV] Use MCSubtargetInfo::hasFeature where poss...
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Feb 17 14:38:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34aff47521c3e0cbac58b0d5793197f76a304295
https://github.com/llvm/llvm-project/commit/34aff47521c3e0cbac58b0d5793197f76a304295
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
M llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[RISCV] Use MCSubtargetInfo::hasFeature where possible. NFC
Rather than using operator[] on getFeatureBits we can use
hasFeature to shorten the code.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D144300
More information about the All-commits
mailing list