LLVM compiler-oriented RISC-V program vectorization optimization method and system
By combining high-level languages, inline assembly language and assembly language for manual vectorization optimization, and using LLVM compiler for automatic vectorization optimization, the problem of insufficient flexibility and applicability of RISC-V program vectorization optimization is solved, and the problem of insufficient flexibility and applicability of RISC-V program vectorization optimization is achieved. Efficient and flexible vector optimization solution, suitable for a variety of application scenarios and data types.
Patent Information
- Application Number
- CN202310568076.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-22
AI Technical Summary
The existing vector optimization technology has insufficient flexibility and applicability when processing RISC-V target programs. In particular, OpenACC cannot handle dynamic memory allocation. Intel AVX and CUDA can only run on specific hardware platforms, which limits their application scenarios. and the applicability of data types.
Adopt RISC-V program vectorization optimization method for LLVM compiler, combine high-level language, inline assembly language and assembly language for manual vectorization optimization, and use LLVM compiler for automatic vectorization optimization, integrating manual and automatic optimization results. Provide comprehensive vectorized solutions.
It improves the performance and efficiency of the program, can complete more calculations within the same time, is suitable for different application scenarios and data types, reduces programmers' workload, and enhances the flexibility and scalability of vectorized optimization.
Smart Images

Figure CN119002872A_ABST
Abstract
Citation Information
Cited By
Compiler optimization option prediction method, storage medium, electronic device and computer program product
CN120578393A
RISC-V and TPU heterogeneous code optimization use method based on machine learning
CN121255194A
A method for heterogeneous code optimization of RISC-V and TPU based on machine learning
CN121255194B
