mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat: lower LowLFHE types (apply_lut) to llvm.ptr
This commit is contained in:
committed by
Quentin Bourgerie
parent
6e2ac3af4e
commit
ea3c940f4a
@@ -64,7 +64,12 @@ void MLIRLowerableDialectsToLLVMPass::runOnOperation() {
|
||||
|
||||
llvm::Optional<mlir::Type>
|
||||
MLIRLowerableDialectsToLLVMPass::convertTypes(mlir::Type type) {
|
||||
if (type.isa<mlir::zamalang::LowLFHE::LweCiphertextType>()) {
|
||||
if (type.isa<mlir::zamalang::LowLFHE::LweCiphertextType>() ||
|
||||
type.isa<mlir::zamalang::LowLFHE::GlweCiphertextType>() ||
|
||||
type.isa<mlir::zamalang::LowLFHE::LweKeySwitchKeyType>() ||
|
||||
type.isa<mlir::zamalang::LowLFHE::LweBootstrapKeyType>() ||
|
||||
type.isa<mlir::zamalang::LowLFHE::ForeignPlaintextListType>() ||
|
||||
type.isa<mlir::zamalang::LowLFHE::PlaintextListType>()) {
|
||||
return mlir::LLVM::LLVMPointerType::get(
|
||||
mlir::IntegerType::get(type.getContext(), 64));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user