GithubHelp home page GithubHelp logo

dvc94ch / riscv-llvm-integration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lowrisc/riscv-llvm-integration

0.0 3.0 0.0 265.7 MB

Temporary repository to allow downstream collaboration on the RISC-V LLVM backend

License: Other

CMake 0.23% Shell 0.05% Go 0.08% C++ 38.17% OCaml 0.18% Python 0.38% C 0.43% PHP 0.01% Objective-C 0.01% LLVM 44.10% Mirah 1.32% Assembly 15.02% Roff 0.01% Logos 0.01% Perl 0.02% Emacs Lisp 0.01% Batchfile 0.01% Vim Script 0.01%

riscv-llvm-integration's Introduction

LLVM RISC-V integration repository

Purpose of this repository

This repository exists to act as a temporary downstream for RISC-V LLVM backend development. The ultimate goal is to get all patches merged upstream, and for development to primarily take place on upstream LLVM infrastructure (i.e. patches submitted directly for review). When the majority of the RISC-V LLVM patches are reviewed and merged, this repository will be retired. However, for the time being it exists to allow multiple parties to collaborate downstream.

We integrate patches on top of the LLVM 5.0 release branch. Although this has downsides, other prospective contributors have indicated their preference for this.

See README.orig for the original LLVM README.

Approach

History will never be rewritten for this repo, unlike the lowRISC/riscv-llvm repo which contains a patchset which is modified and rebased as necessary in order to act as a reference for LLVM backend development. All commits must be in a form that they could reasonably be accepted upstream. i.e. they should include tests, not include temporary hacks, and should do one thing at a time.

Building

See the LLVM documentation for more general guidance. You will need ~7GiB space for a debug build of LLVM+Clang.

mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE="Debug" \
  -DBUILD_SHARED_LIBS=True -DLLVM_USE_SPLIT_DWARF=True \
  -DLLVM_OPTIMIZED_TABLEGEN=True \
  -DLLVM_BUILD_TESTS=True \
  -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV" ../
cmake --build .

You may then want to run tests:

./bin/llvm-lit -s -i -v test/MC/RISCV       # RISC-V MC-layer tests
./bin/llvm-lit -s -i -v test/CodeGen/RISCV  # RISC-V CodeGen tests
./bin/llvm-lit -s -i -v test                # All tests

Status

See the lowRISC/riscv-llvm repository and status page.

Contributing

Pull requests that build on top of this repository's lib/Target/RISCV implementation are very welcome. Code should follow the recommendations in LLVM's coding standards and programmer's manual and be in a form you would be happy to submit for upstream review. You might want to refer to this issue list, and check the lowRISC/riscv-llvm repository in case there are in-development patches that haven't yet been merged here.

riscv-llvm-integration's People

Contributors

lattner avatar espindola avatar topperc avatar isanbard avatar chandlerc avatar echristo avatar stoklund avatar d0k avatar resistor avatar rksimon avatar ddunbar avatar rotateright avatar arsenm avatar chapuni avatar mbrukman avatar cunningbaldrick avatar dexonsmith avatar dwblaikie avatar nlewycky avatar asl avatar atrick avatar bob-wilson avatar majnemer avatar rnk avatar lhames avatar tstellaramd avatar ahatanak avatar tnorthover avatar sanjoy avatar matzeb avatar

Watchers

David Craven avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.