[PATCH] D28054: CodeGen: Make MachineInstrBuilder extensible. NFC.

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 05:00:07 PST 2016


rovka created this revision.
rovka added reviewers: MatzeB, t.p.northover, dexonsmith.
rovka added subscribers: llvm-commits, rengolin.
Herald added a subscriber: aemerson.

Make it possible to create custom MachineInstr builders that can add special
operands, e.g. the predicate operands on ARM.

We achieve this by means of a MIBuilderBase class that can be used via CRTP to
create builders whose custom add* methods will chain nicely with the default
ones.

The MachineInstrBuilder inherits from MIBuilderBase and has the exact same
interface as before.

This is the first of a series of 4 patches intended to add a custom builder for the
ARM backend. See https://reviews.llvm.org/D27984 (RFC 2).


https://reviews.llvm.org/D28054

Files:
  include/llvm/CodeGen/MachineInstrBuilder.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28054.82328.patch
Type: text/x-patch
Size: 12404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161222/560f6f40/attachment.bin>


More information about the llvm-commits mailing list