Add Debug
impls to API types in rustc_codegen_ssa
This commit is contained in:
parent
ab1527f1d6
commit
41ec376edd
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
use crate::traits::*;
|
use crate::traits::*;
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub enum IntPredicate {
|
pub enum IntPredicate {
|
||||||
IntEQ,
|
IntEQ,
|
||||||
IntNE,
|
IntNE,
|
||||||
@ -22,7 +22,7 @@ pub enum IntPredicate {
|
|||||||
IntSLE,
|
IntSLE,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub enum RealPredicate {
|
pub enum RealPredicate {
|
||||||
RealPredicateFalse,
|
RealPredicateFalse,
|
||||||
RealOEQ,
|
RealOEQ,
|
||||||
@ -42,7 +42,7 @@ pub enum RealPredicate {
|
|||||||
RealPredicateTrue,
|
RealPredicateTrue,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, PartialEq)]
|
#[derive(Copy, Clone, PartialEq, Debug)]
|
||||||
pub enum AtomicRmwBinOp {
|
pub enum AtomicRmwBinOp {
|
||||||
AtomicXchg,
|
AtomicXchg,
|
||||||
AtomicAdd,
|
AtomicAdd,
|
||||||
@ -57,7 +57,7 @@ pub enum AtomicRmwBinOp {
|
|||||||
AtomicUMin,
|
AtomicUMin,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub enum AtomicOrdering {
|
pub enum AtomicOrdering {
|
||||||
Unordered,
|
Unordered,
|
||||||
Relaxed,
|
Relaxed,
|
||||||
@ -67,7 +67,7 @@ pub enum AtomicOrdering {
|
|||||||
SequentiallyConsistent,
|
SequentiallyConsistent,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub enum SynchronizationScope {
|
pub enum SynchronizationScope {
|
||||||
SingleThread,
|
SingleThread,
|
||||||
CrossThread,
|
CrossThread,
|
||||||
|
@ -131,7 +131,7 @@ pub(crate) fn is_expected_variant_for_type<'tcx, Cx: LayoutTypeMethods<'tcx>>(
|
|||||||
/// to avoid nasty edge cases. In particular, using `Builder::store`
|
/// to avoid nasty edge cases. In particular, using `Builder::store`
|
||||||
/// directly is sure to cause problems -- use `OperandRef::store`
|
/// directly is sure to cause problems -- use `OperandRef::store`
|
||||||
/// instead.
|
/// instead.
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct OperandRef<'tcx, V> {
|
pub struct OperandRef<'tcx, V> {
|
||||||
/// The value.
|
/// The value.
|
||||||
pub val: OperandValue<V>,
|
pub val: OperandValue<V>,
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
use crate::mir::place::{PlaceRef, PlaceValue};
|
use crate::mir::place::{PlaceRef, PlaceValue};
|
||||||
use crate::MemFlags;
|
use crate::MemFlags;
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub enum OverflowOp {
|
pub enum OverflowOp {
|
||||||
Add,
|
Add,
|
||||||
Sub,
|
Sub,
|
||||||
|
Loading…
Reference in New Issue
Block a user