[llvm] 5c34cda - [RISCV] Pass FeatureBitset to computeTargetABI by const reference. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 10:20:20 PDT 2023
Author: Craig Topper
Date: 2023-05-03T10:18:33-07:00
New Revision: 5c34cdaad7c2fdb995e5160f502022583e55b5b2
URL: https://github.com/llvm/llvm-project/commit/5c34cdaad7c2fdb995e5160f502022583e55b5b2
DIFF: https://github.com/llvm/llvm-project/commit/5c34cdaad7c2fdb995e5160f502022583e55b5b2.diff
LOG: [RISCV] Pass FeatureBitset to computeTargetABI by const reference. NFC
Added:
Modified:
llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
index aa0664f6faae0..deae80d34593b 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
@@ -36,7 +36,7 @@ namespace RISCVInsnOpcode {
} // namespace RISCVInsnOpcode
namespace RISCVABI {
-ABI computeTargetABI(const Triple &TT, FeatureBitset FeatureBits,
+ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
StringRef ABIName) {
auto TargetABI = getTargetABI(ABIName);
bool IsRV64 = TT.isArch64Bit();
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
index f60726ec69078..6b3024e5b4974 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
@@ -410,7 +410,7 @@ enum ABI {
// Returns the target ABI, or else a StringError if the requested ABIName is
// not supported for the given TT and FeatureBits combination.
-ABI computeTargetABI(const Triple &TT, FeatureBitset FeatureBits,
+ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
StringRef ABIName);
ABI getTargetABI(StringRef ABIName);
More information about the llvm-commits
mailing list