Skip to content

Commit d5ab397

Browse files
j2kuncopybara-github
authored andcommitted
secret: add more includes
PiperOrigin-RevId: 599260785
1 parent 56b4dca commit d5ab397

File tree

6 files changed

+41
-6
lines changed

6 files changed

+41
-6
lines changed

lib/Dialect/Secret/IR/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ cc_library(
4444
"@llvm-project//llvm:Support",
4545
"@llvm-project//mlir:AffineAnalysis",
4646
"@llvm-project//mlir:AffineDialect",
47+
"@llvm-project//mlir:ArithDialect",
4748
"@llvm-project//mlir:ControlFlowInterfaces",
4849
"@llvm-project//mlir:IR",
4950
"@llvm-project//mlir:InferTypeOpInterface",
5051
"@llvm-project//mlir:MemRefDialect",
51-
"@llvm-project//mlir:SideEffectInterfaces",
5252
"@llvm-project//mlir:Support",
5353
],
5454
)

lib/Dialect/Secret/IR/SecretOps.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
#include "include/Dialect/Secret/IR/SecretOps.h"
22

3+
#include <algorithm>
4+
#include <cassert>
35
#include <memory>
46
#include <utility>
57

68
#include "include/Dialect/Secret/IR/SecretPatterns.h"
79
#include "include/Dialect/Secret/IR/SecretTypes.h"
10+
#include "llvm/include/llvm/ADT/STLExtras.h" // from @llvm-project
11+
#include "llvm/include/llvm/ADT/SmallVector.h" // from @llvm-project
812
#include "llvm/include/llvm/Support/Casting.h" // from @llvm-project
913
#include "mlir/include/mlir/IR/Attributes.h" // from @llvm-project
1014
#include "mlir/include/mlir/IR/Block.h" // from @llvm-project
1115
#include "mlir/include/mlir/IR/Builders.h" // from @llvm-project
1216
#include "mlir/include/mlir/IR/IRMapping.h" // from @llvm-project
17+
#include "mlir/include/mlir/IR/Location.h" // from @llvm-project
18+
#include "mlir/include/mlir/IR/MLIRContext.h" // from @llvm-project
1319
#include "mlir/include/mlir/IR/OpImplementation.h" // from @llvm-project
1420
#include "mlir/include/mlir/IR/OperationSupport.h" // from @llvm-project
1521
#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project

lib/Dialect/Secret/IR/SecretPatterns.cpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
#include "include/Dialect/Secret/IR/SecretPatterns.h"
22

3+
#include <cassert>
4+
35
#include "include/Dialect/Secret/IR/SecretOps.h"
46
#include "include/Dialect/Secret/IR/SecretTypes.h"
5-
#include "llvm/include/llvm/ADT/TypeSwitch.h" // from @llvm-project
7+
#include "llvm/include/llvm/ADT/SmallVector.h" // from @llvm-project
8+
#include "llvm/include/llvm/ADT/TypeSwitch.h" // from @llvm-project
69
#include "mlir/include/mlir/Dialect/Affine/Analysis/AffineAnalysis.h" // from @llvm-project
710
#include "mlir/include/mlir/Dialect/Affine/IR/AffineOps.h" // from @llvm-project
811
#include "mlir/include/mlir/Dialect/Affine/IR/AffineValueMap.h" // from @llvm-project
12+
#include "mlir/include/mlir/Dialect/Arith/IR/Arith.h" // from @llvm-project
913
#include "mlir/include/mlir/Dialect/MemRef/IR/MemRef.h" // from @llvm-project
14+
#include "mlir/include/mlir/IR/AffineExpr.h" // from @llvm-project
15+
#include "mlir/include/mlir/IR/Block.h" // from @llvm-project
16+
#include "mlir/include/mlir/IR/BuiltinTypes.h" // from @llvm-project
1017
#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project
11-
#include "mlir/include/mlir/Interfaces/SideEffectInterfaces.h" // from @llvm-project
18+
#include "mlir/include/mlir/IR/Region.h" // from @llvm-project
19+
#include "mlir/include/mlir/IR/Types.h" // from @llvm-project
20+
#include "mlir/include/mlir/IR/Value.h" // from @llvm-project
21+
#include "mlir/include/mlir/IR/ValueRange.h" // from @llvm-project
22+
#include "mlir/include/mlir/IR/Visitors.h" // from @llvm-project
23+
#include "mlir/include/mlir/Support/LLVM.h" // from @llvm-project
24+
#include "mlir/include/mlir/Support/LogicalResult.h" // from @llvm-project
1225

1326
namespace mlir {
1427
namespace heir {

lib/Dialect/Secret/Transforms/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ cc_library(
2626
],
2727
deps = [
2828
"@heir//include/Dialect/Secret/Transforms:pass_inc_gen",
29-
"@heir//lib/Dialect/Secret/IR:Dialect",
3029
"@heir//lib/Dialect/Secret/IR:SecretOps",
30+
"@llvm-project//llvm:Support",
3131
"@llvm-project//mlir:FuncDialect",
3232
"@llvm-project//mlir:FuncTransforms",
3333
"@llvm-project//mlir:IR",
3434
"@llvm-project//mlir:Pass",
35+
"@llvm-project//mlir:Support",
3536
"@llvm-project//mlir:Transforms",
3637
],
3738
)
@@ -44,7 +45,6 @@ cc_library(
4445
],
4546
deps = [
4647
"@heir//include/Dialect/Secret/Transforms:pass_inc_gen",
47-
"@heir//lib/Dialect/Secret/IR:SecretOps",
4848
"@heir//lib/Dialect/Secret/IR:SecretPatterns",
4949
"@llvm-project//llvm:Support",
5050
"@llvm-project//mlir:FuncDialect",

lib/Dialect/Secret/Transforms/DistributeGeneric.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#include "include/Dialect/Secret/Transforms/DistributeGeneric.h"
22

33
#include <algorithm>
4+
#include <cassert>
5+
#include <optional>
6+
#include <string>
47
#include <utility>
58

69
#include "include/Dialect/Secret/IR/SecretOps.h"
710
#include "include/Dialect/Secret/IR/SecretPatterns.h"
811
#include "include/Dialect/Secret/IR/SecretTypes.h"
12+
#include "llvm/include/llvm/ADT/STLExtras.h" // from @llvm-project
913
#include "llvm/include/llvm/ADT/SmallVector.h" // from @llvm-project
1014
#include "llvm/include/llvm/Support/Casting.h" // from @llvm-project
1115
#include "llvm/include/llvm/Support/Debug.h" // from @llvm-project
@@ -16,6 +20,7 @@
1620
#include "mlir/include/mlir/IR/IRMapping.h" // from @llvm-project
1721
#include "mlir/include/mlir/IR/Location.h" // from @llvm-project
1822
#include "mlir/include/mlir/IR/MLIRContext.h" // from @llvm-project
23+
#include "mlir/include/mlir/IR/OpDefinition.h" // from @llvm-project
1924
#include "mlir/include/mlir/IR/Operation.h" // from @llvm-project
2025
#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project
2126
#include "mlir/include/mlir/IR/Types.h" // from @llvm-project

lib/Dialect/Secret/Transforms/ForgetSecrets.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
#include "include/Dialect/Secret/Transforms/ForgetSecrets.h"
22

3+
#include <cassert>
4+
#include <utility>
5+
6+
#include "include/Dialect/Secret/IR/SecretDialect.h"
37
#include "include/Dialect/Secret/IR/SecretOps.h"
8+
#include "include/Dialect/Secret/IR/SecretTypes.h"
9+
#include "llvm/include/llvm/Support/ErrorHandling.h" // from @llvm-project
410
#include "mlir/include/mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project
511
#include "mlir/include/mlir/Dialect/Func/Transforms/FuncConversions.h" // from @llvm-project
6-
#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project
12+
#include "mlir/include/mlir/IR/Builders.h" // from @llvm-project
13+
#include "mlir/include/mlir/IR/Location.h" // from @llvm-project
14+
#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project
15+
#include "mlir/include/mlir/IR/ValueRange.h" // from @llvm-project
16+
#include "mlir/include/mlir/Support/LLVM.h" // from @llvm-project
17+
#include "mlir/include/mlir/Support/LogicalResult.h" // from @llvm-project
718
#include "mlir/include/mlir/Transforms/DialectConversion.h" // from @llvm-project
819

920
namespace mlir {

0 commit comments

Comments
 (0)