[PATCH] D39963: [RISCV][RFC] Add initial RISC-V target and driver support
Alex Bradbury via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 16 12:13:42 PST 2017
asb updated this revision to Diff 123229.
asb marked an inline comment as done.
asb added a comment.
Consider this a WIP update. This is not yet ready for merging, but could still benefit from feedback.
This update adds support for RISC-V to the Linux toolchain driver, which includes support for multilib selection. Unfortunately I had to add a special case to lib/Driver/Toolchains/Linux.cpp for adding lib paths laid out according to the RISC-V multilib conventions (e.g. $SYSROOT/lib32/ilp32, $SYSROOT/usr/lib32/ilp32). I notice that Mips had to do something similar, and ended up defining the MipsLinux class.
@jroelofs: Did you have any views one way or the other about extending BareMetal to support RISC-V as well as ARM?
https://reviews.llvm.org/D39963
Files:
lib/Basic/CMakeLists.txt
lib/Basic/Targets.cpp
lib/Basic/Targets/RISCV.cpp
lib/Basic/Targets/RISCV.h
lib/Driver/CMakeLists.txt
lib/Driver/Driver.cpp
lib/Driver/ToolChains/Arch/RISCV.cpp
lib/Driver/ToolChains/Arch/RISCV.h
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/Clang.h
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/Linux.cpp
lib/Driver/ToolChains/RISCV.cpp
lib/Driver/ToolChains/RISCV.h
test/Driver/frame-pointer.c
test/Driver/riscv-abi.c
test/Driver/riscv-features.c
test/Driver/riscv32-toolchain.c
test/Driver/riscv64-toolchain.c
test/Preprocessor/init.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39963.123229.patch
Type: text/x-patch
Size: 53727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171116/a6143976/attachment-0001.bin>
More information about the cfe-commits
mailing list