Skip to content

Commit b757c21

Browse files
committed
Generated declarations with header guards
1 parent 698ec8c commit b757c21

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

mlir/include/mlir/Dialect/OpenMP/OpenMPClauseOperands.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@
1515
#ifndef MLIR_DIALECT_OPENMP_OPENMPCLAUSEOPERANDS_H_
1616
#define MLIR_DIALECT_OPENMP_OPENMPCLAUSEOPERANDS_H_
1717

18+
#include "mlir/Dialect/OpenMP/OpenMPOpsAttributes.h"
1819
#include "mlir/IR/BuiltinAttributes.h"
1920
#include "llvm/ADT/SmallVector.h"
2021

21-
#include "mlir/Dialect/OpenMP/OpenMPOpsEnums.h.inc"
22-
23-
#define GET_ATTRDEF_CLASSES
24-
#include "mlir/Dialect/OpenMP/OpenMPOpsAttributes.h.inc"
25-
2622
#include "mlir/Dialect/OpenMP/OpenMPClauseOps.h.inc"
2723

2824
namespace mlir {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//===- OpenMPOpsAttributes.h ------------------------------------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, 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
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef MLIR_DIALECT_OPENMP_OPENMPOPSATTRIBUTES_H_
10+
#define MLIR_DIALECT_OPENMP_OPENMPOPSATTRIBUTES_H_
11+
12+
#include "mlir/Dialect/OpenMP/OpenMPOpsEnums.h"
13+
14+
#define GET_ATTRDEF_CLASSES
15+
#include "mlir/Dialect/OpenMP/OpenMPOpsAttributes.h.inc"
16+
17+
#endif // MLIR_DIALECT_OPENMP_OPENMPOPSATTRIBUTES_H_
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===- OpenMPOpsEnums.h -----------------------------------------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, 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
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef MLIR_DIALECT_OPENMP_OPENMPOPSENUMS_H_
10+
#define MLIR_DIALECT_OPENMP_OPENMPOPSENUMS_H_
11+
12+
#include "mlir/Dialect/OpenMP/OpenMPOpsEnums.h.inc"
13+
14+
#endif // MLIR_DIALECT_OPENMP_OPENMPOPSENUMS_H_

0 commit comments

Comments
 (0)