本文已被:浏览 1490次 下载 4627次
Received:April 27, 2021 Revised:May 21, 2021
Received:April 27, 2021 Revised:May 21, 2021
中文摘要: RISC-V指令集架构具有模块化、可扩展等特性. 基于RISC-V架构的处理器, 可以在整数指令集的基础之上, 有选择地支持官方标准指令集扩展, 以及非标准的用户自定义指令集扩展. 这也意味着, 对于每个新增的自定义扩展指令集, 用户都需要自己在编译工具链中实现相应支持. 通过分析LLVM编译框架, 研究RISC-V自定义扩展指令支持的通用方法, 并以玄铁C910自定义指令集为例进行实现和验证. 为基于LLVM基础架构的RISC-V自定义指令集扩展研究与实现提供借鉴.
Abstract:The RISC-V instruction set architecture features modularization and scalability. On the basis of the integer instruction set, the RISC-V architecture based processors can optionally support the official standard and non-standard custom instruction set extensions. This also means that, for each new custom extended instruction set, users need to implement corresponding support in the compiler toolchain. After analyzing the LLVM compilation framework and researching the general methods supporting RISC-V custom extended instructions, we conduct the implementation and verification with the XuanTie C910 custom instruction set as an example. The results can provide references for the research and implementation of RISC-V custom instruction set extension based on LLVM infrastructure.
keywords: LLVM RISC-V XuanTie C910
文章编号: 中图分类号: 文献标志码:
基金项目:中国科学院战略性先导科技专项(C类)(XDC05040200)
引用文本:
王鹏,陈影,邢明杰.基于LLVM的RISC-V自定义扩展指令支持方法.计算机系统应用,2021,30(11):20-26
WANG Peng,CHEN Ying,XING Ming-Jie.Method of LLVM-Based RISC-V Custom Extended Instructions Support.COMPUTER SYSTEMS APPLICATIONS,2021,30(11):20-26
王鹏,陈影,邢明杰.基于LLVM的RISC-V自定义扩展指令支持方法.计算机系统应用,2021,30(11):20-26
WANG Peng,CHEN Ying,XING Ming-Jie.Method of LLVM-Based RISC-V Custom Extended Instructions Support.COMPUTER SYSTEMS APPLICATIONS,2021,30(11):20-26