This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: terminate compilation on failure in Inline ASM
AbandonedPublic

Authored by compnerd on Jan 4 2015, 5:42 PM.

Details

Reviewers
None
Summary

In the case that we come across an error related to inline assembly, simply
terminate at that point. There is no recovery path at this point. In the best
case scenario, we will fail later on in assertions, and in the worst case, we
would lose the instruction in selection entirely.

Formulating a test for this is difficult as it relies on generating instructions
which may assert during lowering in SelDAG and other paths which don't which
seems rather fragile.

Diff Detail

Event Timeline

compnerd updated this revision to Diff 17780.Jan 4 2015, 5:42 PM
compnerd retitled this revision from to CodeGen: terminate compilation on failure in Inline ASM.
compnerd updated this object.
compnerd edited the test plan for this revision. (Show Details)
compnerd set the repository for this revision to rL LLVM.
compnerd added a subscriber: Unknown Object (MLST).
compnerd abandoned this revision.Jan 4 2015, 10:16 PM

This can be handled much better at the Sema level; thanks to majnemer for pointing that out.