Skip to content

Commit

Permalink
code style change
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYang328 committed Sep 26, 2024
1 parent 6bd6bb5 commit d0d67fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 6 additions & 0 deletions examples/TraceDialect/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
log.mlir
log.ll
log.s
log.o
a.out

4 changes: 2 additions & 2 deletions midend/lib/Conversion/LowerTrace/LowerTracePass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace {
class TraceStartLowering : public OpRewritePattern<trace::TimeStartOp> {
public:
using OpRewritePattern<trace::TimeStartOp>::OpRewritePattern;

// TODO: will use our own runtime functions.
LogicalResult matchAndRewrite(trace::TimeStartOp op,
PatternRewriter &rewriter) const override {
auto loc = op.getLoc();
Expand Down Expand Up @@ -77,7 +77,7 @@ class TraceStartLowering : public OpRewritePattern<trace::TimeStartOp> {
class TraceEndLowering : public OpRewritePattern<trace::TimeEndOp> {
public:
using OpRewritePattern<trace::TimeEndOp>::OpRewritePattern;

// TODO: will use our own runtime functions.
LogicalResult matchAndRewrite(trace::TimeEndOp op,
PatternRewriter &rewriter) const override {
auto loc = op.getLoc();
Expand Down
3 changes: 1 addition & 2 deletions midend/lib/Dialect/Trace/TraceDialect.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//===- TraceDialect.cpp - Trace Dialect Definition-------------------*- C++
//-*-===//
//===- TraceDialect.cpp - Trace Dialect Definition----------------*- C++-*-===//
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
3 changes: 1 addition & 2 deletions midend/lib/Dialect/Trace/TraceOps.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//===- TraceOps.cpp - Trace Dialect Ops -----------------------------*- C++
//-*-===//
//===- TraceOps.cpp - Trace Dialect Ops --------------------------*- C++-*-===//
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit d0d67fc

Please sign in to comment.