Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bryanpkc
Copy link
Collaborator

@bryanpkc bryanpkc commented Nov 26, 2024

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.

bryanpkc and others added 2 commits November 29, 2024 18:23
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port Classic Flang to RISC-V
2 participants