Sort the enums in Attributes.h in case insensitive alphabetical order.
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 11 Nov 2015 02:11:46 +0000 (02:11 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 11 Nov 2015 02:11:46 +0000 (02:11 +0000)
Sort the enums in preparation for moving the attributes to a table-gen
file.

rdar://problem/19836465

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252692 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h
test/Analysis/BasicAA/intrinsics.ll
test/Analysis/TypeBasedAliasAnalysis/intrinsics.ll
test/Bitcode/compatibility-3.6.ll
test/Bitcode/compatibility-3.7.ll
test/Bitcode/compatibility.ll
test/Transforms/Inline/inline_invoke.ll
test/Transforms/MemCpyOpt/memcpy.ll
test/Transforms/ObjCARC/nested.ll

index b3984330b171193087e1e7d53bc9cff358dcf485..1e95e908dba7d47321bdf797fe76fbecb7c696d7 100644 (file)
@@ -68,12 +68,16 @@ public:
                            ///< stored as log2 of alignment with +1 bias
                            ///< 0 means unaligned (different from align(1))
     AlwaysInline,          ///< inline=always
+    ArgMemOnly,            ///< Funciton can access memory only using pointers
+                           ///< based on its arguments.
     Builtin,               ///< Callee is recognized as a builtin, despite
                            ///< nobuiltin attribute on its declaration.
     ByVal,                 ///< Pass structure by value
-    InAlloca,              ///< Pass structure in an alloca
     Cold,                  ///< Marks function as being in a cold path.
     Convergent,            ///< Can only be moved to control-equivalent blocks
+    Dereferenceable,       ///< Pointer is known to be dereferenceable
+    DereferenceableOrNull, ///< Pointer is either null or dereferenceable
+    InAlloca,              ///< Pass structure in an alloca
     InlineHint,            ///< Source said inlining was desirable
     InReg,                 ///< Force argument to be passed in register
     JumpTable,             ///< Build jump-instruction tables and replace refs.
@@ -86,12 +90,10 @@ public:
     NoDuplicate,           ///< Call cannot be duplicated
     NoImplicitFloat,       ///< Disable implicit floating point insts
     NoInline,              ///< inline=never
-    NoRecurse,             ///< The function does not recurse
     NonLazyBind,           ///< Function is called early and/or
                            ///< often, so lazy binding isn't worthwhile
     NonNull,               ///< Pointer is known to be not null
-    Dereferenceable,       ///< Pointer is known to be dereferenceable
-    DereferenceableOrNull, ///< Pointer is either null or dereferenceable
+    NoRecurse,             ///< The function does not recurse
     NoRedZone,             ///< Disable redzone
     NoReturn,              ///< Mark the function as not returning
     NoUnwind,              ///< Function doesn't unwind stack
@@ -99,10 +101,12 @@ public:
     OptimizeNone,          ///< Function must not be optimized.
     ReadNone,              ///< Function does not access memory
     ReadOnly,              ///< Function only reads from memory
-    ArgMemOnly,            ///< Funciton can access memory only using pointers
-                           ///< based on its arguments.
     Returned,              ///< Return value is always equal to this argument
     ReturnsTwice,          ///< Function can return twice
+    SafeStack,             ///< Safe Stack protection.
+    SanitizeAddress,       ///< AddressSanitizer is on.
+    SanitizeMemory,        ///< MemorySanitizer is on.
+    SanitizeThread,        ///< ThreadSanitizer is on.
     SExt,                  ///< Sign extended before/after call
     StackAlignment,        ///< Alignment of stack for function (3 bits)
                            ///< stored as log2 of alignment with +1 bias 0
@@ -111,11 +115,7 @@ public:
     StackProtect,          ///< Stack protection.
     StackProtectReq,       ///< Stack protection required.
     StackProtectStrong,    ///< Strong Stack protection.
-    SafeStack,             ///< Safe Stack protection.
     StructRet,             ///< Hidden pointer to structure to return
-    SanitizeAddress,       ///< AddressSanitizer is on.
-    SanitizeThread,        ///< ThreadSanitizer is on.
-    SanitizeMemory,        ///< MemorySanitizer is on.
     UWTable,               ///< Function must be in a unwind table
     ZExt,                  ///< Zero extended before/after call
 
index 50ddadd46b16d8aaea57c7273e9a5f6440984c77..526a039ef7ac7ba6fd5bd4c51127a4d98d0260b1 100644 (file)
@@ -38,6 +38,6 @@ entry:
 declare <8 x i16> @llvm.arm.neon.vld1.v8i16.p0i8(i8*, i32) nounwind readonly
 declare void @llvm.arm.neon.vst1.p0i8.v8i16(i8*, <8 x i16>, i32) nounwind
 
-; CHECK: attributes #0 = { nounwind readonly argmemonly }
-; CHECK: attributes #1 = { nounwind argmemonly }
+; CHECK: attributes #0 = { argmemonly nounwind readonly }
+; CHECK: attributes #1 = { argmemonly nounwind }
 ; CHECK: attributes [[ATTR]] = { nounwind }
index 2292e3917ff4b30b22394ce3a6c34f1ab15c8d82..197ef7e5196fa77e6fc60129b1b849f5e27d0816 100644 (file)
@@ -22,8 +22,8 @@ entry:
 declare <8 x i16> @llvm.arm.neon.vld1.v8i16.p0i8(i8*, i32) nounwind readonly
 declare void @llvm.arm.neon.vst1.p0i8.v8i16(i8*, <8 x i16>, i32) nounwind
 
-; CHECK: attributes #0 = { nounwind readonly argmemonly }
-; CHECK: attributes #1 = { nounwind argmemonly }
+; CHECK: attributes #0 = { argmemonly nounwind readonly }
+; CHECK: attributes #1 = { argmemonly nounwind }
 ; CHECK: attributes [[NUW]] = { nounwind }
 
 !0 = !{!"tbaa root", null}
index 1c2cf5124d1b9d1131f24e2beb8d5b1fcce2a8e1..87958fc34183a9abc045c0181a88be8a49a28376 100644 (file)
@@ -1180,8 +1180,8 @@ define void @intrinsics.codegen() {
 ; CHECK: attributes #27 = { uwtable }
 ; CHECK: attributes #28 = { "cpu"="cortex-a8" }
 ; CHECK: attributes #29 = { nounwind readnone }
-; CHECK: attributes #30 = { nounwind readonly argmemonly }
-; CHECK: attributes #31 = { nounwind argmemonly }
+; CHECK: attributes #30 = { argmemonly nounwind readonly }
+; CHECK: attributes #31 = { argmemonly nounwind }
 ; CHECK: attributes #32 = { nounwind readonly }
 ; CHECK: attributes #33 = { builtin }
 
index 662f916c7bcc7da7e4480bd8b4aeb039780968af..4ae0aed2018196705c0ad6abc2767db477c0c00b 100644 (file)
@@ -1243,8 +1243,8 @@ define void @misc.metadata() {
 ; CHECK: attributes #30 = { uwtable }
 ; CHECK: attributes #31 = { "cpu"="cortex-a8" }
 ; CHECK: attributes #32 = { nounwind readnone }
-; CHECK: attributes #33 = { nounwind readonly argmemonly }
-; CHECK: attributes #34 = { nounwind argmemonly }
+; CHECK: attributes #33 = { argmemonly nounwind readonly }
+; CHECK: attributes #34 = { argmemonly nounwind }
 ; CHECK: attributes #35 = { nounwind readonly }
 ; CHECK: attributes #36 = { builtin }
 
index 49689a992372b41e34a5e33376151db2e2f794d2..6c08a9302099fdd060562eccb44eab5f5060efb0 100644 (file)
@@ -1508,8 +1508,8 @@ normal:
 ; CHECK: attributes #31 = { "cpu"="cortex-a8" }
 ; CHECK: attributes #32 = { norecurse }
 ; CHECK: attributes #33 = { nounwind readnone }
-; CHECK: attributes #34 = { nounwind readonly argmemonly }
-; CHECK: attributes #35 = { nounwind argmemonly }
+; CHECK: attributes #34 = { argmemonly nounwind readonly }
+; CHECK: attributes #35 = { argmemonly nounwind }
 ; CHECK: attributes #36 = { nounwind readonly }
 ; CHECK: attributes #37 = { builtin }
 
index 8b666956c91d30360a995dcf11fe943ae8ef41d5..6784e16b1d872bc2f37cd109695d0f1c4162ac7e 100644 (file)
@@ -344,5 +344,5 @@ terminate:
 ; CHECK: attributes [[NUW]] = { nounwind }
 ; CHECK: attributes #1 = { nounwind readnone }
 ; CHECK: attributes #2 = { ssp uwtable }
-; CHECK: attributes #3 = { nounwind argmemonly }
+; CHECK: attributes #3 = { argmemonly nounwind }
 ; CHECK: attributes #4 = { noreturn nounwind }
index c091073db84db24181adf0d1c56b4908f7521071..6181543cfc63a7c2b6b121638ebe86e5942adda4 100644 (file)
@@ -206,6 +206,6 @@ declare void @f1(%struct.big* nocapture sret)
 declare void @f2(%struct.big*)
 
 ; CHECK: attributes [[NUW]] = { nounwind }
-; CHECK: attributes #1 = { nounwind argmemonly }
+; CHECK: attributes #1 = { argmemonly nounwind }
 ; CHECK: attributes #2 = { nounwind ssp }
 ; CHECK: attributes #3 = { nounwind ssp uwtable }
index 58cac76d1e602f2a286c4ae8c6956ee0500a764d..cf14a1f9a66346616b5ac8d819da87933f3eae47 100644 (file)
@@ -820,6 +820,6 @@ entry:
 }
 
 
-; CHECK: attributes #0 = { nounwind argmemonly }
+; CHECK: attributes #0 = { argmemonly nounwind }
 ; CHECK: attributes #1 = { nonlazybind }
 ; CHECK: attributes [[NUW]] = { nounwind }