Correct documentation of return value.
[libfirm] / include / libfirm / typerep.h
index 42f1233..760f53f 100644 (file)
@@ -122,43 +122,6 @@ typedef enum {
                              This serves better as opposition to description _and_ inherited.*/
 } ir_peculiarity;
 
-/**
- * Additional method type properties:
- * Tell about special properties of a method type. Some
- * of these may be discovered by analyses.
- */
-typedef enum {
-       mtp_no_property            = 0x00000000, /**< no additional properties, default */
-       mtp_property_const         = 0x00000001, /**< This method did not access memory and calculates
-                                                     its return values solely from its parameters.
-                                                     GCC: __attribute__((const)). */
-       mtp_property_pure          = 0x00000002, /**< This method did NOT write to memory and calculates
-                                                     its return values solely from its parameters and
-                                                     the memory they points to (or global vars).
-                                                     GCC: __attribute__((pure)). */
-       mtp_property_noreturn      = 0x00000004, /**< This method did not return due to an aborting system
-                                                     call.
-                                                     GCC: __attribute__((noreturn)). */
-       mtp_property_nothrow       = 0x00000008, /**< This method cannot throw an exception.
-                                                     GCC: __attribute__((nothrow)). */
-       mtp_property_naked         = 0x00000010, /**< This method is naked.
-                                                     GCC: __attribute__((naked)). */
-       mtp_property_malloc        = 0x00000020, /**< This method returns newly allocate memory.
-                                                     GCC: __attribute__((malloc)). */
-       mtp_property_weak          = 0x00000040, /**< This method is weak. It is expected that
-                                                     GCC: __attribute__((weak)). */
-       mtp_property_returns_twice = 0x00000080, /**< This method can return more than one (typically setjmp).
-                                                  GCC: __attribute__((returns_twice)). */
-       mtp_property_intrinsic     = 0x00000100, /**< This method is intrinsic. It is expected that
-                                                     a lowering phase will remove all calls to it. */
-       mtp_property_runtime       = 0x00000200, /**< This method represents a runtime routine. */
-       mtp_property_private       = 0x00000400, /**< All method invocations are known, the backend is free to
-                                                     optimize the call in any possible way. */
-       mtp_property_has_loop      = 0x00000800, /**< Set, if this method contains one possible endless loop. */
-       mtp_property_inherited     = (1<<31)     /**< Internal. Used only in irg's, means property is
-                                                     inherited from type. */
-} mtp_additional_property;
-
 /**
  * Creates a new entity.
  *
@@ -1712,14 +1675,6 @@ void remove_class_supertype(ir_type *clss, ir_type *supertype);
 #define set_class_base_type(clss, basetype, pos)   set_class_supertype(clss, basetype, pos)
 #define remove_class_base_type(clss, basetype)     remove_class_supertype(clss, basetype)
 
-/** Convenience macro */
-#define add_class_base_type(clss, basetype)        add_class_supertype(clss, basetype)
-#define get_class_n_base_types(clss)               get_class_n_supertypes(clss)
-#define get_class_base_type_index(clss, base_clss) get_class_supertype_index(clss, base_clss)
-#define get_class_base_type(clss, pos)             get_class_supertype(clss, pos)
-#define set_class_base_type(clss, basetype, pos)   set_class_supertype(clss, basetype, pos)
-#define remove_class_base_type(clss, basetype)     remove_class_supertype(clss, basetype)
-
 /** Returns a human readable string for a peculiarity. */
 const char *get_peculiarity_name(ir_peculiarity p);