This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Write bitcode temporary files for bitcode inputs
ClosedPublic

Authored by arsenm on Oct 28 2022, 6:55 PM.

Details

Reviewers
aeubanks
regehr
Summary

Most tools accept .ll or .bc inputs interchangably, but some don't.
Default to writing temporary files that match the input. This
will also aid reducing deserialization bugs.

Diff Detail

Event Timeline

arsenm created this revision.Oct 28 2022, 6:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 28 2022, 6:55 PM
arsenm requested review of this revision.Oct 28 2022, 6:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 28 2022, 6:55 PM
Herald added a subscriber: wdng. · View Herald Transcript
aeubanks accepted this revision.Oct 31 2022, 1:58 PM

a test would be nice but it does seem annoying to write

This revision is now accepted and ready to land.Oct 31 2022, 1:58 PM
arsenm closed this revision.Oct 31 2022, 8:36 PM

a test would be nice but it does seem annoying to write

I was thinking I could have use llvm-as / llvm-dis as the test program. It would be less annoying if the exit code wasn't inverted like it is

412c4a8be55f3bb927170658a7ac5a807355fcd9