mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-18 08:31:31 -05:00
feat(compiler): Add support for tensor.{from_elements,dim} operations in TFHE passes
This commit is contained in:
@@ -371,6 +371,12 @@ void TFHEKeyNormalizationPass::runOnOperation() {
|
||||
mlir::concretelang::addDynamicallyLegalTypeOp<mlir::tensor::EmptyOp>(
|
||||
target, typeConverter);
|
||||
|
||||
patterns.add<
|
||||
mlir::concretelang::GenericTypeConverterPattern<mlir::tensor::DimOp>>(
|
||||
&getContext(), typeConverter);
|
||||
mlir::concretelang::addDynamicallyLegalTypeOp<mlir::tensor::DimOp>(
|
||||
target, typeConverter);
|
||||
|
||||
patterns.add<RegionOpTypeConverterPattern<mlir::linalg::GenericOp,
|
||||
conversion::TypeConverter>>(
|
||||
&getContext(), typeConverter);
|
||||
|
||||
Reference in New Issue
Block a user