mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
refactor(compiler): Rename SubIntGLWEOp to SubGLWEIntOp
Rename `SubIntGLWEOp` to `SubGLWEIntOp` for a consistent naming scheme of all TFHE ops.
This commit is contained in:
@@ -24,11 +24,11 @@ def AddEintPattern : Pat<
|
||||
(AddEintOp:$result $arg0, $arg1),
|
||||
(createAddGLWEOp $arg0, $arg1, $result)>;
|
||||
|
||||
def createSubIntGLWEOp : NativeCodeCall<"mlir::concretelang::createGLWEOpFromFHE<mlir::concretelang::TFHE::SubIntGLWEOp>($_builder, $_loc, $0, $1, $2)">;
|
||||
def createSubGLWEIntOp : NativeCodeCall<"mlir::concretelang::createGLWEOpFromFHE<mlir::concretelang::TFHE::SubGLWEIntOp>($_builder, $_loc, $0, $1, $2)">;
|
||||
|
||||
def SubIntEintPattern : Pat<
|
||||
(SubIntEintOp:$result $arg0, $arg1),
|
||||
(createSubIntGLWEOp $arg0, $arg1, $result)>;
|
||||
(createSubGLWEIntOp $arg0, $arg1, $result)>;
|
||||
|
||||
def createNegGLWEOp : NativeCodeCall<"mlir::concretelang::createGLWEOpFromFHE<mlir::concretelang::TFHE::NegGLWEOp>($_builder, $_loc, $0, $1)">;
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ def MulGLWEIntPattern : Pat<
|
||||
|
||||
def createSubIntLweOp : NativeCodeCall<"mlir::concretelang::createSubIntLweCiphertext($_builder, $_loc, $0, $1, $2)">;
|
||||
|
||||
def SubIntGLWEPattern : Pat<
|
||||
(SubIntGLWEOp:$result $arg0, $arg1),
|
||||
def SubGLWEIntPattern : Pat<
|
||||
(SubGLWEIntOp:$result $arg0, $arg1),
|
||||
(createSubIntLweOp $arg0, $arg1, $result)>;
|
||||
|
||||
def createNegLweOp : NativeCodeCall<"mlir::concretelang::createNegLweCiphertext($_builder, $_loc, $0, $1)">;
|
||||
|
||||
@@ -51,7 +51,7 @@ def AddGLWEOp : TFHE_Op<"add_glwe"> {
|
||||
let hasVerifier = 1;
|
||||
}
|
||||
|
||||
def SubIntGLWEOp : TFHE_Op<"sub_int_glwe"> {
|
||||
def SubGLWEIntOp : TFHE_Op<"sub_int_glwe"> {
|
||||
let summary = "Substracts an integer and a GLWE ciphertext";
|
||||
|
||||
let arguments = (ins AnyInteger : $a, GLWECipherTextType : $b);
|
||||
|
||||
Reference in New Issue
Block a user