X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbearch.h;h=9c56e5233e018d19ca176a65bfa0051bde40ebce;hb=0318dc1a48ce72b311592c28affc31fabc95f026;hp=f6f133c433fa8273a29e042ca91ccf0eca7d0e0a;hpb=e44426021b5f23c05bcae04ee99d1e7afdd71b82;p=libfirm diff --git a/ir/be/bearch.h b/ir/be/bearch.h index f6f133c43..9c56e5233 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -40,6 +40,13 @@ #include "beirg.h" #include "error.h" +/** + * this constant is returned by the get_sp_bias functions if the stack + * is reset (usually because the frame pointer is copied to the stack + * pointer + */ +#define SP_BIAS_RESET INT_MIN + typedef enum arch_register_class_flags_t { arch_register_class_flag_none = 0, /** don't do automatic register allocation for this class */ @@ -628,7 +635,7 @@ static inline unsigned arch_irn_get_n_outs(const ir_node *node) if (info->out_infos == NULL) return 0; - return ARR_LEN(info->out_infos); + return (unsigned)ARR_LEN(info->out_infos); } static inline const arch_irn_ops_t *get_irn_ops_simple(const ir_node *node)