enhance(compiler/lowlfhe): Give the runtime context as function argument instead of a global variable (close #195)

This commit is contained in:
Quentin Bourgerie
2021-11-26 18:02:12 +01:00
parent 99fe188e66
commit fb58dcc59d
14 changed files with 201 additions and 164 deletions

View File

@@ -70,6 +70,7 @@ MLIRLowerableDialectsToLLVMPass::convertTypes(mlir::Type type) {
type.isa<mlir::zamalang::LowLFHE::GlweCiphertextType>() ||
type.isa<mlir::zamalang::LowLFHE::LweKeySwitchKeyType>() ||
type.isa<mlir::zamalang::LowLFHE::LweBootstrapKeyType>() ||
type.isa<mlir::zamalang::LowLFHE::ContextType>() ||
type.isa<mlir::zamalang::LowLFHE::ForeignPlaintextListType>() ||
type.isa<mlir::zamalang::LowLFHE::PlaintextListType>()) {
return mlir::LLVM::LLVMPointerType::get(