mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
fit in 80 cols, minor tweaks
llvm-svn: 55992
This commit is contained in:
parent
85c4a89959
commit
d8b03fb627
@ -29,7 +29,7 @@ namespace llvm {
|
|||||||
|
|
||||||
enum SimpleValueType {
|
enum SimpleValueType {
|
||||||
// If you change this numbering, you must change the values in
|
// If you change this numbering, you must change the values in
|
||||||
// ValueTypes.td well!
|
// ValueTypes.td as well!
|
||||||
Other = 0, // This is a non-standard value
|
Other = 0, // This is a non-standard value
|
||||||
i1 = 1, // This is a 1 bit integer value
|
i1 = 1, // This is a 1 bit integer value
|
||||||
i8 = 2, // This is an 8 bit integer value
|
i8 = 2, // This is an 8 bit integer value
|
||||||
@ -103,10 +103,11 @@ namespace llvm {
|
|||||||
/// Extended types are either vector types or arbitrary precision integers.
|
/// Extended types are either vector types or arbitrary precision integers.
|
||||||
/// Arbitrary precision integers have iAny in the first SimpleTypeBits bits,
|
/// Arbitrary precision integers have iAny in the first SimpleTypeBits bits,
|
||||||
/// and the bit-width in the next PrecisionBits bits, offset by minus one.
|
/// and the bit-width in the next PrecisionBits bits, offset by minus one.
|
||||||
/// Vector types are encoded by having the first SimpleTypeBits+PrecisionBits
|
/// Vector types are encoded by having the first
|
||||||
/// bits encode the vector element type (which must be a scalar type, possibly
|
/// SimpleTypeBits+PrecisionBits bits encode the vector element type
|
||||||
/// an arbitrary precision integer) and the remaining VectorBits upper bits
|
/// (which must be a scalar type, possibly an arbitrary precision integer)
|
||||||
/// encode the vector length, offset by one.
|
/// and the remaining VectorBits upper bits encode the vector length, offset
|
||||||
|
/// by one.
|
||||||
///
|
///
|
||||||
/// 32--------------16-----------8-------------0
|
/// 32--------------16-----------8-------------0
|
||||||
/// | Vector length | Precision | Simple type |
|
/// | Vector length | Precision | Simple type |
|
||||||
@ -136,7 +137,7 @@ namespace llvm {
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
MVT() {}
|
MVT() {}
|
||||||
MVT(SimpleValueType S) { V = S; }
|
MVT(SimpleValueType S) : V(S) {}
|
||||||
|
|
||||||
inline bool operator== (const MVT VT) const { return V == VT.V; }
|
inline bool operator== (const MVT VT) const { return V == VT.V; }
|
||||||
inline bool operator!= (const MVT VT) const { return V != VT.V; }
|
inline bool operator!= (const MVT VT) const { return V != VT.V; }
|
||||||
|
Loading…
Reference in New Issue
Block a user