X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Ffirm_types.h;h=fbf73f759877235ba9fa42bff03deb94955162d1;hb=4d64d1d8ea625cc6075a0086671c525a162726a0;hp=38d74138200e316af7b43d02d677b854bdb83327;hpb=1c5a82cb98819fe69b15792da6951bea5bc9cd2d;p=libfirm diff --git a/include/libfirm/firm_types.h b/include/libfirm/firm_types.h index 38d741382..fbf73f759 100644 --- a/include/libfirm/firm_types.h +++ b/include/libfirm/firm_types.h @@ -99,6 +99,15 @@ typedef enum { exception or uses memory, else can float. Used internally. */ } op_pin_state; +/** + * A type to express conditional jump predictions. + */ +typedef enum { + COND_JMP_PRED_NONE, /**< No jump prediction. Default. */ + COND_JMP_PRED_TRUE, /**< The True case is predicted. */ + COND_JMP_PRED_FALSE /**< The False case is predicted. */ +} cond_jmp_predicate; + /** * Additional method type properties: * Tell about special properties of a method type. Some @@ -194,6 +203,16 @@ typedef enum { ir_bk_inner_trampoline, /**< address of a trampoline for GCC inner functions */ } ir_builtin_kind; +/** + * Some projection numbers must be always equal to support automatic phi construction + */ +enum pn_generic { + pn_Generic_M = 0, /**< The memory result. */ + pn_Generic_X_regular = 1, /**< Execution result if no exception occurred. */ + pn_Generic_X_except = 2, /**< The control flow result branching to the exception handler */ + pn_Generic_other = 3 /**< First free projection number */ +}; + #include "end.h" #endif