This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Allow global register asm("x18") or asm("w18") under -ffixed-x18
ClosedPublic

Authored by mcgrathr on Apr 6 2017, 3:59 PM.

Details

Summary

When using -ffixed-x18, the x18 (or w18) register can safely be used
with the "global register variable" GCC extension, but the backend
fails to recognize it.

Diff Detail

Repository
rL LLVM

Event Timeline

mcgrathr created this revision.Apr 6 2017, 3:59 PM
jmolloy accepted this revision.Apr 7 2017, 12:08 AM
jmolloy added a subscriber: jmolloy.

LGTM, thanks!

This revision is now accepted and ready to land.Apr 7 2017, 12:08 AM
This revision was automatically updated to reflect the committed changes.