llvm.org GIT mirror llvm / 97c1c6f
Sort the enums in Attributes.h in case insensitive alphabetical order. 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 Akira Hatanaka 4 years ago
9 changed file(s) with 23 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
6767 ///< stored as log2 of alignment with +1 bias
6868 ///< 0 means unaligned (different from align(1))
6969 AlwaysInline, ///< inline=always
70 ArgMemOnly, ///< Funciton can access memory only using pointers
71 ///< based on its arguments.
7072 Builtin, ///< Callee is recognized as a builtin, despite
7173 ///< nobuiltin attribute on its declaration.
7274 ByVal, ///< Pass structure by value
73 InAlloca, ///< Pass structure in an alloca
7475 Cold, ///< Marks function as being in a cold path.
7576 Convergent, ///< Can only be moved to control-equivalent blocks
77 Dereferenceable, ///< Pointer is known to be dereferenceable
78 DereferenceableOrNull, ///< Pointer is either null or dereferenceable
79 InAlloca, ///< Pass structure in an alloca
7680 InlineHint, ///< Source said inlining was desirable
7781 InReg, ///< Force argument to be passed in register
7882 JumpTable, ///< Build jump-instruction tables and replace refs.
8589 NoDuplicate, ///< Call cannot be duplicated
8690 NoImplicitFloat, ///< Disable implicit floating point insts
8791 NoInline, ///< inline=never
88 NoRecurse, ///< The function does not recurse
8992 NonLazyBind, ///< Function is called early and/or
9093 ///< often, so lazy binding isn't worthwhile
9194 NonNull, ///< Pointer is known to be not null
92 Dereferenceable, ///< Pointer is known to be dereferenceable
93 DereferenceableOrNull, ///< Pointer is either null or dereferenceable
95 NoRecurse, ///< The function does not recurse
9496 NoRedZone, ///< Disable redzone
9597 NoReturn, ///< Mark the function as not returning
9698 NoUnwind, ///< Function doesn't unwind stack
98100 OptimizeNone, ///< Function must not be optimized.
99101 ReadNone, ///< Function does not access memory
100102 ReadOnly, ///< Function only reads from memory
101 ArgMemOnly, ///< Funciton can access memory only using pointers
102 ///< based on its arguments.
103103 Returned, ///< Return value is always equal to this argument
104104 ReturnsTwice, ///< Function can return twice
105 SafeStack, ///< Safe Stack protection.
106 SanitizeAddress, ///< AddressSanitizer is on.
107 SanitizeMemory, ///< MemorySanitizer is on.
108 SanitizeThread, ///< ThreadSanitizer is on.
105109 SExt, ///< Sign extended before/after call
106110 StackAlignment, ///< Alignment of stack for function (3 bits)
107111 ///< stored as log2 of alignment with +1 bias 0
110114 StackProtect, ///< Stack protection.
111115 StackProtectReq, ///< Stack protection required.
112116 StackProtectStrong, ///< Strong Stack protection.
113 SafeStack, ///< Safe Stack protection.
114117 StructRet, ///< Hidden pointer to structure to return
115 SanitizeAddress, ///< AddressSanitizer is on.
116 SanitizeThread, ///< ThreadSanitizer is on.
117 SanitizeMemory, ///< MemorySanitizer is on.
118118 UWTable, ///< Function must be in a unwind table
119119 ZExt, ///< Zero extended before/after call
120120
3737 declare <8 x i16> @llvm.arm.neon.vld1.v8i16.p0i8(i8*, i32) nounwind readonly
3838 declare void @llvm.arm.neon.vst1.p0i8.v8i16(i8*, <8 x i16>, i32) nounwind
3939
40 ; CHECK: attributes #0 = { nounwind readonly argmemonly }
41 ; CHECK: attributes #1 = { nounwind argmemonly }
40 ; CHECK: attributes #0 = { argmemonly nounwind readonly }
41 ; CHECK: attributes #1 = { argmemonly nounwind }
4242 ; CHECK: attributes [[ATTR]] = { nounwind }
2121 declare <8 x i16> @llvm.arm.neon.vld1.v8i16.p0i8(i8*, i32) nounwind readonly
2222 declare void @llvm.arm.neon.vst1.p0i8.v8i16(i8*, <8 x i16>, i32) nounwind
2323
24 ; CHECK: attributes #0 = { nounwind readonly argmemonly }
25 ; CHECK: attributes #1 = { nounwind argmemonly }
24 ; CHECK: attributes #0 = { argmemonly nounwind readonly }
25 ; CHECK: attributes #1 = { argmemonly nounwind }
2626 ; CHECK: attributes [[NUW]] = { nounwind }
2727
2828 !0 = !{!"tbaa root", null}
11791179 ; CHECK: attributes #27 = { uwtable }
11801180 ; CHECK: attributes #28 = { "cpu"="cortex-a8" }
11811181 ; CHECK: attributes #29 = { nounwind readnone }
1182 ; CHECK: attributes #30 = { nounwind readonly argmemonly }
1183 ; CHECK: attributes #31 = { nounwind argmemonly }
1182 ; CHECK: attributes #30 = { argmemonly nounwind readonly }
1183 ; CHECK: attributes #31 = { argmemonly nounwind }
11841184 ; CHECK: attributes #32 = { nounwind readonly }
11851185 ; CHECK: attributes #33 = { builtin }
11861186
12421242 ; CHECK: attributes #30 = { uwtable }
12431243 ; CHECK: attributes #31 = { "cpu"="cortex-a8" }
12441244 ; CHECK: attributes #32 = { nounwind readnone }
1245 ; CHECK: attributes #33 = { nounwind readonly argmemonly }
1246 ; CHECK: attributes #34 = { nounwind argmemonly }
1245 ; CHECK: attributes #33 = { argmemonly nounwind readonly }
1246 ; CHECK: attributes #34 = { argmemonly nounwind }
12471247 ; CHECK: attributes #35 = { nounwind readonly }
12481248 ; CHECK: attributes #36 = { builtin }
12491249
15071507 ; CHECK: attributes #31 = { "cpu"="cortex-a8" }
15081508 ; CHECK: attributes #32 = { norecurse }
15091509 ; CHECK: attributes #33 = { nounwind readnone }
1510 ; CHECK: attributes #34 = { nounwind readonly argmemonly }
1511 ; CHECK: attributes #35 = { nounwind argmemonly }
1510 ; CHECK: attributes #34 = { argmemonly nounwind readonly }
1511 ; CHECK: attributes #35 = { argmemonly nounwind }
15121512 ; CHECK: attributes #36 = { nounwind readonly }
15131513 ; CHECK: attributes #37 = { builtin }
15141514
343343 ; CHECK: attributes [[NUW]] = { nounwind }
344344 ; CHECK: attributes #1 = { nounwind readnone }
345345 ; CHECK: attributes #2 = { ssp uwtable }
346 ; CHECK: attributes #3 = { nounwind argmemonly }
346 ; CHECK: attributes #3 = { argmemonly nounwind }
347347 ; CHECK: attributes #4 = { noreturn nounwind }
205205 declare void @f2(%struct.big*)
206206
207207 ; CHECK: attributes [[NUW]] = { nounwind }
208 ; CHECK: attributes #1 = { nounwind argmemonly }
208 ; CHECK: attributes #1 = { argmemonly nounwind }
209209 ; CHECK: attributes #2 = { nounwind ssp }
210210 ; CHECK: attributes #3 = { nounwind ssp uwtable }
819819 }
820820
821821
822 ; CHECK: attributes #0 = { nounwind argmemonly }
822 ; CHECK: attributes #0 = { argmemonly nounwind }
823823 ; CHECK: attributes #1 = { nonlazybind }
824824 ; CHECK: attributes [[NUW]] = { nounwind }