mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
refactor(rust): add Rust wrapper for every CStruct
we want to wrap CStructs in RustStructs to own them, and free memeory when they are no longer used. Users won't have to deal with the direct binded CAPI, but the new wrappers
This commit is contained in:
committed by
Quentin Bourgerie
parent
aa2e0479b3
commit
8c6a0859cd
@@ -129,16 +129,27 @@ typedef enum CompilationTarget CompilationTarget;
|
||||
|
||||
/// ********** CompilationOptions CAPI *****************************************
|
||||
|
||||
MLIR_CAPI_EXPORTED CompilationOptions compilationOptionsCreate();
|
||||
MLIR_CAPI_EXPORTED CompilationOptions compilationOptionsCreate(
|
||||
MlirStringRef funcName, bool autoParallelize, bool batchConcreteOps,
|
||||
bool dataflowParallelize, bool emitGPUOps, bool loopParallelize,
|
||||
bool optimizeConcrete, OptimizerConfig optimizerConfig,
|
||||
bool verifyDiagnostics);
|
||||
|
||||
MLIR_CAPI_EXPORTED CompilationOptions compilationOptionsCreateDefault();
|
||||
|
||||
MLIR_CAPI_EXPORTED void compilationOptionsDestroy(CompilationOptions options);
|
||||
|
||||
/// ********** OptimizerConfig CAPI ********************************************
|
||||
|
||||
MLIR_CAPI_EXPORTED OptimizerConfig optimizerConfigCreate();
|
||||
MLIR_CAPI_EXPORTED OptimizerConfig
|
||||
optimizerConfigCreate(bool display, double fallback_log_norm_woppbs,
|
||||
double global_p_error, double p_error, uint64_t security,
|
||||
bool strategy_v0, bool use_gpu_constraints);
|
||||
|
||||
MLIR_CAPI_EXPORTED OptimizerConfig optimizerConfigCreateDefault();
|
||||
|
||||
MLIR_CAPI_EXPORTED void optimizerConfigDestroy(OptimizerConfig config);
|
||||
|
||||
/// ********** CompilerEngine CAPI *********************************************
|
||||
|
||||
MLIR_CAPI_EXPORTED CompilerEngine compilerEngineCreate();
|
||||
@@ -224,6 +235,9 @@ MLIR_CAPI_EXPORTED BufferRef clientParametersSerialize(ClientParameters params);
|
||||
MLIR_CAPI_EXPORTED ClientParameters
|
||||
clientParametersUnserialize(BufferRef buffer);
|
||||
|
||||
MLIR_CAPI_EXPORTED ClientParameters
|
||||
clientParametersCopy(ClientParameters params);
|
||||
|
||||
MLIR_CAPI_EXPORTED void clientParametersDestroy(ClientParameters params);
|
||||
|
||||
/// ********** KeySet CAPI *****************************************************
|
||||
|
||||
Reference in New Issue
Block a user