Skip to content

Commit 4d090a9

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-identifier-naming in mlir-runner.cpp (NFC)
1 parent cdf30f0 commit 4d090a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/tools/mlir-runner/mlir-runner.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using namespace mlir;
3232
// TODO: Consider removing this linking functionality from the SPIR-V CPU Runner
3333
// flow in favour of a more proper host/device split like other runners.
3434
// https://github.com/llvm/llvm-project/issues/115348
35-
static llvm::cl::opt<bool> LinkNestedModules(
35+
static llvm::cl::opt<bool> linkNestedModules(
3636
"link-nested-modules",
3737
llvm::cl::desc("Link two nested MLIR modules into a single LLVM IR module. "
3838
"Useful if both the host and device code can be run on the "
@@ -56,7 +56,7 @@ convertMLIRModule(Operation *op, llvm::LLVMContext &context) {
5656
return op->emitError("op must be a 'builtin.module"), nullptr;
5757

5858
std::unique_ptr<llvm::Module> kernelModule;
59-
if (LinkNestedModules) {
59+
if (linkNestedModules) {
6060
// Verify that there is only one nested module.
6161
auto modules = module.getOps<ModuleOp>();
6262
if (!llvm::hasSingleElement(modules)) {
@@ -73,7 +73,7 @@ convertMLIRModule(Operation *op, llvm::LLVMContext &context) {
7373
std::unique_ptr<llvm::Module> mainModule =
7474
translateModuleToLLVMIR(module, context);
7575

76-
if (LinkNestedModules)
76+
if (linkNestedModules)
7777
llvm::Linker::linkModules(*mainModule, std::move(kernelModule));
7878

7979
return mainModule;

0 commit comments

Comments
 (0)