Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.

This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]], introduced as part of C++17.
@llvmbot
Copy link
Member

llvmbot commented Oct 17, 2025

@llvm/pr-subscribers-mlir-sparse

Author: Kazu Hirata (kazutakahirata)

Changes

This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.


Full diff: https://github.com/llvm/llvm-project/pull/163917.diff

1 Files Affected:

  • (modified) mlir/unittests/Dialect/SparseTensor/MergerTest.cpp (+1-1)
diff --git a/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp b/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp index 2a583059d2e0a..2b92e47d9288e 100644 --- a/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp +++ b/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp @@ -141,7 +141,7 @@ class MergerTestBase : public ::testing::TestWithParam<LevelFormat> { } #define IMPL_BINOP_EXPR(OP, KIND) \ - LLVM_ATTRIBUTE_UNUSED ExprId OP##Expr(ExprId e0, ExprId e1) { \ + [[maybe_unused]] ExprId OP##Expr(ExprId e0, ExprId e1) { \ return merger.addExp(KIND, e0, e1); \ } FOREVERY_BINOP(IMPL_BINOP_EXPR) 
@llvmbot
Copy link
Member

llvmbot commented Oct 17, 2025

@llvm/pr-subscribers-mlir

Author: Kazu Hirata (kazutakahirata)

Changes

This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.


Full diff: https://github.com/llvm/llvm-project/pull/163917.diff

1 Files Affected:

  • (modified) mlir/unittests/Dialect/SparseTensor/MergerTest.cpp (+1-1)
diff --git a/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp b/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp index 2a583059d2e0a..2b92e47d9288e 100644 --- a/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp +++ b/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp @@ -141,7 +141,7 @@ class MergerTestBase : public ::testing::TestWithParam<LevelFormat> { } #define IMPL_BINOP_EXPR(OP, KIND) \ - LLVM_ATTRIBUTE_UNUSED ExprId OP##Expr(ExprId e0, ExprId e1) { \ + [[maybe_unused]] ExprId OP##Expr(ExprId e0, ExprId e1) { \ return merger.addExp(KIND, e0, e1); \ } FOREVERY_BINOP(IMPL_BINOP_EXPR) 
@kazutakahirata kazutakahirata merged commit 0986646 into llvm:main Oct 17, 2025
13 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20251016_maybe_unused_mlir branch October 17, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mlir:sparse Sparse compiler in MLIR mlir

4 participants