X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=scripts%2Fir_spec.py;h=9296d844954034b38731430db5feb909d9669f14;hb=2c8cc375a52fbfb9bdf15ebed6278a6d7b23a6ff;hp=4bf7842380e87bfab0221436c38780b407d6bcbd;hpb=54df083637219c3da80172bf8491fc0865c2ce54;p=libfirm diff --git a/scripts/ir_spec.py b/scripts/ir_spec.py index 4bf784238..9296d8449 100755 --- a/scripts/ir_spec.py +++ b/scripts/ir_spec.py @@ -446,7 +446,7 @@ class CopyB(Op): pinned_init = "op_pin_state_pinned" class Div(Op): - """returns the quotient of its 2 operands, integer version""" + """returns the quotient of its 2 operands""" ins = [ ("mem", "memory dependency"), ("left", "first operand"), @@ -477,34 +477,6 @@ class Div(Op): op_index = 1 arity_override = "oparity_binary" -class DivMod(Op): - """divides its 2 operands and computes the remainder of the division""" - ins = [ - ("mem", "memory dependency"), - ("left", "first operand"), - ("right", "second operand"), - ] - outs = [ - ("M", "memory result", "pn_Generic_M"), - ("X_regular", "control flow when no exception occurs", "pn_Generic_X_regular"), - ("X_except", "control flow when exception occured", "pn_Generic_X_except"), - ("res_div", "result of computation a/b", "pn_Generic_other"), - ("res_mod", "result of computation a%b"), - ] - flags = [ "fragile", "uses_memory" ] - attrs_name = "divmod" - attrs = [ - dict( - type = "ir_mode*", - name = "resmode", - comment = "mode of the result value", - ), - ] - attr_struct = "divmod_attr" - pinned = "exception" - op_index = 1 - arity_override = "oparity_binary" - class Dummy(Op): """A placeholder value. This is used when constructing cyclic graphs where you have cases where not all predecessors of a phi-node are known. Dummy @@ -766,33 +738,6 @@ class Proj(Op): ] attr_struct = "proj_attr" -class Quot(Op): - """returns the quotient of its 2 operands, floatingpoint version""" - ins = [ - ("mem", "memory dependency"), - ("left", "first operand"), - ("right", "second operand"), - ] - outs = [ - ("M", "memory result", "pn_Generic_M"), - ("X_regular", "control flow when no exception occurs", "pn_Generic_X_regular"), - ("X_except", "control flow when exception occured", "pn_Generic_X_except"), - ("res", "result of computation", "pn_Generic_other"), - ] - flags = [ "fragile", "uses_memory" ] - attrs_name = "divmod" - attrs = [ - dict( - type = "ir_mode*", - name = "resmode", - comment = "mode of the result value", - ), - ] - attr_struct = "divmod_attr" - pinned = "exception" - op_index = 1 - arity_override = "oparity_binary" - class Raise(Op): """Raises an exception. Unconditional change of control flow. Writes an explicit Except variable to memory to pass it to the exception handler.