This is an archive of the discontinued LLVM Phabricator instance.

[openmp] Unconditionally set march commandline argument
ClosedPublic

Authored by JonChesterfield on Jan 19 2022, 11:01 AM.

Details

Summary

Extracted from D117246. This reflects the march value used by the
compile back into the toolchain arguments, letting downstream processes
such as LTO rely on it being present. Subsequent patches should also be able
to remove the two other calls to checkSystemForAMDGPU.

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.Jan 19 2022, 11:01 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhuber6 accepted this revision.Jan 19 2022, 11:10 AM

LGTM, with this you should be able to replace calls for the AMDGPU arch with querying the ToolChain args, e.g. TCArgs.getLastArgValue(options::OPT_march_EQ)

This revision is now accepted and ready to land.Jan 19 2022, 11:10 AM
This revision was landed with ongoing or failed builds.Jan 19 2022, 11:15 AM
This revision was automatically updated to reflect the committed changes.

Landed with you as author and me as reviewer as that seems a more accurate statement than the default. Thanks!