Skip to content

Commit 3029acb

Browse files
committed
Apply clang-tidy fixes for llvm-qualified-auto in TestBytecodeCallbacks.cpp (NFC)
1 parent 6f469d6 commit 3029acb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/test/lib/IR/TestBytecodeRoundtrip.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ struct TestBytecodeRoundtripPass
200200
// the encoding of builtin IntegerType. We can natively parse this without
201201
// the use of a callback, relying on the existing builtin reader mechanism.
202202
void runTest1(Operation *op) {
203-
auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
203+
auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
204204
BytecodeDialectInterface *iface =
205205
builtin->getRegisteredInterface<BytecodeDialectInterface>();
206206
BytecodeWriterConfig writeConfig;
@@ -231,7 +231,7 @@ struct TestBytecodeRoundtripPass
231231
// parsing, we use the encoding of IntegerType to intercept all i32. Then,
232232
// instead of creating i32s, we assemble TestI32Type and return it.
233233
void runTest2(Operation *op) {
234-
auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
234+
auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
235235
BytecodeDialectInterface *iface =
236236
builtin->getRegisteredInterface<BytecodeDialectInterface>();
237237
BytecodeWriterConfig writeConfig;
@@ -259,7 +259,7 @@ struct TestBytecodeRoundtripPass
259259
// can natively parse this without the use of a callback, relying on the
260260
// existing builtin reader mechanism.
261261
void runTest3(Operation *op) {
262-
auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
262+
auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
263263
BytecodeDialectInterface *iface =
264264
builtin->getRegisteredInterface<BytecodeDialectInterface>();
265265
auto i32Type = IntegerType::get(op->getContext(), 32,
@@ -295,7 +295,7 @@ struct TestBytecodeRoundtripPass
295295
// <2xi32>. Instead of assembling a DenseIntElementsAttr, we assemble
296296
// TestAttrParamsAttr and return it.
297297
void runTest4(Operation *op) {
298-
auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
298+
auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
299299
BytecodeDialectInterface *iface =
300300
builtin->getRegisteredInterface<BytecodeDialectInterface>();
301301
auto i32Type = IntegerType::get(op->getContext(), 32,
@@ -330,7 +330,7 @@ struct TestBytecodeRoundtripPass
330330
// the builtin types and attributes and take full control of the encoding,
331331
// returning failure if any type or attribute is not part of builtin.
332332
void runTest5(Operation *op) {
333-
auto builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
333+
auto *builtin = op->getContext()->getLoadedDialect<mlir::BuiltinDialect>();
334334
BytecodeDialectInterface *iface =
335335
builtin->getRegisteredInterface<BytecodeDialectInterface>();
336336
BytecodeWriterConfig writeConfig;

0 commit comments

Comments
 (0)