mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Move MachineMemOperand::getAlignment out of line, to avoid needing
MathExtras.h in MachineMemOperand.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
295a8089cd
commit
4b2ebc1928
@ -16,8 +16,6 @@
|
|||||||
#ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
|
#ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
|
||||||
#define LLVM_CODEGEN_MACHINEMEMOPERAND_H
|
#define LLVM_CODEGEN_MACHINEMEMOPERAND_H
|
||||||
|
|
||||||
#include "llvm/Support/MathExtras.h"
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class Value;
|
class Value;
|
||||||
@ -76,9 +74,7 @@ public:
|
|||||||
|
|
||||||
/// getAlignment - Return the minimum known alignment in bytes of the
|
/// getAlignment - Return the minimum known alignment in bytes of the
|
||||||
/// actual memory reference.
|
/// actual memory reference.
|
||||||
uint64_t getAlignment() const {
|
uint64_t getAlignment() const;
|
||||||
return MinAlign(getBaseAlignment(), getOffset());
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getBaseAlignment - Return the minimum known alignment in bytes of the
|
/// getBaseAlignment - Return the minimum known alignment in bytes of the
|
||||||
/// base address, without the offset.
|
/// base address, without the offset.
|
||||||
|
@ -315,6 +315,12 @@ void MachineMemOperand::refineAlignment(const MachineMemOperand *MMO) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// getAlignment - Return the minimum known alignment in bytes of the
|
||||||
|
/// actual memory reference.
|
||||||
|
uint64_t MachineMemOperand::getAlignment() const {
|
||||||
|
return MinAlign(getBaseAlignment(), getOffset());
|
||||||
|
}
|
||||||
|
|
||||||
raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineMemOperand &MMO) {
|
raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineMemOperand &MMO) {
|
||||||
assert((MMO.isLoad() || MMO.isStore()) &&
|
assert((MMO.isLoad() || MMO.isStore()) &&
|
||||||
"SV has to be a load, store or both.");
|
"SV has to be a load, store or both.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user