Commit 26869e2 1 parent 295c44f commit 26869e2 Copy full SHA for 26869e2
File tree 5 files changed +52
-13
lines changed
5 files changed +52
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#pragma once
4
4
5
- #include " mlir/IR/BuiltinOps.h"
6
- #include " mlir/IR/BuiltinTypes.h"
7
- #include " mlir/IR/Dialect.h"
8
- #include " mlir/IR/OperationSupport.h"
9
- #include " mlir/Interfaces/SideEffectInterfaces.h"
5
+ #include " vast/Util/Warnings.hpp"
6
+
7
+ VAST_RELAX_WARNINGS
8
+ #include < mlir/IR/BuiltinOps.h>
9
+ #include < mlir/IR/BuiltinTypes.h>
10
+ #include < mlir/IR/Dialect.h>
11
+ #include < mlir/IR/OperationSupport.h>
12
+ #include < mlir/Interfaces/SideEffectInterfaces.h>
13
+ VAST_RELAX_WARNINGS
10
14
11
15
#include " vast/Dialect/HighLevel/HighLevelTypes.hpp"
12
16
#include " vast/Dialect/HighLevel/HighLevelDialect.h.inc"
Original file line number Diff line number Diff line change 2
2
3
3
#pragma once
4
4
5
- #include " mlir/IR/MLIRContext.h"
6
- #include " mlir/IR/TypeSupport.h"
7
- #include " clang/AST/Type.h"
8
- #include " llvm/ADT/Hashing.h"
9
- #include " mlir/IR/Builders.h"
10
- #include " mlir/IR/Dialect.h"
5
+ #include " vast/Util/Warnings.hpp"
6
+
7
+ VAST_RELAX_WARNINGS
8
+ #include < mlir/IR/MLIRContext.h>
9
+ #include < mlir/IR/TypeSupport.h>
10
+ #include < mlir/IR/Builders.h>
11
+ #include < mlir/IR/Dialect.h>
12
+
13
+ #include < clang/AST/Type.h>
14
+
15
+ #include < llvm/ADT/Hashing.h>
16
+ VAST_UNRELAX_WARNINGS
11
17
12
18
namespace vast ::hl
13
19
{
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2021-present, Trail of Bits, Inc.
2
2
3
+ #pragma once
4
+
5
+ #include " vast/Util/Warnings.hpp"
6
+
7
+ VAST_RELAX_WARNINGS
3
8
#include < mlir/IR/BuiltinTypes.h>
4
- #include < clang/AST/Type.h>
5
9
#include < mlir/IR/MLIRContext.h>
6
- # include < clang/AST/ASTContext.h >
10
+
7
11
#include < clang/AST/AST.h>
12
+ #include < clang/AST/ASTContext.h>
13
+ #include < clang/AST/Type.h>
14
+ VAST_UNRELAX_WARNINGS
8
15
9
16
namespace vast ::hl
10
17
{
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2021 Trail of Bits, Inc.
3
+ */
4
+
5
+ #pragma once
6
+
7
+ #define VAST_RELAX_WARNINGS \
8
+ _Pragma ( " clang diagnostic push" ) \
9
+ _Pragma( " clang diagnostic ignored \" -Wsign-conversion\" " ) \
10
+ _Pragma( " clang diagnostic ignored \" -Wconversion\" " ) \
11
+ _Pragma( " clang diagnostic ignored \" -Wold-style-cast\" " ) \
12
+ _Pragma( " clang diagnostic ignored \" -Wunused-parameter\" " ) \
13
+ _Pragma( " clang diagnostic ignored \" -Wcast-align\" " ) \
14
+ _Pragma( " clang diagnostic ignored \" -Wimplicit-int-conversion\" " )
15
+
16
+ #define VAST_UNRELAX_WARNINGS \
17
+ _Pragma ( " clang diagnostic pop" )
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2021-present, Trail of Bits, Inc.
2
2
3
+ #include " vast/Util/Warnings.hpp"
4
+
5
+ VAST_RELAX_WARNINGS
3
6
#include < mlir/IR/Location.h>
4
7
#include < mlir/IR/MLIRContext.h>
5
8
#include < mlir/IR/BuiltinOps.h>
37
40
#include < llvm/Support/Debug.h>
38
41
#include < llvm/ADT/None.h>
39
42
#include < llvm/Support/ErrorHandling.h>
43
+ VAST_UNRELAX_WARNINGS
40
44
41
45
#include " vast/Translation/Types.hpp"
42
46
#include " vast/Dialect/HighLevel/HighLevel.hpp"
50
54
#include < cstdio>
51
55
#include < cstdlib>
52
56
#include < fstream>
57
+ #include < optional>
53
58
54
59
#define DEBUG_TYPE " vast-from-source"
55
60
You can’t perform that action at this time.
0 commit comments