|
@@ -1415,10 +1415,10 @@ public:
|
|
|
/// copy/move/set is converted to a sequence of store operations. Its use
|
|
|
/// helps to ensure that such replacements don't generate code that causes an
|
|
|
/// alignment error (trap) on the target machine.
|
|
|
- virtual bool allowsMisalignedMemoryAccesses(EVT,
|
|
|
- unsigned AddrSpace = 0,
|
|
|
- unsigned Align = 1,
|
|
|
- bool * /*Fast*/ = nullptr) const {
|
|
|
+ virtual bool allowsMisalignedMemoryAccesses(
|
|
|
+ EVT, unsigned AddrSpace = 0, unsigned Align = 1,
|
|
|
+ MachineMemOperand::Flags Flags = MachineMemOperand::MONone,
|
|
|
+ bool * /*Fast*/ = nullptr) const {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -1426,9 +1426,11 @@ public:
|
|
|
/// given address space and alignment. If the access is allowed, the optional
|
|
|
/// final parameter returns if the access is also fast (as defined by the
|
|
|
/// target).
|
|
|
- bool allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT,
|
|
|
- unsigned AddrSpace = 0, unsigned Alignment = 1,
|
|
|
- bool *Fast = nullptr) const;
|
|
|
+ bool
|
|
|
+ allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT,
|
|
|
+ unsigned AddrSpace = 0, unsigned Alignment = 1,
|
|
|
+ MachineMemOperand::Flags Flags = MachineMemOperand::MONone,
|
|
|
+ bool *Fast = nullptr) const;
|
|
|
|
|
|
/// Return true if the target supports a memory access of this type for the
|
|
|
/// given MachineMemOperand. If the access is allowed, the optional
|