[PATCH] D118333: [RISCV] Use computeTargetABI from llc as well as clang

Zakk Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 8 00:39:08 PST 2022


khchen added a comment.

clang will calculate the default target-abi if -mabi is empty and encode the it in LLVM IR module flag.
then if llc has no target-abi option (`Options.MCOptions.ABIName` is empty), in getSubtargetImpl it uses different way to compute the default target-abi, then the default result is not same.
Currently it works well because getSubtargetImpl only check the ABI when `Options.MCOptions.ABIName` is not empty.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118333/new/

https://reviews.llvm.org/D118333



More information about the cfe-commits mailing list