This is an archive of the discontinued LLVM Phabricator instance.

[LoopAccesses] Make raw_string_ostream local in VectorizationReport
ClosedPublic

Authored by anemet on Feb 16 2015, 2:19 PM.

Details

Summary

Since VectorizationReport will be part of the result of the analysis it
will be stored in a container. However, one of its members is a
raw_string_ostream which cannot be copy-constructed.

This makes the raw_string_ostream local to the << operator.

This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.

Diff Detail

Event Timeline

anemet updated this revision to Diff 20047.Feb 16 2015, 2:19 PM
anemet retitled this revision from to [LoopAccesses] Make raw_string_ostream local in VectorizationReport.
anemet updated this object.
anemet edited the test plan for this revision. (Show Details)
anemet added reviewers: hfinkel, aschwaighofer, nadav.
anemet added a subscriber: Unknown Object (MLST).
hfinkel accepted this revision.Feb 16 2015, 4:01 PM
hfinkel edited edge metadata.

Indeed; we normally use these as temporaries. LGTM.

This revision is now accepted and ready to land.Feb 16 2015, 4:01 PM
anemet closed this revision.Mar 1 2015, 9:43 PM

r229620