This is an archive of the discontinued LLVM Phabricator instance.

[PoC][RISCV][LTO] Pass target-abi via module flag metadata (solution 2 )
AbandonedPublic

Authored by khchen on Jan 5 2020, 10:01 PM.

Details

Reviewers
None
Summary
  1. Support ABI checking with per function target-features

if users don't specific -mattr, the default target-feature come from IR attribute.

  1. Enable LTO for RISCV
  2. Init MCOptions.ABIName via module flag metadata
  3. do some hack in RISCVAsmBackend

Diff Detail