@@ -543,14 +543,18 @@ def ScopeOp : CIR_Op<"scope", [DeclareOpInterfaceMethods<RegionBranchOpInterface
543543// UnaryOp
544544//===----------------------------------------------------------------------===//
545545
546- def UnaryOpKind_Inc : I32EnumAttrCase<"Inc", 1, "inc">;
547- def UnaryOpKind_Dec : I32EnumAttrCase<"Dec", 2, "dec">;
546+ def UnaryOpKind_Inc : I32EnumAttrCase<"Inc", 1, "inc">;
547+ def UnaryOpKind_Dec : I32EnumAttrCase<"Dec", 2, "dec">;
548+ def UnaryOpKind_Plus : I32EnumAttrCase<"Plus", 3, "plus">;
549+ def UnaryOpKind_Minus : I32EnumAttrCase<"Minus", 4, "minus">;
548550
549551def UnaryOpKind : I32EnumAttr<
550552 "UnaryOpKind",
551553 "unary operation kind",
552554 [UnaryOpKind_Inc,
553- UnaryOpKind_Dec]> {
555+ UnaryOpKind_Dec,
556+ UnaryOpKind_Plus,
557+ UnaryOpKind_Minus]> {
554558 let cppNamespace = "::mlir::cir";
555559}
556560
@@ -561,7 +565,7 @@ def UnaryOp : CIR_Op<"unary",
561565 let summary = "Unary operations";
562566 let description = [{
563567 `cir.unary` performs the unary operation according to
564- the specified opcode kind: [inc, dec].
568+ the specified opcode kind: [inc, dec, plus, minus ].
565569
566570 Note for inc and dec: the operation corresponds only to the
567571 addition/subtraction, its input is expect to come from a load
0 commit comments