[all-commits] [llvm/llvm-project] d3950b: [MLIR] Fix -Wunused-template (#221480)

Aiden Grossman via All-commits all-commits at lists.llvm.org
Fri Sep 11 15:44:57 PDT 2026


  Branch: refs/heads/users/boomanaiden154/main.mlir-fix-wunused-template
  Home:   https://github.com/llvm/llvm-project
  Commit: d3950bf62435fcc5f3e3005935f64020ea8cf956
      https://github.com/llvm/llvm-project/commit/d3950bf62435fcc5f3e3005935f64020ea8cf956
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M mlir/include/mlir/CAPI/Wrap.h
    M mlir/include/mlir/Dialect/OpenACC/OpenACC.h
    M mlir/include/mlir/Dialect/Tosa/Utils/ConversionUtils.h
    M mlir/include/mlir/Query/Matcher/Marshallers.h
    M mlir/include/mlir/Support/DebugStringHelper.h
    M mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
    M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
    M mlir/lib/Dialect/SCF/IR/SCF.cpp
    M mlir/lib/Dialect/SCF/Utils/Utils.cpp
    M mlir/lib/Dialect/SPIRV/IR/MemoryOps.cpp
    M mlir/lib/Dialect/Shard/Transforms/Partition.cpp
    M mlir/lib/Dialect/Tosa/Transforms/TosaNarrowTypes.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Target/Cpp/TranslateToCpp.cpp
    M mlir/lib/Tools/mlir-pdll-lsp-server/Protocol.cpp

  Log Message:
  -----------
  [MLIR] Fix -Wunused-template (#221480)

This warning was enabled by default for clang 23 (although reverted in
23.1.1). Given someone might enable it in the future and the cleanup
seemed nice, we should just do it.

This was done primarily by removing static from templates in headers and
then deleting any unused templates in translation units.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list