X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=scripts%2Fir_spec.py;h=7399034465817f96980a4b15be33653a49597dab;hb=b9a1bfdbce56c76bd4d5ff772963628523ecfc41;hp=b144814b83cba833e7cc9acb21083f76e14edfa6;hpb=76a6cf6ff4e6fdcf17c8e8530f006b538f1d954c;p=libfirm diff --git a/scripts/ir_spec.py b/scripts/ir_spec.py index b144814b8..739903446 100755 --- a/scripts/ir_spec.py +++ b/scripts/ir_spec.py @@ -240,33 +240,6 @@ class Block: } ''' -@op -class Borrow(Binop): - """Returns the borrow bit from and implied subtractions of its 2 operands""" - flags = [] - -@op -class Bound: - """Performs a bounds-check: if lower <= index < upper then return index, - otherwise throw an exception.""" - ins = [ - ("mem", "memory dependency"), - ("index", "value to test"), - ("lower", "lower bound (inclusive)"), - ("upper", "upper bound (exclusive)"), - ] - outs = [ - ("M", "memory result"), - ("res", "the checked index"), - ("X_regular", "control flow when no exception occurs"), - ("X_except", "control flow when exception occured"), - ] - flags = [ "fragile", "highlevel" ] - pinned = "exception" - pinned_init = "op_pin_state_pinned" - throws_init = "false" - attr_struct = "bound_attr" - @op class Builtin: """performs a backend-specific builtin.""" @@ -333,27 +306,6 @@ class Call: assert((get_unknown_type() == type) || is_Method_type(type)); ''' -@op -class Carry(Binop): - """Computes the value of the carry-bit that would result when adding the 2 - operands""" - flags = [ "commutative" ] - -@op -class Cast(Unop): - """perform a high-level type cast""" - mode = "get_irn_mode(irn_op)" - flags = [ "highlevel" ] - attrs = [ - dict( - type = "ir_type*", - name = "type", - comment = "target type of the case", - ) - ] - attr_struct = "cast_attr" - init = "assert(is_atomic_type(type));" - @op class Cmp(Binop): """Compares its two operands and checks whether a specified