[Mlir-commits] [mlir] f19e90b - Apply clang-tidy fixes for readability-identifier-naming in OpenMPDialect.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Apr 13 16:15:00 PDT 2022


Author: Mehdi Amini
Date: 2022-04-13T23:14:44Z
New Revision: f19e90bc1f1726452058fb73b5dd5453e5fa0c99

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

LOG: Apply clang-tidy fixes for readability-identifier-naming in OpenMPDialect.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index 5118a8954688c..49baf3907ddc9 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -218,7 +218,7 @@ verifyScheduleModifiers(OpAsmParser &parser,
 /// sched-mod-val ::=  `monotonic` | `nonmonotonic` | `simd` | `none`
 static ParseResult parseScheduleClause(
     OpAsmParser &parser, ClauseScheduleKindAttr &scheduleAttr,
-    ScheduleModifierAttr &schedule_modifier, UnitAttr &simdModifier,
+    ScheduleModifierAttr &scheduleModifier, UnitAttr &simdModifier,
     Optional<OpAsmParser::UnresolvedOperand> &chunkSize, Type &chunkType) {
   StringRef keyword;
   if (parser.parseKeyword(&keyword))
@@ -262,7 +262,7 @@ static ParseResult parseScheduleClause(
     SMLoc loc = parser.getCurrentLocation();
     if (Optional<ScheduleModifier> mod =
             symbolizeScheduleModifier(modifiers[0])) {
-      schedule_modifier = ScheduleModifierAttr::get(parser.getContext(), *mod);
+      scheduleModifier = ScheduleModifierAttr::get(parser.getContext(), *mod);
     } else {
       return parser.emitError(loc, "invalid schedule modifier");
     }
@@ -761,11 +761,10 @@ LogicalResult CriticalDeclareOp::verify() {
   return verifySynchronizationHint(*this, hint_val());
 }
 
-LogicalResult
-CriticalOp::verifySymbolUses(SymbolTableCollection &symbol_table) {
+LogicalResult CriticalOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
   if (nameAttr()) {
     SymbolRefAttr symbolRef = nameAttr();
-    auto decl = symbol_table.lookupNearestSymbolFrom<CriticalDeclareOp>(
+    auto decl = symbolTable.lookupNearestSymbolFrom<CriticalDeclareOp>(
         *this, symbolRef);
     if (!decl) {
       return emitOpError() << "expected symbol reference " << symbolRef


        


More information about the Mlir-commits mailing list