This is an archive of the discontinued LLVM Phabricator instance.

MachineScheduler: Add constructor functions for the DAGMutations
ClosedPublic

Authored by tstellarAMD on Aug 18 2016, 10:33 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to MachineScheduler: Move the DAGMutation classes into header file.
tstellarAMD updated this object.
tstellarAMD added reviewers: MatzeB, atrick.
tstellarAMD added a subscriber: llvm-commits.
MatzeB edited edge metadata.Aug 18 2016, 11:02 AM

Do you actually need the full declaration in the header or would it be enough to provide constructor functions?

Do you actually need the full declaration in the header or would it be enough to provide constructor functions?

Constructor functions would be fine.

tstellarAMD edited edge metadata.

Use constructor functions.

tstellarAMD retitled this revision from MachineScheduler: Move the DAGMutation classes into header file to MachineScheduler: Add constructor functions for the DAGMutations .Aug 19 2016, 10:35 AM
MatzeB accepted this revision.Aug 19 2016, 11:22 AM
MatzeB edited edge metadata.

LGTM. If possible please also change the code inside MachineScheduler.cpp to use the new functions!

This revision is now accepted and ready to land.Aug 19 2016, 11:22 AM
kparzysz added inline comments.
include/llvm/CodeGen/MachineScheduler.h
1010 ↗(On Diff #68710)

Can these types be identical for all the constructors?

tstellarAMD retitled this revision from MachineScheduler: Add constructor functions for the DAGMutations to MachineScheduler: Add constructor functions for the DAGMutations.
tstellarAMD edited edge metadata.

Use new constructors in MachineScheduler.cpp and make arguments consistent.

tstellarAMD marked an inline comment as done.Aug 19 2016, 12:06 PM
kparzysz accepted this revision.Aug 19 2016, 12:19 PM
kparzysz added a reviewer: kparzysz.
This revision was automatically updated to reflect the committed changes.