This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Pass target-abi via module flag metadata
ClosedPublic

Authored by khchen on Jan 15 2020, 2:00 AM.

Details

Summary

in D71387, and this we agree encoding target-abi in module would make sense.
This patch only emit target-abi for RISCV because the first user is probably only the RISC-V target.

Diff Detail

Repository
rC Clang

Event Timeline

khchen created this revision.Jan 15 2020, 2:00 AM

Please can you also add code for ensuring that the target-abi module flag matches the -target-abi command line flag in llvm?

Please can you also add code for ensuring that the target-abi module flag matches the -target-abi command line flag in llvm?

please see D72768, thanks!

lenary accepted this revision.Jan 20 2020, 7:11 AM

LGTM, Thank You!

This revision is now accepted and ready to land.Jan 20 2020, 7:11 AM
This revision was automatically updated to reflect the committed changes.