1 #===- enumerations.py - Python LLVM Enumerations -------------*- python -*--===#
3 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 # See https://llvm.org/LICENSE.txt for license information.
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 #===------------------------------------------------------------------------===#
13 This file defines enumerations from LLVM.
15 Each enumeration is exposed as a list of 2-tuples. These lists are consumed by
16 dedicated types elsewhere in the package. The enumerations are centrally
17 defined in this file so they are easier to locate and maintain.
37 ('StructRet', 1 << 4),
43 ('ReadOnly', 1 << 10),
44 ('NoInline', 1 << 11),
45 ('AlwaysInline', 1 << 12),
46 ('OptimizeForSize', 1 << 13),
47 ('StackProtect', 1 << 14),
48 ('StackProtectReq', 1 << 15),
49 ('Alignment', 31 << 16),
50 ('NoCapture', 1 << 21),
51 ('NoRedZone', 1 << 22),
52 ('ImplicitFloat', 1 << 23),
54 ('InlineHint', 1 << 25),
55 ('StackAlignment', 7 << 26),
56 ('ReturnsTwice', 1 << 29),
58 ('NonLazyBind', 1 << 31),
89 ('GetElementPtr', 29),
110 ('ExtractElement', 50),
111 ('InsertElement', 51),
112 ('ShuffleVector', 52),
113 ('ExtractValue', 53),
116 ('AtomicCmpXchg', 56),
143 ('AvailableExternally', 1),
153 ('ExternalWeak', 11),
156 ('LinkerPrivate', 14),
157 ('LinkerPrivateWeak', 15),
158 ('LinkerPrivateWeakDefAuto', 16),
171 ('X86StdcallCall', 64),
172 ('X86FastcallCall', 65),
189 ('PredicateFalse', 0),
204 ('PredicateTrue', 15),
207 LandingPadClauseTy
= [