[PATCH] D57065: [TableGen][GlobalISel] Add support for pointer types in patterns

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 12:48:32 PST 2019


tstellar created this revision.
tstellar added reviewers: dsanders, rtereshin, arsenm.
Herald added subscribers: volkan, jfb, kristof.beyls, rovka, wdng.

This adds support for defining patterns for global isel using pointer
types, for example:

def : Pat<(load GPR32:$src),

  (p1 (LOAD GPR32:$src))>;

DAGISelEmitter will ignore the pointer information and treat these
types as integers with the same bit-width as the pointer type.


Repository:
  rL LLVM

https://reviews.llvm.org/D57065

Files:
  include/llvm/CodeGen/ValueTypes.td
  test/TableGen/GlobalISelEmitter.td
  utils/TableGen/CodeGenDAGPatterns.cpp
  utils/TableGen/CodeGenDAGPatterns.h
  utils/TableGen/GlobalISelEmitter.cpp
  utils/TableGen/InfoByHwMode.cpp
  utils/TableGen/InfoByHwMode.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57065.182964.patch
Type: text/x-patch
Size: 8952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190122/a13812a2/attachment.bin>


More information about the llvm-commits mailing list