[clang] 405889e - [RISCV] Remove unused private field 'HasFRMRoundModeOp' in RVVIntrinsic (NFC)
Jie Fu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 13 01:19:34 PDT 2023
Author: Jie Fu
Date: 2023-07-13T16:17:03+08:00
New Revision: 405889ebad95956b4b6db92c92cd15607840f94b
URL: https://github.com/llvm/llvm-project/commit/405889ebad95956b4b6db92c92cd15607840f94b
DIFF: https://github.com/llvm/llvm-project/commit/405889ebad95956b4b6db92c92cd15607840f94b.diff
LOG: [RISCV] Remove unused private field 'HasFRMRoundModeOp' in RVVIntrinsic (NFC)
/data/llvm-project/clang/include/clang/Support/RISCVVIntrinsicUtils.h:390:8: error: private field 'HasFRMRoundModeOp' is not used [-Werror,-Wunused-private-field]
bool HasFRMRoundModeOp;
^
1 error generated.
Added:
Modified:
clang/include/clang/Support/RISCVVIntrinsicUtils.h
clang/lib/Support/RISCVVIntrinsicUtils.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Support/RISCVVIntrinsicUtils.h b/clang/include/clang/Support/RISCVVIntrinsicUtils.h
index 1c216b4ee53714..e985a9bef888c4 100644
--- a/clang/include/clang/Support/RISCVVIntrinsicUtils.h
+++ b/clang/include/clang/Support/RISCVVIntrinsicUtils.h
@@ -387,7 +387,6 @@ class RVVIntrinsic {
std::vector<int64_t> IntrinsicTypes;
unsigned NF = 1;
Policy PolicyAttrs;
- bool HasFRMRoundModeOp;
public:
RVVIntrinsic(llvm::StringRef Name, llvm::StringRef Suffix,
diff --git a/clang/lib/Support/RISCVVIntrinsicUtils.cpp b/clang/lib/Support/RISCVVIntrinsicUtils.cpp
index 12b9ca38faa0fe..20c4ee3e151870 100644
--- a/clang/lib/Support/RISCVVIntrinsicUtils.cpp
+++ b/clang/lib/Support/RISCVVIntrinsicUtils.cpp
@@ -886,8 +886,7 @@ RVVIntrinsic::RVVIntrinsic(
: IRName(IRName), IsMasked(IsMasked),
HasMaskedOffOperand(HasMaskedOffOperand), HasVL(HasVL), Scheme(Scheme),
SupportOverloading(SupportOverloading), HasBuiltinAlias(HasBuiltinAlias),
- ManualCodegen(ManualCodegen.str()), NF(NF), PolicyAttrs(NewPolicyAttrs),
- HasFRMRoundModeOp(HasFRMRoundModeOp) {
+ ManualCodegen(ManualCodegen.str()), NF(NF), PolicyAttrs(NewPolicyAttrs) {
// Init BuiltinName, Name and OverloadedName
BuiltinName = NewName.str();
More information about the cfe-commits
mailing list