如何编译生成带intrinsic的llvm-ir, @llvm.riscv.xxx
lyuchuny3 opened this issue · 1 comments
lyuchuny3 commented
luxufan commented
Hi,
您需要预先构建一套GNU的toolchain,这是链接: https://github.com/riscv/riscv-gnu-toolchain
随后clang 编译时带上参数: -gcc-toolchain="path to gnu toolchain" --sysroot="path to gnu sysroot"