[Mlir-commits] [mlir] 4d090a9 - [MLIR] Apply clang-tidy fixes for readability-identifier-naming in mlir-runner.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Aug 29 00:22:24 PDT 2025


Author: Mehdi Amini
Date: 2025-08-29T00:21:45-07:00
New Revision: 4d090a9f8f4ef35311ce0039268888a23345099e

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

LOG: [MLIR] Apply clang-tidy fixes for readability-identifier-naming in mlir-runner.cpp (NFC)

Added: 
    

Modified: 
    mlir/tools/mlir-runner/mlir-runner.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-runner/mlir-runner.cpp b/mlir/tools/mlir-runner/mlir-runner.cpp
index 932c9f6cc9fdc..44ad660e346fa 100644
--- a/mlir/tools/mlir-runner/mlir-runner.cpp
+++ b/mlir/tools/mlir-runner/mlir-runner.cpp
@@ -32,7 +32,7 @@ using namespace mlir;
 // TODO: Consider removing this linking functionality from the SPIR-V CPU Runner
 //       flow in favour of a more proper host/device split like other runners.
 //       https://github.com/llvm/llvm-project/issues/115348
-static llvm::cl::opt<bool> LinkNestedModules(
+static llvm::cl::opt<bool> linkNestedModules(
     "link-nested-modules",
     llvm::cl::desc("Link two nested MLIR modules into a single LLVM IR module. "
                    "Useful if both the host and device code can be run on the "
@@ -56,7 +56,7 @@ convertMLIRModule(Operation *op, llvm::LLVMContext &context) {
     return op->emitError("op must be a 'builtin.module"), nullptr;
 
   std::unique_ptr<llvm::Module> kernelModule;
-  if (LinkNestedModules) {
+  if (linkNestedModules) {
     // Verify that there is only one nested module.
     auto modules = module.getOps<ModuleOp>();
     if (!llvm::hasSingleElement(modules)) {
@@ -73,7 +73,7 @@ convertMLIRModule(Operation *op, llvm::LLVMContext &context) {
   std::unique_ptr<llvm::Module> mainModule =
       translateModuleToLLVMIR(module, context);
 
-  if (LinkNestedModules)
+  if (linkNestedModules)
     llvm::Linker::linkModules(*mainModule, std::move(kernelModule));
 
   return mainModule;


        


More information about the Mlir-commits mailing list