[PATCH] D37458: [globalisel][tblgen] Add support for iPTR and implement am_unscaled* and am_indexed*

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 01:52:09 PDT 2017


dsanders created this revision.
Herald added subscribers: igorb, javed.absar, kristof.beyls.

iPTR is a pointer of subtarget-specific size to any address space. Therefore
type checks on this size derive the SizeInBits from a subtarget hook.

At this point, we can import the simplests G_LOAD rules and select load
instructions using them. Further patches will support for the predicates to
enable additional loads as well as the stores.

Depends on https://reviews.llvm.org/D37457


https://reviews.llvm.org/D37458

Files:
  include/llvm/CodeGen/GlobalISel/InstructionSelector.h
  include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
  lib/CodeGen/GlobalISel/InstructionSelector.cpp
  lib/Target/AArch64/AArch64InstrFormats.td
  lib/Target/AArch64/AArch64InstructionSelector.cpp
  test/CodeGen/AArch64/GlobalISel/select-load.mir
  utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37458.113811.patch
Type: text/x-patch
Size: 12243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170905/e7e62204/attachment.bin>


More information about the llvm-commits mailing list