Skip to content

Commit ca8c5ef

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-identifier-naming in OpenACC.cpp (NFC)
1 parent 9277bcd commit ca8c5ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ mlir::ArrayAttr addDeviceTypeAffectedOperandHelper(
9393
deviceTypes.push_back(
9494
acc::DeviceTypeAttr::get(context, acc::DeviceType::None));
9595

96-
for (DeviceType DT : newDeviceTypes)
97-
deviceTypes.push_back(acc::DeviceTypeAttr::get(context, DT));
96+
for (DeviceType dt : newDeviceTypes)
97+
deviceTypes.push_back(acc::DeviceTypeAttr::get(context, dt));
9898

9999
return mlir::ArrayAttr::get(context, deviceTypes);
100100
}
@@ -121,10 +121,10 @@ mlir::ArrayAttr addDeviceTypeAffectedOperandHelper(
121121
acc::DeviceTypeAttr::get(context, acc::DeviceType::None));
122122
}
123123

124-
for (DeviceType DT : newDeviceTypes) {
124+
for (DeviceType dt : newDeviceTypes) {
125125
argCollection.append(arguments);
126126
segments.push_back(arguments.size());
127-
deviceTypes.push_back(acc::DeviceTypeAttr::get(context, DT));
127+
deviceTypes.push_back(acc::DeviceTypeAttr::get(context, dt));
128128
}
129129

130130
return mlir::ArrayAttr::get(context, deviceTypes);
@@ -2962,10 +2962,10 @@ void acc::LoopOp::setCollapseForDeviceTypes(
29622962
newDeviceTypes.push_back(
29632963
acc::DeviceTypeAttr::get(context, DeviceType::None));
29642964
} else {
2965-
for (DeviceType DT : effectiveDeviceTypes) {
2965+
for (DeviceType dt : effectiveDeviceTypes) {
29662966
newValues.push_back(
29672967
mlir::IntegerAttr::get(mlir::IntegerType::get(context, 64), value));
2968-
newDeviceTypes.push_back(acc::DeviceTypeAttr::get(context, DT));
2968+
newDeviceTypes.push_back(acc::DeviceTypeAttr::get(context, dt));
29692969
}
29702970
}
29712971

0 commit comments

Comments
 (0)