mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 16:47:41 +00:00
Add new getName method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e836bae30c
commit
09d4fd57de
@ -33,6 +33,7 @@ struct MRegisterDesc {
|
|||||||
///
|
///
|
||||||
namespace MRF { // MRF = Machine Register Flags
|
namespace MRF { // MRF = Machine Register Flags
|
||||||
enum {
|
enum {
|
||||||
|
Other = 0 << 0, // This is a non-standard register
|
||||||
INT8 = 1 << 0, // This is an 8 bit integer register
|
INT8 = 1 << 0, // This is an 8 bit integer register
|
||||||
INT16 = 1 << 1, // This is a 16 bit integer register
|
INT16 = 1 << 1, // This is a 16 bit integer register
|
||||||
INT32 = 1 << 2, // This is a 32 bit integer register
|
INT32 = 1 << 2, // This is a 32 bit integer register
|
||||||
@ -173,6 +174,12 @@ public:
|
|||||||
return get(RegNo).AliasSet;
|
return get(RegNo).AliasSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// getName - Return the symbolic target specific name for the specified
|
||||||
|
/// physical register.
|
||||||
|
const char *getName(unsigned RegNo) const {
|
||||||
|
return get(RegNo).Name;
|
||||||
|
}
|
||||||
|
|
||||||
virtual const unsigned* getCalleeSaveRegs() const = 0;
|
virtual const unsigned* getCalleeSaveRegs() const = 0;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user