This is an archive of the discontinued LLVM Phabricator instance.

[TableGen][GlobalISel] Add support for pointer types in patterns
ClosedPublic

Authored by tstellar on Jan 22 2019, 12:48 PM.

Details

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.

Diff Detail

Event Timeline

tstellar created this revision.Jan 22 2019, 12:48 PM
arsenm added inline comments.Jan 22 2019, 12:52 PM
include/llvm/CodeGen/ValueTypes.td
173

s/derrived/derived/

tstellar updated this revision to Diff 182970.Jan 22 2019, 12:56 PM

Fix spelling.

tstellar marked an inline comment as done.Jan 22 2019, 12:57 PM
arsenm accepted this revision.Feb 4 2019, 4:26 PM

LGTM

This revision is now accepted and ready to land.Feb 4 2019, 4:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2019, 4:26 PM
This revision was automatically updated to reflect the committed changes.