Skip to content

Commit

Permalink
hpp=>h, pragma once => #ifndef
Browse files Browse the repository at this point in the history
  • Loading branch information
mbezuljTT committed Nov 27, 2024
1 parent 71921d8 commit 4028b7b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#pragma once
#ifndef TTMLIR_OPMODEL_TTNN_TTNNOPMODEL_H
#define TTMLIR_OPMODEL_TTNN_TTNNOPMODEL_H

#include "ttmlir/Dialect/TTNN/IR/TTNNOpsAttrs.h"

Expand All @@ -20,3 +21,4 @@ struct ReluOpInterface {
};

} // namespace mlir::tt::op_model::ttnn
#endif // TTMLIR_OPMODEL_TTNN_TTNNOPMODEL_H
2 changes: 1 addition & 1 deletion lib/Dialect/TTNN/IR/TTNNOpModelInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "ttmlir/Dialect/TTNN/IR/TTNNOps.h"

#include "ttmlir/Dialect/TTNN/IR/TTNNOpModelInterface.cpp.inc"
#include "ttmlir/OpModel/TTNN/TTNNOpModel.hpp"
#include "ttmlir/OpModel/TTNN/TTNNOpModel.h"

#include <cassert>
#include <tuple>
Expand Down
4 changes: 2 additions & 2 deletions lib/OpModel/TTNN/TTNNOpModelLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "TTNNOpModel.hpp"
#include "TTNNOpModel.h"

#include "TTNNOpModelLib_Impl.hpp"
#include "TTNNOpModelLib_Impl.h"
#include "ttmlir/Dialect/TT/IR/TTOpsTypes.h"

#include <llvm/Support/Casting.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// SPDX-FileCopyrightText: (c) 2024 Tenstorrent AI ULC
//
// SPDX-License-Identifier: Apache-2.0
#pragma once

#ifndef TTMLIR_OPMODEL_TTNN_TTNNOPMODELLIB_IMPL_H
#define TTMLIR_OPMODEL_TTNN_TTNNOPMODELLIB_IMPL_H

// This header resolves tt-metal warnings that would otherwise be treated as
// errors in the MLIR build. Ensure that this is the only place where tt-metal
Expand Down Expand Up @@ -44,6 +46,7 @@
#pragma clang diagnostic ignored "-Wc99-extensions"
#pragma clang diagnostic ignored "-Wc++11-narrowing"
#pragma clang diagnostic ignored "-Wzero-length-array"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

#define FMT_HEADER_ONLY

Expand All @@ -53,3 +56,5 @@
#include "ttnn/tensor/types.hpp"

#pragma clang diagnostic pop

#endif // TTMLIR_OPMODEL_TTNN_TTNNOPMODELLIB_IMPL_H
2 changes: 1 addition & 1 deletion lib/OpModel/TTNN/TTNNOpModelLib_disabled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "TTNNOpModel.hpp"
#include "TTNNOpModel.h"

namespace mlir::tt::op_model::ttnn {

Expand Down

0 comments on commit 4028b7b

Please sign in to comment.