[llvm-commits] CVS: llvm/include/llvm/Target/MachineInstrInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 24 17:35:01 PDT 2002
Changes in directory llvm/include/llvm/Target:
MachineInstrInfo.h updated: 1.22 -> 1.23
---
Log message:
* Remove unneccesary #includes
* Fix typeo in the (unused) MachineInstrInfo::isArith method
---
Diffs of the changes:
Index: llvm/include/llvm/Target/MachineInstrInfo.h
diff -u llvm/include/llvm/Target/MachineInstrInfo.h:1.22 llvm/include/llvm/Target/MachineInstrInfo.h:1.23
--- llvm/include/llvm/Target/MachineInstrInfo.h:1.22 Sun Sep 29 16:53:31 2002
+++ llvm/include/llvm/Target/MachineInstrInfo.h Thu Oct 24 17:34:41 2002
@@ -11,8 +11,6 @@
#include "Support/DataTypes.h"
#include "llvm/Constant.h"
#include "llvm/DerivedTypes.h"
-#include <string>
-#include <vector>
class MachineInstrDescriptor;
class TmpInstruction;
@@ -55,7 +53,7 @@
//---------------------------------------------------------------------------
-const unsigned int M_NOP_FLAG = 1;
+const unsigned int M_NOP_FLAG = 1 << 0;
const unsigned int M_BRANCH_FLAG = 1 << 1;
const unsigned int M_CALL_FLAG = 1 << 2;
const unsigned int M_RET_FLAG = 1 << 3;
@@ -150,7 +148,7 @@
|| getDescriptor(opCode).iclass & M_RET_FLAG;
}
bool isArith(MachineOpCode opCode) const {
- return getDescriptor(opCode).iclass & M_RET_FLAG;
+ return getDescriptor(opCode).iclass & M_ARITH_FLAG;
}
bool isCCInstr(MachineOpCode opCode) const {
return getDescriptor(opCode).iclass & M_CC_FLAG;
@@ -164,7 +162,7 @@
bool isFloatInstr(MachineOpCode opCode) const {
return getDescriptor(opCode).iclass & M_FLOAT_FLAG;
}
- bool isConditional(MachineOpCode opCode) const {
+ bool isConditional(MachineOpCode opCode) const {
return getDescriptor(opCode).iclass & M_CONDL_FLAG;
}
bool isLoad(MachineOpCode opCode) const {
More information about the llvm-commits
mailing list