This is an archive of the discontinued LLVM Phabricator instance.

Add support for 'leal' instruction to UnwindAssembly-x86
ClosedPublic

Authored by tberghammer on Mar 24 2015, 6:42 AM.

Details

Summary

Add support for 'leal' instruction to UnwindAssembly-x86

Gcc for android use the leal instruction to subtract from the stack pointer in the prologue of a function call. This patch add basic support for evaluating this instruction to support stack unwinding on android-x86.

Diff Detail

Repository
rL LLVM

Event Timeline

tberghammer retitled this revision from to Add support for 'leal' instruction to UnwindAssembly-x86.
tberghammer updated this object.
tberghammer edited the test plan for this revision. (Show Details)
tberghammer added a reviewer: jasonmolenda.
tberghammer added a subscriber: Unknown Object (MLST).
jasonmolenda accepted this revision.Mar 24 2015, 2:40 PM
jasonmolenda edited edge metadata.

Looks good, thanks for adding this, please commit. In the comments in lea_rsp_pattern_p() did you mean to write '8 bit' and '32 bit' displacement?

This revision is now accepted and ready to land.Mar 24 2015, 2:40 PM

Thanks for catching the typos.

This revision was automatically updated to reflect the committed changes.