1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Have only one definition of X86AddrNumOperands.

llvm-svn: 67949
This commit is contained in:
Rafael Espindola 2009-03-28 18:55:31 +00:00
parent 884992a7e9
commit 37522e768a
5 changed files with 2 additions and 9 deletions

View File

@ -32,9 +32,6 @@
#include "llvm/Target/TargetOptions.h"
using namespace llvm;
// FIXME: This should be some header
static const int X86AddrNumOperands = 4;
STATISTIC(NumEmitted, "Number of machine instructions emitted");
namespace {

View File

@ -616,7 +616,6 @@ void FPS::handleZeroArgFP(MachineBasicBlock::iterator &I) {
/// handleOneArgFP - fst <mem>, ST(0)
///
void FPS::handleOneArgFP(MachineBasicBlock::iterator &I) {
const int X86AddrNumOperands = 4;
MachineInstr *MI = I;
unsigned NumOps = MI->getDesc().getNumOperands();
assert((NumOps == X86AddrNumOperands + 1 || NumOps == 1) &&

View File

@ -41,8 +41,6 @@
#include "llvm/Support/CommandLine.h"
using namespace llvm;
const int X86AddrNumOperands = 4;
static cl::opt<bool>
DisableMMX("disable-mmx", cl::Hidden, cl::desc("Disable use of MMX"));

View File

@ -31,9 +31,6 @@
using namespace llvm;
// FIXME: This should be some header
static const int X86AddrNumOperands = 4;
namespace {
cl::opt<bool>
NoFusing("disable-spill-fusing",

View File

@ -243,6 +243,8 @@ namespace X86II {
};
}
const int X86AddrNumOperands = 4;
inline static bool isScale(const MachineOperand &MO) {
return MO.isImm() &&
(MO.getImm() == 1 || MO.getImm() == 2 ||