mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-19 00:44:22 -05:00
25 lines
771 B
C++
25 lines
771 B
C++
// Part of the Concrete Compiler Project, under the BSD3 License with Zama
|
|
// Exceptions. See
|
|
// https://github.com/zama-ai/concrete/blob/main/LICENSE.txt
|
|
// for license information.
|
|
|
|
#include "concretelang/Dialect/FHE/Interfaces/FHEInterfacesInstances.h"
|
|
#include "concretelang/Dialect/FHE/IR/FHEDialect.h"
|
|
#include "concretelang/Dialect/FHE/Interfaces/FHEInterfaces.h"
|
|
#include "mlir/Dialect/Tensor/IR/Tensor.h"
|
|
|
|
namespace mlir {
|
|
namespace concretelang {
|
|
namespace FHE {
|
|
|
|
using namespace mlir::tensor;
|
|
|
|
void registerFheInterfacesExternalModels(DialectRegistry ®istry) {
|
|
registry.addExtension(+[](MLIRContext *ctx, TensorDialect *dialect) {
|
|
ExtractOp::attachInterface<UnaryEint>(*ctx);
|
|
});
|
|
}
|
|
} // namespace FHE
|
|
} // namespace concretelang
|
|
} // namespace mlir
|