[PATCH] D67121: [TargetLowering] Make allowsMemoryAccess methode virtual.

Thomas Raoux via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 11:26:59 PDT 2019


ThomasRaoux created this revision.
ThomasRaoux added a reviewer: jmolloy.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Make allowsMemoryAccess virtual so that targets can override it.


Repository:
  rL LLVM

https://reviews.llvm.org/D67121

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h


Index: llvm/include/llvm/CodeGen/TargetLowering.h
===================================================================
--- llvm/include/llvm/CodeGen/TargetLowering.h
+++ llvm/include/llvm/CodeGen/TargetLowering.h
@@ -1474,7 +1474,7 @@
   /// 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
+  virtual bool
   allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT,
                      unsigned AddrSpace = 0, unsigned Alignment = 1,
                      MachineMemOperand::Flags Flags = MachineMemOperand::MONone,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67121.218503.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190903/a3f35d15/attachment.bin>


More information about the llvm-commits mailing list