This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Allow set CPU string with -plugin-opt=mcpu=<xxx>
ClosedPublic

Authored by grimar on Feb 6 2018, 5:07 AM.

Details

Summary

Previously we ignored -plugin-opt=mcpu=<xxx>
and the only way to set CPU string was to pass
-mllvm -mcpu=<xxx>
Though clang may pass it with use of plugin options:
-plugin-opt=mcpu=x86-64
Since we are trying to be compatible in command line
with gold plugin, seems we should support it too.

Diff Detail

Event Timeline

grimar created this revision.Feb 6 2018, 5:07 AM
ruiu accepted this revision.Feb 6 2018, 10:57 AM

LGTM

This revision is now accepted and ready to land.Feb 6 2018, 10:57 AM
This revision was automatically updated to reflect the committed changes.