This is an archive of the discontinued LLVM Phabricator instance.

[mips] Changed the way expressions in instructions are printed to support different kinds of expressions.
AbandonedPublic

Authored by s.egerton on Jan 7 2016, 7:21 AM.

Details

Summary

This added support for printing MCUnaryExpr as well as different kinds of
MCBinaryExpr.

Diff Detail

Event Timeline

s.egerton updated this revision to Diff 44210.Jan 7 2016, 7:21 AM
s.egerton retitled this revision from to [mips] Changed the way expressions in instructions are printed to support different kinds of expressions..
s.egerton updated this object.
s.egerton added reviewers: dsanders, vkalintiris.
s.egerton added a subscriber: llvm-commits.
dsanders requested changes to this revision.Feb 5 2016, 2:09 AM
dsanders edited edge metadata.

Hi,

As explained at D13592, I'd prefer not to commit this since it further breaks encapsulation of the MCExpr hierarchy. Instead, we should try to get the existing code into our MipsMCExpr. This will be difficult (chiefly because we appear to implement things like %hi as both an operator and part of the symbol which will also need fixing) but fixing the encapsulation will be cleaner overall.

This revision now requires changes to proceed.Feb 5 2016, 2:09 AM
s.egerton abandoned this revision.Feb 12 2016, 4:06 AM