@@ -19,7 +19,6 @@ use libc::{c_uint, c_int, size_t, c_char};
19
19
use libc:: { c_ulonglong, c_void} ;
20
20
21
21
use std:: marker:: PhantomData ;
22
- use common;
23
22
use rustc_codegen_utils;
24
23
use syntax;
25
24
@@ -184,24 +183,26 @@ pub enum RealPredicate {
184
183
}
185
184
186
185
impl RealPredicate {
187
- pub fn from_generic ( realpred : common:: RealPredicate ) -> Self {
186
+ pub fn from_generic ( realpred : rustc_codegen_utils :: common:: RealPredicate ) -> Self {
188
187
match realpred {
189
- common:: RealPredicate :: RealPredicateFalse => RealPredicate :: RealPredicateFalse ,
190
- common:: RealPredicate :: RealOEQ => RealPredicate :: RealOEQ ,
191
- common:: RealPredicate :: RealOGT => RealPredicate :: RealOGT ,
192
- common:: RealPredicate :: RealOGE => RealPredicate :: RealOGE ,
193
- common:: RealPredicate :: RealOLT => RealPredicate :: RealOLT ,
194
- common:: RealPredicate :: RealOLE => RealPredicate :: RealOLE ,
195
- common:: RealPredicate :: RealONE => RealPredicate :: RealONE ,
196
- common:: RealPredicate :: RealORD => RealPredicate :: RealORD ,
197
- common:: RealPredicate :: RealUNO => RealPredicate :: RealUNO ,
198
- common:: RealPredicate :: RealUEQ => RealPredicate :: RealUEQ ,
199
- common:: RealPredicate :: RealUGT => RealPredicate :: RealUGT ,
200
- common:: RealPredicate :: RealUGE => RealPredicate :: RealUGE ,
201
- common:: RealPredicate :: RealULT => RealPredicate :: RealULT ,
202
- common:: RealPredicate :: RealULE => RealPredicate :: RealULE ,
203
- common:: RealPredicate :: RealUNE => RealPredicate :: RealUNE ,
204
- common:: RealPredicate :: RealPredicateTrue => RealPredicate :: RealPredicateTrue
188
+ rustc_codegen_utils:: common:: RealPredicate :: RealPredicateFalse =>
189
+ RealPredicate :: RealPredicateFalse ,
190
+ rustc_codegen_utils:: common:: RealPredicate :: RealOEQ => RealPredicate :: RealOEQ ,
191
+ rustc_codegen_utils:: common:: RealPredicate :: RealOGT => RealPredicate :: RealOGT ,
192
+ rustc_codegen_utils:: common:: RealPredicate :: RealOGE => RealPredicate :: RealOGE ,
193
+ rustc_codegen_utils:: common:: RealPredicate :: RealOLT => RealPredicate :: RealOLT ,
194
+ rustc_codegen_utils:: common:: RealPredicate :: RealOLE => RealPredicate :: RealOLE ,
195
+ rustc_codegen_utils:: common:: RealPredicate :: RealONE => RealPredicate :: RealONE ,
196
+ rustc_codegen_utils:: common:: RealPredicate :: RealORD => RealPredicate :: RealORD ,
197
+ rustc_codegen_utils:: common:: RealPredicate :: RealUNO => RealPredicate :: RealUNO ,
198
+ rustc_codegen_utils:: common:: RealPredicate :: RealUEQ => RealPredicate :: RealUEQ ,
199
+ rustc_codegen_utils:: common:: RealPredicate :: RealUGT => RealPredicate :: RealUGT ,
200
+ rustc_codegen_utils:: common:: RealPredicate :: RealUGE => RealPredicate :: RealUGE ,
201
+ rustc_codegen_utils:: common:: RealPredicate :: RealULT => RealPredicate :: RealULT ,
202
+ rustc_codegen_utils:: common:: RealPredicate :: RealULE => RealPredicate :: RealULE ,
203
+ rustc_codegen_utils:: common:: RealPredicate :: RealUNE => RealPredicate :: RealUNE ,
204
+ rustc_codegen_utils:: common:: RealPredicate :: RealPredicateTrue =>
205
+ RealPredicate :: RealPredicateTrue
205
206
}
206
207
}
207
208
}
@@ -216,7 +217,7 @@ pub enum TypeKind {
216
217
Double = 3 ,
217
218
X86_FP80 = 4 ,
218
219
FP128 = 5 ,
219
- PPc_FP128 = 6 ,
220
+ PPC_FP128 = 6 ,
220
221
Label = 7 ,
221
222
Integer = 8 ,
222
223
Function = 9 ,
@@ -230,25 +231,25 @@ pub enum TypeKind {
230
231
}
231
232
232
233
impl TypeKind {
233
- pub fn to_generic ( self ) -> common:: TypeKind {
234
+ pub fn to_generic ( self ) -> rustc_codegen_utils :: common:: TypeKind {
234
235
match self {
235
- TypeKind :: Void => common:: TypeKind :: Void ,
236
- TypeKind :: Half => common:: TypeKind :: Half ,
237
- TypeKind :: Float => common:: TypeKind :: Float ,
238
- TypeKind :: Double => common:: TypeKind :: Double ,
239
- TypeKind :: X86_FP80 => common:: TypeKind :: X86_FP80 ,
240
- TypeKind :: FP128 => common:: TypeKind :: FP128 ,
241
- TypeKind :: PPc_FP128 => common:: TypeKind :: PPc_FP128 ,
242
- TypeKind :: Label => common:: TypeKind :: Label ,
243
- TypeKind :: Integer => common:: TypeKind :: Integer ,
244
- TypeKind :: Function => common:: TypeKind :: Function ,
245
- TypeKind :: Struct => common:: TypeKind :: Struct ,
246
- TypeKind :: Array => common:: TypeKind :: Array ,
247
- TypeKind :: Pointer => common:: TypeKind :: Pointer ,
248
- TypeKind :: Vector => common:: TypeKind :: Vector ,
249
- TypeKind :: Metadata => common:: TypeKind :: Metadata ,
250
- TypeKind :: X86_MMX => common:: TypeKind :: X86_MMX ,
251
- TypeKind :: Token => common:: TypeKind :: Token ,
236
+ TypeKind :: Void => rustc_codegen_utils :: common:: TypeKind :: Void ,
237
+ TypeKind :: Half => rustc_codegen_utils :: common:: TypeKind :: Half ,
238
+ TypeKind :: Float => rustc_codegen_utils :: common:: TypeKind :: Float ,
239
+ TypeKind :: Double => rustc_codegen_utils :: common:: TypeKind :: Double ,
240
+ TypeKind :: X86_FP80 => rustc_codegen_utils :: common:: TypeKind :: X86_FP80 ,
241
+ TypeKind :: FP128 => rustc_codegen_utils :: common:: TypeKind :: FP128 ,
242
+ TypeKind :: PPC_FP128 => rustc_codegen_utils :: common:: TypeKind :: PPC_FP128 ,
243
+ TypeKind :: Label => rustc_codegen_utils :: common:: TypeKind :: Label ,
244
+ TypeKind :: Integer => rustc_codegen_utils :: common:: TypeKind :: Integer ,
245
+ TypeKind :: Function => rustc_codegen_utils :: common:: TypeKind :: Function ,
246
+ TypeKind :: Struct => rustc_codegen_utils :: common:: TypeKind :: Struct ,
247
+ TypeKind :: Array => rustc_codegen_utils :: common:: TypeKind :: Array ,
248
+ TypeKind :: Pointer => rustc_codegen_utils :: common:: TypeKind :: Pointer ,
249
+ TypeKind :: Vector => rustc_codegen_utils :: common:: TypeKind :: Vector ,
250
+ TypeKind :: Metadata => rustc_codegen_utils :: common:: TypeKind :: Metadata ,
251
+ TypeKind :: X86_MMX => rustc_codegen_utils :: common:: TypeKind :: X86_MMX ,
252
+ TypeKind :: Token => rustc_codegen_utils :: common:: TypeKind :: Token ,
252
253
}
253
254
}
254
255
}
@@ -271,19 +272,19 @@ pub enum AtomicRmwBinOp {
271
272
}
272
273
273
274
impl AtomicRmwBinOp {
274
- pub fn from_generic ( op : common:: AtomicRmwBinOp ) -> Self {
275
+ pub fn from_generic ( op : rustc_codegen_utils :: common:: AtomicRmwBinOp ) -> Self {
275
276
match op {
276
- common:: AtomicRmwBinOp :: AtomicXchg => AtomicRmwBinOp :: AtomicXchg ,
277
- common:: AtomicRmwBinOp :: AtomicAdd => AtomicRmwBinOp :: AtomicAdd ,
278
- common:: AtomicRmwBinOp :: AtomicSub => AtomicRmwBinOp :: AtomicSub ,
279
- common:: AtomicRmwBinOp :: AtomicAnd => AtomicRmwBinOp :: AtomicAnd ,
280
- common:: AtomicRmwBinOp :: AtomicNand => AtomicRmwBinOp :: AtomicNand ,
281
- common:: AtomicRmwBinOp :: AtomicOr => AtomicRmwBinOp :: AtomicOr ,
282
- common:: AtomicRmwBinOp :: AtomicXor => AtomicRmwBinOp :: AtomicXor ,
283
- common:: AtomicRmwBinOp :: AtomicMax => AtomicRmwBinOp :: AtomicMax ,
284
- common:: AtomicRmwBinOp :: AtomicMin => AtomicRmwBinOp :: AtomicMin ,
285
- common:: AtomicRmwBinOp :: AtomicUMax => AtomicRmwBinOp :: AtomicUMax ,
286
- common:: AtomicRmwBinOp :: AtomicUMin => AtomicRmwBinOp :: AtomicUMin
277
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicXchg => AtomicRmwBinOp :: AtomicXchg ,
278
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicAdd => AtomicRmwBinOp :: AtomicAdd ,
279
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicSub => AtomicRmwBinOp :: AtomicSub ,
280
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicAnd => AtomicRmwBinOp :: AtomicAnd ,
281
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicNand => AtomicRmwBinOp :: AtomicNand ,
282
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicOr => AtomicRmwBinOp :: AtomicOr ,
283
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicXor => AtomicRmwBinOp :: AtomicXor ,
284
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicMax => AtomicRmwBinOp :: AtomicMax ,
285
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicMin => AtomicRmwBinOp :: AtomicMin ,
286
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicUMax => AtomicRmwBinOp :: AtomicUMax ,
287
+ rustc_codegen_utils :: common:: AtomicRmwBinOp :: AtomicUMin => AtomicRmwBinOp :: AtomicUMin
287
288
}
288
289
}
289
290
}
@@ -304,15 +305,16 @@ pub enum AtomicOrdering {
304
305
}
305
306
306
307
impl AtomicOrdering {
307
- pub fn from_generic ( ao : common:: AtomicOrdering ) -> Self {
308
+ pub fn from_generic ( ao : rustc_codegen_utils :: common:: AtomicOrdering ) -> Self {
308
309
match ao {
309
- common:: AtomicOrdering :: NotAtomic => AtomicOrdering :: NotAtomic ,
310
- common:: AtomicOrdering :: Unordered => AtomicOrdering :: Unordered ,
311
- common:: AtomicOrdering :: Monotonic => AtomicOrdering :: Monotonic ,
312
- common:: AtomicOrdering :: Acquire => AtomicOrdering :: Acquire ,
313
- common:: AtomicOrdering :: Release => AtomicOrdering :: Release ,
314
- common:: AtomicOrdering :: AcquireRelease => AtomicOrdering :: AcquireRelease ,
315
- common:: AtomicOrdering :: SequentiallyConsistent =>
310
+ rustc_codegen_utils:: common:: AtomicOrdering :: NotAtomic => AtomicOrdering :: NotAtomic ,
311
+ rustc_codegen_utils:: common:: AtomicOrdering :: Unordered => AtomicOrdering :: Unordered ,
312
+ rustc_codegen_utils:: common:: AtomicOrdering :: Monotonic => AtomicOrdering :: Monotonic ,
313
+ rustc_codegen_utils:: common:: AtomicOrdering :: Acquire => AtomicOrdering :: Acquire ,
314
+ rustc_codegen_utils:: common:: AtomicOrdering :: Release => AtomicOrdering :: Release ,
315
+ rustc_codegen_utils:: common:: AtomicOrdering :: AcquireRelease =>
316
+ AtomicOrdering :: AcquireRelease ,
317
+ rustc_codegen_utils:: common:: AtomicOrdering :: SequentiallyConsistent =>
316
318
AtomicOrdering :: SequentiallyConsistent
317
319
}
318
320
}
@@ -331,11 +333,13 @@ pub enum SynchronizationScope {
331
333
}
332
334
333
335
impl SynchronizationScope {
334
- pub fn from_generic ( sc : common:: SynchronizationScope ) -> Self {
336
+ pub fn from_generic ( sc : rustc_codegen_utils :: common:: SynchronizationScope ) -> Self {
335
337
match sc {
336
- common:: SynchronizationScope :: Other => SynchronizationScope :: Other ,
337
- common:: SynchronizationScope :: SingleThread => SynchronizationScope :: SingleThread ,
338
- common:: SynchronizationScope :: CrossThread => SynchronizationScope :: CrossThread ,
338
+ rustc_codegen_utils:: common:: SynchronizationScope :: Other => SynchronizationScope :: Other ,
339
+ rustc_codegen_utils:: common:: SynchronizationScope :: SingleThread =>
340
+ SynchronizationScope :: SingleThread ,
341
+ rustc_codegen_utils:: common:: SynchronizationScope :: CrossThread =>
342
+ SynchronizationScope :: CrossThread ,
339
343
}
340
344
}
341
345
}
0 commit comments