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:
parent
884992a7e9
commit
37522e768a
@ -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 {
|
||||
|
@ -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) &&
|
||||
|
@ -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"));
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user