[llvm-commits] [llvm] r166760 - /llvm/trunk/include/llvm/Attributes.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Oct 26 09:02:36 PDT 2012


On Oct 26, 2012, at 12:08 AM, Bill Wendling wrote:

> Author: void
> Date: Fri Oct 26 02:08:58 2012
> New Revision: 166760
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=166760&view=rev
> Log:
> Alphabetize the enum list.

If the numbers don't matter, could you remove them completely?

/jakob

> 
> Modified:
>    llvm/trunk/include/llvm/Attributes.h
> 
> Modified: llvm/trunk/include/llvm/Attributes.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Attributes.h?rev=166760&r1=166759&r2=166760&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Attributes.h (original)
> +++ llvm/trunk/include/llvm/Attributes.h Fri Oct 26 02:08:58 2012
> @@ -58,34 +58,34 @@
>                            ///< 0 means unaligned different from align 1
>     AlwaysInline    = 3,   ///< inline=always
>     ByVal           = 4,   ///< Pass structure by value
> -    InlineHint      = 5,   ///< Source said inlining was desirable
> -    InReg           = 6,   ///< Force argument to be passed in register
> -    Naked           = 7,   ///< Naked function
> -    Nest            = 8,   ///< Nested function static chain
> -    NoAlias         = 9,   ///< Considered to not alias after call
> -    NoCapture       = 10,  ///< Function creates no aliases of pointer
> -    NoImplicitFloat = 11,  ///< Disable implicit floating point insts
> -    NoInline        = 12,  ///< inline=never
> -    NonLazyBind     = 13,  ///< Function is called early and/or
> +    ForceSizeOpt    = 5,   ///< Function must be optimized for size first
> +    InlineHint      = 6,   ///< Source said inlining was desirable
> +    InReg           = 7,   ///< Force argument to be passed in register
> +    Naked           = 8,   ///< Naked function
> +    Nest            = 9,   ///< Nested function static chain
> +    NoAlias         = 10,  ///< Considered to not alias after call
> +    NoCapture       = 11,  ///< Function creates no aliases of pointer
> +    NoImplicitFloat = 12,  ///< Disable implicit floating point insts
> +    NoInline        = 13,  ///< inline=never
> +    NonLazyBind     = 14,  ///< Function is called early and/or
>                            ///< often, so lazy binding isn't worthwhile
> -    NoRedZone       = 14,  ///< Disable redzone
> -    NoReturn        = 15,  ///< Mark the function as not returning
> -    NoUnwind        = 16,  ///< Function doesn't unwind stack
> -    OptimizeForSize = 17,  ///< opt_size
> -    ReadNone        = 18,  ///< Function does not access memory
> -    ReadOnly        = 19,  ///< Function only reads from memory
> -    ReturnsTwice    = 20,  ///< Function can return twice
> -    SExt            = 21,  ///< Sign extended before/after call
> -    StackAlignment  = 22,  ///< Alignment of stack for function (3 bits)
> +    NoRedZone       = 15,  ///< Disable redzone
> +    NoReturn        = 16,  ///< Mark the function as not returning
> +    NoUnwind        = 17,  ///< Function doesn't unwind stack
> +    OptimizeForSize = 18,  ///< opt_size
> +    ReadNone        = 19,  ///< Function does not access memory
> +    ReadOnly        = 20,  ///< Function only reads from memory
> +    ReturnsTwice    = 21,  ///< Function can return twice
> +    SExt            = 22,  ///< Sign extended before/after call
> +    StackAlignment  = 23,  ///< Alignment of stack for function (3 bits)
>                            ///< stored as log2 of alignment with +1 bias 0
>                            ///< means unaligned (different from
>                            ///< alignstack={1))
> -    StackProtect    = 23,  ///< Stack protection.
> -    StackProtectReq = 24,  ///< Stack protection required.
> -    StructRet       = 25,  ///< Hidden pointer to structure to return
> -    UWTable         = 26,  ///< Function must be in a unwind table
> -    ZExt            = 27,  ///< Zero extended before/after call
> -    ForceSizeOpt    = 28  ///< Function must be optimized for size first
> +    StackProtect    = 24,  ///< Stack protection.
> +    StackProtectReq = 25,  ///< Stack protection required.
> +    StructRet       = 26,  ///< Hidden pointer to structure to return
> +    UWTable         = 27,  ///< Function must be in a unwind table
> +    ZExt            = 28   ///< Zero extended before/after call
>   };
> private:
>   AttributesImpl *Attrs;
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list