Skip to content

Commit

Permalink
Remove commented printer/parser
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarice committed Nov 15, 2024
1 parent 1392206 commit 52e7756
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions xdsl/dialects/arith.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,31 +175,6 @@ def from_int_and_width(
properties={"value": IntegerAttr(value, value_type)},
)

# def print(self, printer: Printer):
# printer.print_op_attributes(self.attributes)

# printer.print(" ")
# printer.print_attribute(self.value)

# @classmethod
# def parse(cls: type[Constant], parser: Parser) -> Constant:
# attrs = parser.parse_optional_attr_dict()

# p0 = parser.pos
# value = parser.parse_attribute()

# if not isattr(
# value,
# base(AnyIntegerAttr)
# | base(FloatAttr[AnyFloat])
# | base(DenseIntOrFPElementsAttr),
# ):
# parser.raise_error("Invalid constant value", p0, parser.pos)

# c = Constant(value)
# c.attributes.update(attrs)
# return c


_T = TypeVar("_T", bound=Attribute)

Expand Down

0 comments on commit 52e7756

Please sign in to comment.