Skip to content

Commit 639a90b

Browse files
committed
fix clang check
1 parent ec3e6aa commit 639a90b

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

lib/gc/Transforms/AnyTilableFusion.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
//===----------------------------------------------------------------------===//
2-
//===- AnyTilableFusion.cpp - the Fusion for any tilable MLIR operation --*- C++
3-
//-*-=//
4-
//-*-===//
1+
//===-- AnyTilableFusion.cpp - Fusion For Any Tilable Op --------*- C++ -*-===//
52
//
63
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
74
// See https://llvm.org/LICENSE.txt for license information.
@@ -198,7 +195,7 @@ class ProducerFusionAnchor : public FusionAnchorBase<tensor::ExtractSliceOp> {
198195
public:
199196
ProducerFusionAnchor(
200197
RewriterBase &rewriter, Operation *producerOp, OpResult producerValue,
201-
SmallVector<tensor::ExtractSliceOp> candidateExtractSliceOpList)
198+
ArrayRef<tensor::ExtractSliceOp> candidateExtractSliceOpList)
202199
: FusionAnchorBase<tensor::ExtractSliceOp>(producerOp) {
203200
auto candidateList = llvm::map_to_vector(
204201
candidateExtractSliceOpList,
@@ -222,7 +219,7 @@ class ConsumerFusionAnchor
222219
public:
223220
ConsumerFusionAnchor(
224221
RewriterBase &rewriter, Operation *consumerOp, OpOperand &consumerValue,
225-
SmallVector<OffsetSizeAndStrideOpInterface> candidateInsertSliceOpList)
222+
ArrayRef<OffsetSizeAndStrideOpInterface> candidateInsertSliceOpList)
226223
: FusionAnchorBase<OffsetSizeAndStrideOpInterface>(consumerOp) {
227224
if (auto linalgOp = dyn_cast<linalg::LinalgOp>(consumerOp)) {
228225
appendCandidateWithVerifyTileSizes(
@@ -439,7 +436,7 @@ static SmallVector<Operation *> postOpFuseConsumerOfOpResult(
439436
if (failed(consAnchorList))
440437
return tiledConsumerList;
441438

442-
// sorted by userList and position in parentBlock
439+
// TODO: sorted by userList and position in parentBlock
443440
for (auto &consAnchor : *consAnchorList) {
444441
if (alreadyTiledOps.count(consAnchor.getFusableOp()))
445442
continue;

lib/gc/Transforms/TilingUsingInterfaceX.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
//===- Implementation of tiling using TilingInterface -------===//
1+
//===-- TilingUsingInterfaceX.cpp - upstream eXtension ---------*- C++ -*-===//
22
//
3-
// This file is only temporarily used to extend upstream or upcoming utility in
4-
// TilingInterface, which finally aims for upstream.
3+
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
56
//
67
//===----------------------------------------------------------------------===//
78

lib/gc/Transforms/TilingUsingInterfaceX.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
//===- TileUsingInterface.h - Tiling ops using TilingInterface --*- C++ -*-===//
1+
//===-- TilingUsingInterfaceX.h - upstream eXtension -----------*- C++ -*-===//
22
//
3-
// This file is only temporarily used to extend upstream or upcoming utility in
4-
// TilingInterface, which finally aims for upstream.
3+
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
56
//
67
//===----------------------------------------------------------------------===//
78

0 commit comments

Comments
 (0)