mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
enhance(compiler/lowlfhe): Give the runtime context as function argument instead of a global variable (close #195)
This commit is contained in:
@@ -140,7 +140,8 @@ lowerLowLFHEToStd(mlir::MLIRContext &context, mlir::ModuleOp &module,
|
||||
std::function<bool(mlir::Pass *)> enablePass) {
|
||||
mlir::PassManager pm(&context);
|
||||
pipelinePrinting("LowLFHEToStd", pm, context);
|
||||
pm.addPass(mlir::zamalang::createConvertLowLFHEToConcreteCAPIPass());
|
||||
addPotentiallyNestedPass(
|
||||
pm, mlir::zamalang::createConvertLowLFHEToConcreteCAPIPass(), enablePass);
|
||||
return pm.run(module.getOperation());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user