This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Add templated functions and pattern matcher support for some more opcodes
ClosedPublic

Authored by volkan on Feb 14 2018, 11:36 AM.

Details

Summary

This patch adds templated functions to MachineIRBuilder for some opcodes
and adds pattern matcher support for G_AND and G_OR.

Diff Detail

Repository
rL LLVM

Event Timeline

volkan created this revision.Feb 14 2018, 11:36 AM

Minor nitpick.. Otherwise LGTM..

unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
317 ↗(On Diff #134282)

Could you also match the source of the MIBCast in order to be complete?

Otherwise LGTM!!

volkan updated this revision to Diff 134285.Feb 14 2018, 11:46 AM

Added a check for the input operand of the bitcast instruction.

volkan marked an inline comment as done.Feb 14 2018, 11:46 AM
This revision is now accepted and ready to land.Feb 14 2018, 11:58 AM
This revision was automatically updated to reflect the committed changes.