Skip to content

Commit b17b289

Browse files
author
Razvan Lupusoru
committed
Fix formatting
1 parent e70a67d commit b17b289

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ struct MemRefPointerLikeModel
8484
return true;
8585
}
8686

87-
// For dynamic memrefs, extract sizes from the original variable if provided.
88-
// Otherwise they cannot be handled.
87+
// For dynamic memrefs, extract sizes from the original variable if
88+
// provided. Otherwise they cannot be handled.
8989
if (originalVar && originalVar.getType() == memrefTy &&
9090
memrefTy.hasRank()) {
9191
SmallVector<Value> dynamicSizes;
@@ -104,7 +104,6 @@ struct MemRefPointerLikeModel
104104
return true;
105105
}
106106

107-
108107
// TODO: Unranked not yet supported.
109108
return false;
110109
}

mlir/test/lib/Dialect/OpenACC/TestOpenACC.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ namespace test {
1717
void registerTestPointerLikeTypeInterfacePass();
1818

1919
// Unified registration function for all OpenACC tests
20-
void registerTestOpenACC() {
21-
registerTestPointerLikeTypeInterfacePass();
22-
}
20+
void registerTestOpenACC() { registerTestPointerLikeTypeInterfacePass(); }
2321

2422
} // namespace test
2523
} // namespace mlir

mlir/test/lib/Dialect/OpenACC/TestPointerLikeTypeInterface.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace {
2626

2727
struct OperationTracker : public OpBuilder::Listener {
2828
SmallVector<Operation *> insertedOps;
29-
29+
3030
void notifyOperationInserted(Operation *op,
3131
OpBuilder::InsertPoint previous) override {
3232
insertedOps.push_back(op);
@@ -72,8 +72,9 @@ struct TestPointerLikeTypeInterfacePass
7272
OpBuilder &builder);
7373
void testGenFree(Operation *op, Value result, PointerLikeType pointerType,
7474
OpBuilder &builder);
75-
void testGenCopy(Operation *srcOp, Operation *destOp, Value srcResult, Value destResult,
76-
PointerLikeType pointerType, OpBuilder &builder);
75+
void testGenCopy(Operation *srcOp, Operation *destOp, Value srcResult,
76+
Value destResult, PointerLikeType pointerType,
77+
OpBuilder &builder);
7778

7879
struct PointerCandidate {
7980
Operation *op;
@@ -144,7 +145,8 @@ void TestPointerLikeTypeInterfacePass::runOnOperation() {
144145
// Try copying from each source to each destination
145146
for (const auto &src : sources) {
146147
for (const auto &dest : destinations) {
147-
testGenCopy(src.op, dest.op, src.result, dest.result, src.pointerType, builder);
148+
testGenCopy(src.op, dest.op, src.result, dest.result, src.pointerType,
149+
builder);
148150
}
149151
}
150152
}
@@ -253,12 +255,9 @@ void TestPointerLikeTypeInterfacePass::testGenFree(Operation *op, Value result,
253255
}
254256
}
255257

256-
void TestPointerLikeTypeInterfacePass::testGenCopy(Operation *srcOp,
257-
Operation *destOp,
258-
Value srcResult,
259-
Value destResult,
260-
PointerLikeType pointerType,
261-
OpBuilder &builder) {
258+
void TestPointerLikeTypeInterfacePass::testGenCopy(
259+
Operation *srcOp, Operation *destOp, Value srcResult, Value destResult,
260+
PointerLikeType pointerType, OpBuilder &builder) {
262261
Location loc = destOp->getLoc();
263262

264263
// Create a new builder with the listener and set insertion point

0 commit comments

Comments
 (0)