1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

added isPseudoInstr()

llvm-svn: 1302
This commit is contained in:
Ruchira Sasanka 2001-11-14 15:35:51 +00:00
parent 0f38515129
commit d7daf6afcd
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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