mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-05 18:49:06 +00:00
[mips] Make MipsSubtarget::hasMips*() functions consistent. NFC.
Reviewers: vmedic Reviewed By: vmedic Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7377 llvm-svn: 228147
This commit is contained in:
parent
94e70a62be
commit
a410c1a5f3
@ -38,8 +38,8 @@ class MipsSubtarget : public MipsGenSubtargetInfo {
|
||||
|
||||
enum MipsArchEnum {
|
||||
MipsDefault,
|
||||
Mips1, Mips2, Mips32, Mips32r2, Mips32r6, Mips3, Mips4, Mips5, Mips64,
|
||||
Mips64r2, Mips64r6
|
||||
Mips1, Mips2, Mips32, Mips32r2, Mips32r6, Mips32Max, Mips3, Mips4, Mips5,
|
||||
Mips64, Mips64r2, Mips64r6
|
||||
};
|
||||
|
||||
// Mips architecture version
|
||||
@ -174,21 +174,20 @@ public:
|
||||
bool hasMips4_32() const { return HasMips4_32; }
|
||||
bool hasMips4_32r2() const { return HasMips4_32r2; }
|
||||
bool hasMips32() const {
|
||||
return MipsArchVersion >= Mips32 && MipsArchVersion != Mips3 &&
|
||||
MipsArchVersion != Mips4 && MipsArchVersion != Mips5;
|
||||
return (MipsArchVersion >= Mips32 && MipsArchVersion < Mips32Max) ||
|
||||
hasMips64();
|
||||
}
|
||||
bool hasMips32r2() const {
|
||||
return MipsArchVersion == Mips32r2 || MipsArchVersion == Mips32r6 ||
|
||||
MipsArchVersion == Mips64r2 || MipsArchVersion == Mips64r6;
|
||||
return (MipsArchVersion >= Mips32r2 && MipsArchVersion < Mips32Max) ||
|
||||
hasMips64r2();
|
||||
}
|
||||
bool hasMips32r6() const {
|
||||
return MipsArchVersion == Mips32r6 || MipsArchVersion == Mips64r6;
|
||||
return (MipsArchVersion >= Mips32r6 && MipsArchVersion < Mips32Max) ||
|
||||
hasMips64r6();
|
||||
}
|
||||
bool hasMips64() const { return MipsArchVersion >= Mips64; }
|
||||
bool hasMips64r2() const {
|
||||
return MipsArchVersion == Mips64r2 || MipsArchVersion == Mips64r6;
|
||||
}
|
||||
bool hasMips64r6() const { return MipsArchVersion == Mips64r6; }
|
||||
bool hasMips64r2() const { return MipsArchVersion >= Mips64r2; }
|
||||
bool hasMips64r6() const { return MipsArchVersion >= Mips64r6; }
|
||||
|
||||
bool hasCnMips() const { return HasCnMips; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user