rustc_codegen_ssa: derive copy and clone for various enums
This commit is contained in:
parent
f4c92cc4d1
commit
ef83e689a8
2 changed files with 7 additions and 19 deletions
|
@ -11,6 +11,7 @@ use rustc_span::Span;
|
|||
use crate::base;
|
||||
use crate::traits::*;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum IntPredicate {
|
||||
IntEQ,
|
||||
IntNE,
|
||||
|
@ -24,6 +25,7 @@ pub enum IntPredicate {
|
|||
IntSLE,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum RealPredicate {
|
||||
RealPredicateFalse,
|
||||
RealOEQ,
|
||||
|
@ -43,6 +45,7 @@ pub enum RealPredicate {
|
|||
RealPredicateTrue,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum AtomicRmwBinOp {
|
||||
AtomicXchg,
|
||||
AtomicAdd,
|
||||
|
@ -57,6 +60,7 @@ pub enum AtomicRmwBinOp {
|
|||
AtomicUMin,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum AtomicOrdering {
|
||||
Unordered,
|
||||
Relaxed,
|
||||
|
@ -66,6 +70,7 @@ pub enum AtomicOrdering {
|
|||
SequentiallyConsistent,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum SynchronizationScope {
|
||||
SingleThread,
|
||||
CrossThread,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue