期刊文献+

基于LLVM的跨架构语义相同指令序列自动生成装置

Automatic Generation Device for Cross-Architecture Semantically Identical Instruction Sequences Based on LLVM
在线阅读 下载PDF
导出
摘要 在芯片国产化进程中,指令集的设计直接影响芯片性能、能效及兼容性。现有研究在跨架构语义相同指令序列分析方面面临两大挑战:一是人工对比不同架构指令集效率低下,资源消耗大;二是编译器受限于指令集支持,难以自动生成最优指令组合。提出一种基于LLVM的跨架构语义相同指令序列自动生成方法,通过指令集组合搜索树算法和指令集判别算法,实现X86、ARM、RISC-V等多架构下语义相同指令序列的自动化生成。实验基于TSVC测试集验证表明,本方法可自动生成单一架构内不同优化阶段、不同指令集组合以及跨架构三类语义相同指令序列,生成效率较人工方式提升99%,为指令集研发和编译器优化提供了高效工具支持。 In the process of chip localization,the design of instruction sets directly affects chip performance,energy efficiency and compatibility.Existing research faces two major challenges in the analysis of semantically identical instruction sequences across architectures:first,manual comparison of instruction sets of different architectures is inefficient and resource-intensive;second,compilers are limited by instruction set support,and it is difficult to automatically generate the optimal instruction combination.This paper proposes an automatic generation method for semantically identical instruction sequences across architectures based on LLVM.Through the instruction set combination search tree algorithm and instruction set discrimination algorithm,the automatic generation of semantically identical instruction sequences under multiple architectures such as X86,ARM,and RISC-V is realized.Experimental verification based on the TSVC test set shows that this method can automatically generate three types of semantically identical instruction sequences for different optimization stages within a single architecture,those with different instruction set combinations,and those across architectures.The generation efficiency is improved by 99%compared with the manual method,providing efficient tool support for instruction set development and compiler optimization.
作者 陈俊一 何先波 滕芊芊 CHEN Junyi;HE Xianbo;TENG Qianqian(College of Electronics and Information Engineering,China West Normal University,Nanchong Sichuan 637009,China;College of Computer,China West Normal University,Nanchong Sichuan 637009,China)
出处 《四川文理学院学报》 2025年第5期137-144,共8页 Sichuan University of Arts and Science Journal
关键词 编译器优化 芯片设计 LLVM编译器 语义相同 指令集 compiler optimization chip design LLVM compiler identical semantics instruction set
  • 相关文献

参考文献2

二级参考文献3

共引文献17

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部