summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2019-03-09 09:28:06 +0000
committerAlex Bradbury <asb@lowrisc.org>2019-03-09 09:28:06 +0000
commitfea4957177315f83746dca90cb4c9013eb465c46 (patch)
treeb9a9b764109fbfabbc1d2453688f2ae8c889b187 /clang/unittests/Basic/SourceManagerTest.cpp
parent972d7d514b2fbed4c256ce3a7e258e9e5e5a5ab9 (diff)
downloadbcm5719-llvm-fea4957177315f83746dca90cb4c9013eb465c46.tar.gz
bcm5719-llvm-fea4957177315f83746dca90cb4c9013eb465c46.zip
[RISCV] Support -target-abi at the MC layer and for codegen
This patch adds proper handling of -target-abi, as accepted by llvm-mc and llc. Lowering (codegen) for the hard-float ABIs will follow in a subsequent patch. However, this patch does add MC layer support for the hard float and RVE ABIs (emission of the appropriate ELF flags https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md#-file-header). ABI parsing must be shared between codegen and the MC layer, so we add computeTargetABI to RISCVUtils. A warning will be printed if an invalid or unrecognized ABI is given. Differential Revision: https://reviews.llvm.org/D59023 llvm-svn: 355771
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud