]> granicus.if.org Git - llvm/commit
Add support for pointer types in patterns
authorTom Stellard <tstellar@redhat.com>
Wed, 20 Feb 2019 19:43:47 +0000 (19:43 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 20 Feb 2019 19:43:47 +0000 (19:43 +0000)
commiteb773d9b315e3a1213ca7f08ff83c40692a2bb6d
tree0d03becf4ebf11ecb581106ac3f77d4e1bf44291
parentaa2513371d6621319597afa25488b73d7bef424a
Add support for pointer types in patterns

Summary:
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.

Reviewers: dsanders, rtereshin, arsenm

Reviewed By: arsenm

Subscribers: Petar.Avramovic, wdng, rovka, kristof.beyls, jfb, volkan, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D57065

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354510 91177308-0d34-0410-b5e6-96231b3b80d8
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