This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: Make MachineInstrBuilder extensible. NFC.
AbandonedPublic

Authored by rovka on Dec 22 2016, 5:00 AM.

Details

Summary

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 D27984 (RFC 2).

Diff Detail

Event Timeline

rovka updated this revision to Diff 82328.Dec 22 2016, 5:00 AM
rovka retitled this revision from to CodeGen: Make MachineInstrBuilder extensible. NFC..
rovka updated this object.
rovka added reviewers: MatzeB, t.p.northover, dexonsmith.
rovka added subscribers: llvm-commits, rengolin.
rovka abandoned this revision.Jan 11 2017, 4:40 AM

Abandoning this in favor of https://reviews.llvm.org/D28557 & co.