File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -128,22 +128,62 @@ pub enum RealPredicate {
128
128
129
129
// The LLVM TypeKind type - must stay in sync with the def of
130
130
// LLVMTypeKind in llvm/include/llvm-c/Core.h
131
+ #[ cfg( not( stage0) ) ]
132
+ #[ deriving( Eq ) ]
133
+ #[ repr( C ) ]
134
+ pub enum TypeKind {
135
+ Void = 0 ,
136
+ Half = 1 ,
137
+ Float = 2 ,
138
+ Double = 3 ,
139
+ X86_FP80 = 4 ,
140
+ FP128 = 5 ,
141
+ PPC_FP128 = 6 ,
142
+ Label = 7 ,
143
+ Integer = 8 ,
144
+ Function = 9 ,
145
+ Struct = 10 ,
146
+ Array = 11 ,
147
+ Pointer = 12 ,
148
+ Vector = 13 ,
149
+ Metadata = 14 ,
150
+ X86_MMX = 15 ,
151
+ }
152
+
153
+ // NOTE remove these after snapshot. (See also #10308.)
154
+ #[ cfg( stage0) ]
131
155
pub type TypeKind = u32 ;
156
+ #[ cfg( stage0) ]
132
157
pub static Void : TypeKind = 0 ;
158
+ #[ cfg( stage0) ]
133
159
pub static Half : TypeKind = 1 ;
160
+ #[ cfg( stage0) ]
134
161
pub static Float : TypeKind = 2 ;
162
+ #[ cfg( stage0) ]
135
163
pub static Double : TypeKind = 3 ;
164
+ #[ cfg( stage0) ]
136
165
pub static X86_FP80 : TypeKind = 4 ;
166
+ #[ cfg( stage0) ]
137
167
pub static FP128 : TypeKind = 5 ;
168
+ #[ cfg( stage0) ]
138
169
pub static PPC_FP128 : TypeKind = 6 ;
170
+ #[ cfg( stage0) ]
139
171
pub static Label : TypeKind = 7 ;
172
+ #[ cfg( stage0) ]
140
173
pub static Integer : TypeKind = 8 ;
174
+ #[ cfg( stage0) ]
141
175
pub static Function : TypeKind = 9 ;
176
+ #[ cfg( stage0) ]
142
177
pub static Struct : TypeKind = 10 ;
178
+ #[ cfg( stage0) ]
143
179
pub static Array : TypeKind = 11 ;
180
+ #[ cfg( stage0) ]
144
181
pub static Pointer : TypeKind = 12 ;
182
+ #[ cfg( stage0) ]
145
183
pub static Vector : TypeKind = 13 ;
184
+ #[ cfg( stage0) ]
146
185
pub static Metadata : TypeKind = 14 ;
186
+ #[ cfg( stage0) ]
147
187
pub static X86_MMX : TypeKind = 15 ;
148
188
149
189
#[ repr( C ) ]
You can’t perform that action at this time.
0 commit comments