-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1058 from ahmedshakill:secret_to_cggi
PiperOrigin-RevId: 687473368
- Loading branch information
Showing
21 changed files
with
119 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
lib/Dialect/Secret/Conversions/SecretToCGGI/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
add_heir_pass(SecretToCGGI) | ||
|
||
add_mlir_dialect_library(HEIRSecretToCGGI | ||
SecretToCGGI.cpp | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
${CMAKE_CURRENT_SOURCE_DIR}/IR | ||
|
||
DEPENDS | ||
HEIRSecretToCGGIIncGen | ||
|
||
LINK_LIBS PUBLIC | ||
|
||
MLIRHEIRUtils | ||
MLIRCGGI | ||
MLIRComb | ||
MLIRLWE | ||
MLIRSecret | ||
|
||
LLVMSupport | ||
MLIRAffineDialect | ||
MLIRAffineUtils | ||
MLIRArithDialect | ||
MLIRDialectUtils | ||
MLIRIR | ||
MLIRMemRefDialect | ||
MLIRPass | ||
MLIRSupport | ||
MLIRTransformUtils | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
lib/Dialect/Secret/Conversions/SecretToCGGI/SecretToCGGI.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef LIB_DIALECT_SECRET_CONVERSIONS_SECRETTOCGGI_SECRETTOCGGI_H_ | ||
#define LIB_DIALECT_SECRET_CONVERSIONS_SECRETTOCGGI_SECRETTOCGGI_H_ | ||
|
||
#include "mlir/include/mlir/Pass/Pass.h" // from @llvm-project | ||
|
||
namespace mlir::heir { | ||
|
||
#define GEN_PASS_DECL | ||
#include "lib/Dialect/Secret/Conversions/SecretToCGGI/SecretToCGGI.h.inc" | ||
|
||
#define GEN_PASS_REGISTRATION | ||
#include "lib/Dialect/Secret/Conversions/SecretToCGGI/SecretToCGGI.h.inc" | ||
|
||
} // namespace mlir::heir | ||
|
||
#endif // LIB_DIALECT_SECRET_CONVERSIONS_SECRETTOCGGI_SECRETTOCGGI_H_ |
20 changes: 20 additions & 0 deletions
20
lib/Dialect/Secret/Conversions/SecretToCGGI/SecretToCGGI.td
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef LIB_DIALECT_SECRET_CONVERSIONS_SECRETTOCGGI_SECRETTOCGGI_TD_ | ||
#define LIB_DIALECT_SECRET_CONVERSIONS_SECRETTOCGGI_SECRETTOCGGI_TD_ | ||
|
||
include "mlir/Pass/PassBase.td" | ||
|
||
def SecretToCGGI : Pass<"secret-to-cggi"> { | ||
let summary = "Lower `secret` to `cggi` dialect."; | ||
|
||
let description = [{ | ||
This pass lowers the `secret` dialect to `cggi` dialect. | ||
}]; | ||
|
||
let dependentDialects = [ | ||
"mlir::heir::comb::CombDialect", | ||
"mlir::heir::cggi::CGGIDialect", | ||
"mlir::memref::MemRefDialect", | ||
]; | ||
} | ||
|
||
#endif // LIB_DIALECT_SECRET_CONVERSIONS_SECRETTOCGGI_SECRETTOCGGI_TD_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...omb/Conversions/comb_to_cggi/add_one.mlir → ...t/Conversions/secret_to_cggi/add_one.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onversions/comb_to_cggi/add_one_bool.mlir → ...versions/secret_to_cggi/add_one_bool.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mb/Conversions/comb_to_cggi/bool_ops.mlir → .../Conversions/secret_to_cggi/bool_ops.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Conversions/comb_to_cggi/memref_ops.mlir → ...onversions/secret_to_cggi/memref_ops.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Conversions/comb_to_cggi/secret_cast.mlir → ...nversions/secret_to_cggi/secret_cast.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...versions/comb_to_cggi/secret_generic.mlir → ...rsions/secret_to_cggi/secret_generic.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Conversions/comb_to_cggi/truth_table.mlir → ...nversions/secret_to_cggi/truth_table.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Comb/Conversions/comb_to_cggi/types.mlir → ...ret/Conversions/secret_to_cggi/types.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters