@@ -29,7 +29,7 @@ public enum FunctionAttribute: String {
2929 /// This attribute indicates that the function may only access memory that is
3030 /// either not accessible by the module being compiled, or is pointed to by
3131 /// its pointer arguments.
32- case inaccessiblemem_or_argmemonly
32+ case inaccessiblememOrArgmemonly = " inaccessiblemem_or_argmemonly "
3333 /// This attribute indicates that the source code contained a hint that inlin
3434 /// inlining this function is desirable (such as the “inline” keyword in
3535 /// C/C++).
@@ -48,7 +48,7 @@ public enum FunctionAttribute: String {
4848 case naked
4949 /// When this attribute is set to true, the jump tables and lookup tables
5050 /// that can be generated from a switch case lowering are disabled.
51- case no_jump_tables = " no-jump-tables "
51+ case noJumpTables = " no-jump-tables "
5252 /// This indicates that the callee function at a call site is not recognized
5353 /// as a built-in function.
5454 case nobuiltin
@@ -84,10 +84,10 @@ public enum FunctionAttribute: String {
8484 /// This attribute tells the code generator that the code generated for this
8585 /// function needs to follow certain conventions that make it possible for a
8686 /// runtime function to patch over it later.
87- case patchable_function = " patchable-function "
87+ case patchableFunction = " patchable-function "
8888 /// This attribute indicates that the function will trigger a guard region in
8989 /// the end of the stack.
90- case probe_stack = " probe-stack "
90+ case probeStack = " probe-stack "
9191 /// This attribute indicates that the function computes its result (or
9292 /// decides to unwind an exception) based strictly on its arguments, without
9393 /// dereferencing any pointer arguments or otherwise accessing any mutable
@@ -99,9 +99,9 @@ public enum FunctionAttribute: String {
9999 case readonly
100100 /// This attribute controls the behavior of stack probes: either the
101101 /// "probe-stack" attribute, or ABI-required stack probes, if any.
102- case stack_proble_size = " stack-probe-size "
102+ case stackProbleSize = " stack-probe-size "
103103 /// This attribute disables ABI-required stack probes, if any.
104- case no_stack_arg_probe = " no-stack-arg-probe "
104+ case noStackArgProbe = " no-stack-arg-probe "
105105 /// This attribute indicates that the function may write to but does not read
106106 /// read from memory.
107107 case writeonly
@@ -110,22 +110,22 @@ public enum FunctionAttribute: String {
110110 /// arguments, with arbitrary offsets.
111111 case argmemonly
112112 /// This attribute indicates that this function can return twice.
113- case returns_twice
113+ case returnsTwice = " returns_twice "
114114 /// This attribute indicates that SafeStack protection is enabled for this
115115 /// function.
116116 case safestack
117117 /// This attribute indicates that AddressSanitizer checks (dynamic address
118118 /// safety analysis) are enabled for this function.
119- case sanitize_address
119+ case sanitizeAddress = " sanitize_address "
120120 /// This attribute indicates that MemorySanitizer checks (dynamic detection
121121 /// of accesses to uninitialized memory) are enabled for this function.
122- case sanitize_memory
122+ case sanitizeMemory = " sanitize_memory "
123123 /// This attribute indicates that ThreadSanitizer checks (dynamic thread
124124 /// safety analysis) are enabled for this function.
125- case sanitize_thread
125+ case sanitizeThread = " sanitize_thread "
126126 /// This attribute indicates that HWAddressSanitizer checks (dynamic address
127127 /// safety analysis based on tagged pointers) are enabled for this function.
128- case sanitize_hwaddress
128+ case sanitizeHWAddress = " sanitize_hwaddress "
129129 /// This function attribute indicates that the function does not have any
130130 /// effects besides calculating its result and does not have undefined
131131 /// behavior.
@@ -194,7 +194,7 @@ public enum FunctionAttribute: String {
194194 case dereferenceable
195195 /// This indicates that the parameter or return value isn’t both non-null and
196196 /// non-dereferenceable (up to `n` bytes) at the same time.
197- case dereferenceable_or_null
197+ case dereferenceableOrNull = " dereferenceable_or_null "
198198 /// This indicates that the parameter is the self/context parameter.
199199 case swiftself
200200 /// This attribute is motivated to model and optimize Swift error handling.
0 commit comments