This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis] Use a Prototype to defer picking a value for free vars.
ClosedPublic

Authored by gchatelet on Jun 19 2018, 1:47 AM.

Details

Summary

Introducing a Prototype object to capture Variables that must be set but keeps degrees of freedom as Invalid. This allows exploring non constraint variables later on.

Diff Detail

Repository
rL LLVM

Event Timeline

gchatelet created this revision.Jun 19 2018, 1:47 AM
courbet added inline comments.Jun 19 2018, 6:29 AM
tools/llvm-exegesis/lib/MCInstrDescView.cpp
131 ↗(On Diff #151868)

?

tools/llvm-exegesis/lib/MCInstrDescView.h
91 ↗(On Diff #151868)

[nit] noexcept

91 ↗(On Diff #151868)

class InstructionInstance {

InstructionInstance(InstructionInstance&&) noexcept;

};

inline InstructionInstance::InstructionInstance(InstructionInstance&&) noexcept = default;

To force the compiler to actually generate the code.

103 ↗(On Diff #151868)

Did you want to add this is a separate patch ? It's not called and not implemented.

121 ↗(On Diff #151868)

ditto

gchatelet marked 5 inline comments as done.Jun 19 2018, 6:47 AM
gchatelet updated this revision to Diff 151913.Jun 19 2018, 6:48 AM

Addressed comments.

courbet accepted this revision.Jun 20 2018, 1:52 AM
This revision is now accepted and ready to land.Jun 20 2018, 1:52 AM
This revision was automatically updated to reflect the committed changes.