llvm.org GIT mirror llvm / ce42e40
Move MachineMemOperand's constructor out of line, to avoid a #include dependency on Support/MathExtras.h in the header file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53200 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
2 changed file(s) with 12 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1414
1515 #ifndef LLVM_CODEGEN_MEMOPERAND_H
1616 #define LLVM_CODEGEN_MEMOPERAND_H
17
18 #include "llvm/Support/MathExtras.h"
1917
2018 namespace llvm {
2119
4947 /// MachineMemOperand - Construct an MachineMemOperand object with the
5048 /// specified address Value, flags, offset, size, and alignment.
5149 MachineMemOperand(const Value *v, unsigned int f, int64_t o, uint64_t s,
52 unsigned int a)
53 : Offset(o), Size(s), V(v), Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {}
50 unsigned int a);
5451
5552 /// getValue - Return the base address of the memory access.
5653 /// Special values are PseudoSourceValue::FPRel, PseudoSourceValue::SPRel,
2222 #include "llvm/Target/TargetInstrDesc.h"
2323 #include "llvm/Target/TargetRegisterInfo.h"
2424 #include "llvm/Support/LeakDetector.h"
25 #include "llvm/Support/MathExtras.h"
2526 #include "llvm/Support/Streams.h"
2627 #include
2728 using namespace llvm;
238239 }
239240
240241 //===----------------------------------------------------------------------===//
242 // MachineMemOperand Implementation
243 //===----------------------------------------------------------------------===//
244
245 MachineMemOperand::MachineMemOperand(const Value *v, unsigned int f,
246 int64_t o, uint64_t s, unsigned int a)
247 : Offset(o), Size(s), V(v),
248 Flags((f & 7) | ((Log2_32(a) + 1) << 3)) {
249 }
250
251 //===----------------------------------------------------------------------===//
241252 // MachineInstr Implementation
242253 //===----------------------------------------------------------------------===//
243254