From d5ab3970d8e89f0e7b28dec7d98f35c4cf3663af Mon Sep 17 00:00:00 2001 From: Jeremy Kun Date: Wed, 17 Jan 2024 12:52:54 -0800 Subject: [PATCH] secret: add more includes PiperOrigin-RevId: 599260785 --- lib/Dialect/Secret/IR/BUILD | 2 +- lib/Dialect/Secret/IR/SecretOps.cpp | 6 ++++++ lib/Dialect/Secret/IR/SecretPatterns.cpp | 17 +++++++++++++++-- lib/Dialect/Secret/Transforms/BUILD | 4 ++-- .../Secret/Transforms/DistributeGeneric.cpp | 5 +++++ lib/Dialect/Secret/Transforms/ForgetSecrets.cpp | 13 ++++++++++++- 6 files changed, 41 insertions(+), 6 deletions(-) diff --git a/lib/Dialect/Secret/IR/BUILD b/lib/Dialect/Secret/IR/BUILD index babfddb98..1c4e4c5b0 100644 --- a/lib/Dialect/Secret/IR/BUILD +++ b/lib/Dialect/Secret/IR/BUILD @@ -44,11 +44,11 @@ cc_library( "@llvm-project//llvm:Support", "@llvm-project//mlir:AffineAnalysis", "@llvm-project//mlir:AffineDialect", + "@llvm-project//mlir:ArithDialect", "@llvm-project//mlir:ControlFlowInterfaces", "@llvm-project//mlir:IR", "@llvm-project//mlir:InferTypeOpInterface", "@llvm-project//mlir:MemRefDialect", - "@llvm-project//mlir:SideEffectInterfaces", "@llvm-project//mlir:Support", ], ) diff --git a/lib/Dialect/Secret/IR/SecretOps.cpp b/lib/Dialect/Secret/IR/SecretOps.cpp index ca32d544b..ff49571eb 100644 --- a/lib/Dialect/Secret/IR/SecretOps.cpp +++ b/lib/Dialect/Secret/IR/SecretOps.cpp @@ -1,15 +1,21 @@ #include "include/Dialect/Secret/IR/SecretOps.h" +#include +#include #include #include #include "include/Dialect/Secret/IR/SecretPatterns.h" #include "include/Dialect/Secret/IR/SecretTypes.h" +#include "llvm/include/llvm/ADT/STLExtras.h" // from @llvm-project +#include "llvm/include/llvm/ADT/SmallVector.h" // from @llvm-project #include "llvm/include/llvm/Support/Casting.h" // from @llvm-project #include "mlir/include/mlir/IR/Attributes.h" // from @llvm-project #include "mlir/include/mlir/IR/Block.h" // from @llvm-project #include "mlir/include/mlir/IR/Builders.h" // from @llvm-project #include "mlir/include/mlir/IR/IRMapping.h" // from @llvm-project +#include "mlir/include/mlir/IR/Location.h" // from @llvm-project +#include "mlir/include/mlir/IR/MLIRContext.h" // from @llvm-project #include "mlir/include/mlir/IR/OpImplementation.h" // from @llvm-project #include "mlir/include/mlir/IR/OperationSupport.h" // from @llvm-project #include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project diff --git a/lib/Dialect/Secret/IR/SecretPatterns.cpp b/lib/Dialect/Secret/IR/SecretPatterns.cpp index 86313d64f..0cb6eb568 100644 --- a/lib/Dialect/Secret/IR/SecretPatterns.cpp +++ b/lib/Dialect/Secret/IR/SecretPatterns.cpp @@ -1,14 +1,27 @@ #include "include/Dialect/Secret/IR/SecretPatterns.h" +#include + #include "include/Dialect/Secret/IR/SecretOps.h" #include "include/Dialect/Secret/IR/SecretTypes.h" -#include "llvm/include/llvm/ADT/TypeSwitch.h" // from @llvm-project +#include "llvm/include/llvm/ADT/SmallVector.h" // from @llvm-project +#include "llvm/include/llvm/ADT/TypeSwitch.h" // from @llvm-project #include "mlir/include/mlir/Dialect/Affine/Analysis/AffineAnalysis.h" // from @llvm-project #include "mlir/include/mlir/Dialect/Affine/IR/AffineOps.h" // from @llvm-project #include "mlir/include/mlir/Dialect/Affine/IR/AffineValueMap.h" // from @llvm-project +#include "mlir/include/mlir/Dialect/Arith/IR/Arith.h" // from @llvm-project #include "mlir/include/mlir/Dialect/MemRef/IR/MemRef.h" // from @llvm-project +#include "mlir/include/mlir/IR/AffineExpr.h" // from @llvm-project +#include "mlir/include/mlir/IR/Block.h" // from @llvm-project +#include "mlir/include/mlir/IR/BuiltinTypes.h" // from @llvm-project #include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project -#include "mlir/include/mlir/Interfaces/SideEffectInterfaces.h" // from @llvm-project +#include "mlir/include/mlir/IR/Region.h" // from @llvm-project +#include "mlir/include/mlir/IR/Types.h" // from @llvm-project +#include "mlir/include/mlir/IR/Value.h" // from @llvm-project +#include "mlir/include/mlir/IR/ValueRange.h" // from @llvm-project +#include "mlir/include/mlir/IR/Visitors.h" // from @llvm-project +#include "mlir/include/mlir/Support/LLVM.h" // from @llvm-project +#include "mlir/include/mlir/Support/LogicalResult.h" // from @llvm-project namespace mlir { namespace heir { diff --git a/lib/Dialect/Secret/Transforms/BUILD b/lib/Dialect/Secret/Transforms/BUILD index 9a2a792d8..3e3645c60 100644 --- a/lib/Dialect/Secret/Transforms/BUILD +++ b/lib/Dialect/Secret/Transforms/BUILD @@ -26,12 +26,13 @@ cc_library( ], deps = [ "@heir//include/Dialect/Secret/Transforms:pass_inc_gen", - "@heir//lib/Dialect/Secret/IR:Dialect", "@heir//lib/Dialect/Secret/IR:SecretOps", + "@llvm-project//llvm:Support", "@llvm-project//mlir:FuncDialect", "@llvm-project//mlir:FuncTransforms", "@llvm-project//mlir:IR", "@llvm-project//mlir:Pass", + "@llvm-project//mlir:Support", "@llvm-project//mlir:Transforms", ], ) @@ -44,7 +45,6 @@ cc_library( ], deps = [ "@heir//include/Dialect/Secret/Transforms:pass_inc_gen", - "@heir//lib/Dialect/Secret/IR:SecretOps", "@heir//lib/Dialect/Secret/IR:SecretPatterns", "@llvm-project//llvm:Support", "@llvm-project//mlir:FuncDialect", diff --git a/lib/Dialect/Secret/Transforms/DistributeGeneric.cpp b/lib/Dialect/Secret/Transforms/DistributeGeneric.cpp index 406455651..c0d92d9c3 100644 --- a/lib/Dialect/Secret/Transforms/DistributeGeneric.cpp +++ b/lib/Dialect/Secret/Transforms/DistributeGeneric.cpp @@ -1,11 +1,15 @@ #include "include/Dialect/Secret/Transforms/DistributeGeneric.h" #include +#include +#include +#include #include #include "include/Dialect/Secret/IR/SecretOps.h" #include "include/Dialect/Secret/IR/SecretPatterns.h" #include "include/Dialect/Secret/IR/SecretTypes.h" +#include "llvm/include/llvm/ADT/STLExtras.h" // from @llvm-project #include "llvm/include/llvm/ADT/SmallVector.h" // from @llvm-project #include "llvm/include/llvm/Support/Casting.h" // from @llvm-project #include "llvm/include/llvm/Support/Debug.h" // from @llvm-project @@ -16,6 +20,7 @@ #include "mlir/include/mlir/IR/IRMapping.h" // from @llvm-project #include "mlir/include/mlir/IR/Location.h" // from @llvm-project #include "mlir/include/mlir/IR/MLIRContext.h" // from @llvm-project +#include "mlir/include/mlir/IR/OpDefinition.h" // from @llvm-project #include "mlir/include/mlir/IR/Operation.h" // from @llvm-project #include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project #include "mlir/include/mlir/IR/Types.h" // from @llvm-project diff --git a/lib/Dialect/Secret/Transforms/ForgetSecrets.cpp b/lib/Dialect/Secret/Transforms/ForgetSecrets.cpp index f57a76aa6..e67d63c42 100644 --- a/lib/Dialect/Secret/Transforms/ForgetSecrets.cpp +++ b/lib/Dialect/Secret/Transforms/ForgetSecrets.cpp @@ -1,9 +1,20 @@ #include "include/Dialect/Secret/Transforms/ForgetSecrets.h" +#include +#include + +#include "include/Dialect/Secret/IR/SecretDialect.h" #include "include/Dialect/Secret/IR/SecretOps.h" +#include "include/Dialect/Secret/IR/SecretTypes.h" +#include "llvm/include/llvm/Support/ErrorHandling.h" // from @llvm-project #include "mlir/include/mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/include/mlir/Dialect/Func/Transforms/FuncConversions.h" // from @llvm-project -#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project +#include "mlir/include/mlir/IR/Builders.h" // from @llvm-project +#include "mlir/include/mlir/IR/Location.h" // from @llvm-project +#include "mlir/include/mlir/IR/PatternMatch.h" // from @llvm-project +#include "mlir/include/mlir/IR/ValueRange.h" // from @llvm-project +#include "mlir/include/mlir/Support/LLVM.h" // from @llvm-project +#include "mlir/include/mlir/Support/LogicalResult.h" // from @llvm-project #include "mlir/include/mlir/Transforms/DialectConversion.h" // from @llvm-project namespace mlir {