-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RISCV] Port Classic Flang to 64-bit RISC-V #1462
base: master
Are you sure you want to change the base?
Conversation
02a745f
to
cd49c71
Compare
cd49c71
to
30525e9
Compare
This patch changes CMakeLists.txt and build scripts to support cross-compiling Fortran programs in the frontend, and to cross-compile all runtime libraries for the target architecture. LLVM must support the specified target. Co-authored-by: Prabhdeep Singh Soni <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks reasonable to me from prior experience with classic flang (oops, autocorrected), but I haven't built this yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no means to test it, but it looks OK
This PR adds support for RISC-V to Classic Flang, and changes the build script and CMake files to build Classic Flang as a cross-compiler. Target-specific frontend tools (e.g.
riscv64-unknown-linux-gnu-flang1
,riscv64-unknown-linux-gnu-flang2
) are installed under$LLVM_DIR/bin/
, while target-specific Fortran runtime libraries are installed along with OpenMP libraries under$LLVM_DIR/lib/$target/
.See the wiki for instructions on building a cross-compiler for RISCV.
Depends on flang-compiler/classic-flang-llvm-project#205.
Closes #1447.