Research and Implementation of LLVM JIT Porting for Sunway Processor
Download as PDF
DOI: 10.23977/CNCI2020050
Author(s)
Jiandong Shang, Hongsheng Wang and Mengyao Chen
Corresponding Author
Jiandong Shang
ABSTRACT
Sunway processor is a general-purpose processor with independent instruction set and complete independent intellectual property rights, and has been successfully applied in various fields. As an open source compilation framework, LLVM has been widely adopted by commercial and open source projects. It is of great practical significance to implement the porting of LLVM to Sunway platform. Through the analysis and research of the basic composition of the JIT (just-in-time) compilation system and the functional principles of each component in LLVM, combined with the backend porting mechanism of the open source compiler, the porting of the JIT compiler on the Sunway multi-core processor platform is implemented. Relevant tests were completed based on the LLVM test-suite, and the correctness of the transplanted LLVM JIT compiler was verified.
KEYWORDS
LLVM; JIT compilation; sunway processor; porting