The invention relates to a method for realizing an LD (Load)
assembly instruction of a special processor
chip based on an LLVM (Load-Load) rear end, and aims at a special architecture of an LD instruction in an
instruction set of the special processor
chip, a set of complete mapping mechanism from an intermediate representation to a target
machine instruction is constructed by newly establishing a rear end
processing flow of an LLVM compiling framework, and the LD (Load)
assembly instruction of the special processor
chip is obtained. And conversion from a high-level language to a chip special
assembly instruction is realized. In the
legalization stage of the rear end of the LLVM, unified architecture
adaptation processing is carried out on global address access and a vector / scalar loading mode through a user-defined ISelLowing mechanism and
instruction selection. According to the method, the
intermediate language representation is converted into the target
machine instruction for the special processor chip by utilizing the LLVM rear end, and according to the method, a developer can directly realize
algorithm logic in a high-level language stage without manually writing a bottom assembly code, so that the development complexity is reduced, and the portability and
maintainability of the code are improved.