[Mlir-commits] [mlir] 3029acb - Apply clang-tidy fixes for llvm-qualified-auto in TestBytecodeCallbacks.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Feb 19 16:41:49 PST 2024


Author: Mehdi Amini
Date: 2024-02-19T16:41:28-08:00
New Revision: 3029acb8e2f9bd4645b4d99b417ebca924c88ae9

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

LOG: Apply clang-tidy fixes for llvm-qualified-auto in TestBytecodeCallbacks.cpp (NFC)

Added: 
    

Modified: 
    mlir/test/lib/IR/TestBytecodeRoundtrip.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp b/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp
index 668701f1352e0a..a00908bcbad601 100644
--- a/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp
+++ b/mlir/test/lib/IR/TestBytecodeRoundtrip.cpp
@@ -200,7 +200,7 @@ struct TestBytecodeRoundtripPass
   // the encoding of builtin IntegerType. We can natively parse this without
   // the use of a callback, relying on the existing builtin reader mechanism.
   void runTest1(Operation *op) {
-    auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
+    auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
     BytecodeDialectInterface *iface =
         builtin->getRegisteredInterface<BytecodeDialectInterface>();
     BytecodeWriterConfig writeConfig;
@@ -231,7 +231,7 @@ struct TestBytecodeRoundtripPass
   // parsing, we use the encoding of IntegerType to intercept all i32. Then,
   // instead of creating i32s, we assemble TestI32Type and return it.
   void runTest2(Operation *op) {
-    auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
+    auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
     BytecodeDialectInterface *iface =
         builtin->getRegisteredInterface<BytecodeDialectInterface>();
     BytecodeWriterConfig writeConfig;
@@ -259,7 +259,7 @@ struct TestBytecodeRoundtripPass
   // can natively parse this without the use of a callback, relying on the
   // existing builtin reader mechanism.
   void runTest3(Operation *op) {
-    auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
+    auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
     BytecodeDialectInterface *iface =
         builtin->getRegisteredInterface<BytecodeDialectInterface>();
     auto i32Type = IntegerType::get(op->getContext(), 32,
@@ -295,7 +295,7 @@ struct TestBytecodeRoundtripPass
   // <2xi32>. Instead of assembling a DenseIntElementsAttr, we assemble
   // TestAttrParamsAttr and return it.
   void runTest4(Operation *op) {
-    auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
+    auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
     BytecodeDialectInterface *iface =
         builtin->getRegisteredInterface<BytecodeDialectInterface>();
     auto i32Type = IntegerType::get(op->getContext(), 32,
@@ -330,7 +330,7 @@ struct TestBytecodeRoundtripPass
   // the builtin types and attributes and take full control of the encoding,
   // returning failure if any type or attribute is not part of builtin.
   void runTest5(Operation *op) {
-    auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
+    auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
     BytecodeDialectInterface *iface =
         builtin->getRegisteredInterface<BytecodeDialectInterface>();
     BytecodeWriterConfig writeConfig;


        


More information about the Mlir-commits mailing list