[Mlir-commits] [mlir] 8b51b62 - Apply clang-tidy fixes for llvm-qualified-auto in ConvertToLLVMPass.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 20 01:41:32 PST 2023
Author: Mehdi Amini
Date: 2023-11-20T01:40:49-08:00
New Revision: 8b51b62559e6cd9b59b592c42a84e3362e5bba47
URL: https://github.com/llvm/llvm-project/commit/8b51b62559e6cd9b59b592c42a84e3362e5bba47
DIFF: https://github.com/llvm/llvm-project/commit/8b51b62559e6cd9b59b592c42a84e3362e5bba47.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in ConvertToLLVMPass.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp b/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
index 621d82e03005881..a90e557b1fdbd9c 100644
--- a/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
+++ b/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
@@ -41,7 +41,7 @@ class LoadDependentDialectExtension : public DialectExtensionBase {
MutableArrayRef<Dialect *> dialects) const final {
LLVM_DEBUG(llvm::dbgs() << "Convert to LLVM extension load\n");
for (Dialect *dialect : dialects) {
- auto iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
+ auto *iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
if (!iface)
continue;
LLVM_DEBUG(llvm::dbgs() << "Convert to LLVM found dialect interface for "
@@ -87,7 +87,7 @@ class ConvertToLLVMPass
if (!dialect)
return emitError(UnknownLoc::get(context))
<< "dialect not loaded: " << dialectName << "\n";
- auto iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
+ auto *iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
if (!iface)
return emitError(UnknownLoc::get(context))
<< "dialect does not implement ConvertToLLVMPatternInterface: "
@@ -101,7 +101,7 @@ class ConvertToLLVMPass
for (Dialect *dialect : context->getLoadedDialects()) {
// First time we encounter this dialect: if it implements the interface,
// let's populate patterns !
- auto iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
+ auto *iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
if (!iface)
continue;
iface->populateConvertToLLVMConversionPatterns(*target, *typeConverter,
More information about the Mlir-commits
mailing list