GithubHelp home page GithubHelp logo

compiler-dev / llvm-rv Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 4.0 647.42 MB

Full Support 32bit RISC-V in LLVM and CLANG for Vector Extension

Home Page: http://www.compiler-dev.com

CMake 0.34% C++ 46.10% CSS 0.02% JavaScript 0.03% Python 1.39% Emacs Lisp 0.01% C 10.88% Batchfile 0.01% Objective-C 0.71% Objective-C++ 0.18% HTML 2.08% MATLAB 0.01% Forth 0.01% Mercury 0.01% LLVM 27.43% Assembly 10.69% Cuda 0.11% Rust 0.01% M 0.01% Cool 0.01%
llvm risc-v vector

llvm-rv's People

Contributors

akyrtzi avatar arsenm avatar chandlerc avatar chapuni avatar d0k avatar ddunbar avatar douggregor avatar dwblaikie avatar echristo avatar eefriedman avatar ericwf avatar espindola avatar isanbard avatar kcc avatar labath avatar lattner avatar majnemer avatar nico avatar pcc avatar resistor avatar rjmccall avatar rksimon avatar rnk avatar rotateright avatar rui314 avatar stoklund avatar tkremenek avatar tobiasgrosser avatar topperc avatar zygoloid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

llvm-rv's Issues

Code in rvv_test/intrinsic fails to compile

Hello,I have a problem about compiling,I succeeded when compiling rvv-test/vadd_vv_i32.c,but when compiling rvv-test/intrinsic/vadd_vv_i8.c, It was failed:error: unknown type name 'vint8m2_t';did you mean 'vint8m1_t'? And there is one note: 'vint8m1_t' declared here typedef attribute((riscv_vector_type(16))) int8_t vint8m1_t;
So how can I solve this problem?

The compilation of RVV test program failed

I followed all the steps listed in this page.
Yet I got compilation errors

in directory LLVM-RV/RVV-TEST
Command:
clang vadd_vv_i32.c -O2 --target=riscv32 -march=rv32imafcv --sysroot=$TOOL_CHAIN_PATH/riscv-unknown-elf --gcc-toolchain=$TOOL_CHAIN_PATH -o vadd_vv_i32.out

In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
/home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:10:10: error: 'newlib.h' file not found with include; use "quotes" instead
#include <newlib.h>
^~~~~~~~~~
"newlib.h"
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:10:
/home/ubuntu/Spike/riscv32-unknown-elf/include/newlib.h:14:10: error: '_newlib_version.h' file not found with include; use "quotes" instead
#include <_newlib_version.h>
^~~~~~~~~~~~~~~~~~~
"_newlib_version.h"
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
/home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:11:10: error: 'sys/config.h' file not found with include; use "quotes" instead
#include <sys/config.h>
^~~~~~~~~~~~~~
"sys/config.h"
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:11:
/home/ubuntu/Spike/riscv32-unknown-elf/include/sys/config.h:4:10: fatal error: 'machine/ieeefp.h' file not found
#include <machine/ieeefp.h> /* floating point macros */
^~~~~~~~~~~~~~~~~~
4 errors generated.

Many other errors in running SPike as well (even if the path for stdio.h which was not in the default path was specified explcitly)-
A simple hello program -

spike pk hello
error: bad --varch option 'vlen:128,elen:32,slen:128'. Unsupported token

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.