[Mlir-commits] [mlir] a22cf92 - [MLIR] Apply clang-tidy fixes for llvm-qualified-auto in XeGPUDialect.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Feb 20 13:26:46 PST 2026


Author: Mehdi Amini
Date: 2026-02-20T13:26:33-08:00
New Revision: a22cf92da75da04f99727d183879cf58023bae96

URL: https://github.com/llvm/llvm-project/commit/a22cf92da75da04f99727d183879cf58023bae96
DIFF: https://github.com/llvm/llvm-project/commit/a22cf92da75da04f99727d183879cf58023bae96.diff

LOG: [MLIR] Apply clang-tidy fixes for llvm-qualified-auto in XeGPUDialect.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
index 8561b139dcedb..c082600ec27d7 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
@@ -980,7 +980,7 @@ TensorDescType TensorDescType::get(llvm::ArrayRef<int64_t> shape,
                                    bool boundary_check,
                                    MemorySpace memory_space,
                                    mlir::Attribute layout) {
-  auto context = elementType.getContext();
+  auto *context = elementType.getContext();
   auto attr = BlockTensorDescAttr::get(context, memory_space, array_length,
                                        boundary_check);
   return Base::get(context, shape, elementType, attr, layout);
@@ -990,7 +990,7 @@ TensorDescType TensorDescType::get(llvm::ArrayRef<int64_t> shape,
                                    mlir::Type elementType, int chunk_size,
                                    MemorySpace memory_space,
                                    mlir::Attribute layout) {
-  auto context = elementType.getContext();
+  auto *context = elementType.getContext();
   auto attr = ScatterTensorDescAttr::get(context, memory_space, chunk_size);
   return Base::get(context, shape, elementType, attr, layout);
 }
@@ -1131,7 +1131,7 @@ void MemDescType::print(AsmPrinter &printer) const {
 
 Attribute MemLayoutAttr::parse(AsmParser &parser, Type type) {
 
-  auto context = parser.getContext();
+  auto *context = parser.getContext();
   llvm::SMLoc loc = parser.getCurrentLocation();
 
   llvm::SmallDenseSet<StringRef> seenKeys;


        


More information about the Mlir-commits mailing list