[PATCH] D72768: [RISCV] Check the target-abi module flag matches the -target-abi option

Kuan Hsu Chen (Zakk) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 07:00:38 PST 2020


khchen created this revision.
khchen added reviewers: lenary, asb.
khchen added a project: LLVM.
Herald added subscribers: llvm-commits, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.

This is subsequent patch of D72755 <https://reviews.llvm.org/D72755>.
module-target-abi2.ll testcase want to address a problem about TargetABI info in RISCVAsmBackend will not update after getSubtargetImpl create a new subtarget.
so RISCVELFStreamer will get the older TargetABI value from RISCVAsmBackend.

module-target-abi.ll doesn't have this problem because the default TargetABI value is equal to target-abi module flag.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72768

Files:
  llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
  llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.cpp
  llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
  llvm/test/CodeGen/RISCV/module-target-abi.ll
  llvm/test/CodeGen/RISCV/module-target-abi2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72768.238240.patch
Type: text/x-patch
Size: 5839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200115/cdb01f4a/attachment.bin>


More information about the llvm-commits mailing list