summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 20:32:02 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 20:32:02 +0000
commitaedb4a61b8833bb03ac30e607c2537d004381d1b (patch)
treee141ff2dad94476daae5a3658b3016bf1aa9446d /llvm/lib/CodeGen/MachineInstr.cpp
parent230263c63ebecd24b4a00c5446cf5b5600e8c04a (diff)
downloadbcm5719-llvm-aedb4a61b8833bb03ac30e607c2537d004381d1b.tar.gz
bcm5719-llvm-aedb4a61b8833bb03ac30e607c2537d004381d1b.zip
Move MachineMemOperand's constructor out of line, to avoid a
#include dependency on Support/MathExtras.h in the header file. llvm-svn: 53200
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index fe78828410c..3025af9be96 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -23,6 +23,7 @@
#include "llvm/Target/TargetInstrDesc.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Support/LeakDetector.h"
+#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Streams.h"
#include <ostream>
using namespace llvm;
@@ -239,6 +240,16 @@ void MachineOperand::print(std::ostream &OS, const TargetMachine *TM) const {
}
//===----------------------------------------------------------------------===//
+// MachineMemOperand Implementation
+//===----------------------------------------------------------------------===//
+
+MachineMemOperand::MachineMemOperand(const Value *v, unsigned int f,
+ int64_t o, uint64_t s, unsigned int a)
+ : Offset(o), Size(s), V(v),
+ Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {
+}
+
+//===----------------------------------------------------------------------===//
// MachineInstr Implementation
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud