diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-14 15:35:51 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-14 15:35:51 +0000 |
commit | b9f550ddfbaf963a0aced2df8cd40c71021fd3e5 (patch) | |
tree | 4be6265954194900423ddd2fe2f0d6eec3aa60dd /include/llvm/Target | |
parent | d63aaaaabee0fb4ae713a47ab431e53a2d128c54 (diff) | |
download | external_llvm-b9f550ddfbaf963a0aced2df8cd40c71021fd3e5.zip external_llvm-b9f550ddfbaf963a0aced2df8cd40c71021fd3e5.tar.gz external_llvm-b9f550ddfbaf963a0aced2df8cd40c71021fd3e5.tar.bz2 |
added isPseudoInstr()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/MachineInstrInfo.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index 547ebb7..a64cbbe 100644 --- a/include/llvm/Target/MachineInstrInfo.h +++ b/include/llvm/Target/MachineInstrInfo.h @@ -55,6 +55,7 @@ const unsigned int M_LOAD_FLAG = 1 << 10; const unsigned int M_PREFETCH_FLAG = 1 << 11; const unsigned int M_STORE_FLAG = 1 << 12; const unsigned int M_DUMMY_PHI_FLAG = 1 << 13; +const unsigned int M_PSEUDO_FLAG = 1 << 14; struct MachineInstrDescriptor { @@ -179,6 +180,11 @@ public: bool isPhi(const MachineOpCode opCode) const { return isDummyPhiInstr(opCode); } + bool isPseudoInstr(const MachineOpCode opCode) const { + return getDescriptor(opCode).iclass & M_PSEUDO_FLAG; + } + + // Check if an instruction can be issued before its operands are ready, // or if a subsequent instruction that uses its result can be issued diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 547ebb7..a64cbbe 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -55,6 +55,7 @@ const unsigned int M_LOAD_FLAG = 1 << 10; const unsigned int M_PREFETCH_FLAG = 1 << 11; const unsigned int M_STORE_FLAG = 1 << 12; const unsigned int M_DUMMY_PHI_FLAG = 1 << 13; +const unsigned int M_PSEUDO_FLAG = 1 << 14; struct MachineInstrDescriptor { @@ -179,6 +180,11 @@ public: bool isPhi(const MachineOpCode opCode) const { return isDummyPhiInstr(opCode); } + bool isPseudoInstr(const MachineOpCode opCode) const { + return getDescriptor(opCode).iclass & M_PSEUDO_FLAG; + } + + // Check if an instruction can be issued before its operands are ready, // or if a subsequent instruction that uses its result can be issued |