This is an archive of the discontinued LLVM Phabricator instance.

[MIB] Create a helper function getRegState to extract all register flags
ClosedPublic

Authored by kparzysz on May 12 2016, 9:26 AM.

Details

Summary

When creating a new instruction that is based on an existing one, it may be useful to have a simple way of extracting the union of all flags from a register operand.

Diff Detail

Repository
rL LLVM

Event Timeline

kparzysz updated this revision to Diff 57057.May 12 2016, 9:26 AM
kparzysz retitled this revision from to [MIB] Create a helper function getRegState to extract all register flags.
kparzysz updated this object.
kparzysz added reviewers: dexonsmith, rnk.
kparzysz set the repository for this revision to rL LLVM.
kparzysz added a subscriber: llvm-commits.
qcolombet accepted this revision.May 12 2016, 4:37 PM
qcolombet added a reviewer: qcolombet.
qcolombet added a subscriber: qcolombet.

Hi Krzysztof,

LGTM with a doxygen comment on the added function.

Cheers,
-Quentin

include/llvm/CodeGen/MachineInstrBuilder.h
389

Add a doxygen comment on that function.

This revision is now accepted and ready to land.May 12 2016, 4:37 PM
kparzysz closed this revision.May 13 2016, 6:09 AM

Committed in r269414 with the requested change. Forgot to add the "Differential Revision" to the commit message so this review did not get closed automatically.