Compiler Back-End Reuse Method, Apparatus, Compiler, and Storage Medium
AssigneesVerisilicon Microelectronics (Chengdu) Co., Ltd., VeriSilicon Microelectronics (Shanghai) Co., Ltd., Verisilicon Technology (Shanghai) Co., Ltd., Verisilicon Microelectronics (Hainan) Co., Ltd., VeriSilicon Microelectronics (Nanjing) Co., Ltd.
InventorTingting Yu
Life of this patent
Estimating the term…
Abstract
Provided are to a compiler back-end reuse method, apparatus, compiler, and computer-readable storage medium. The compiler back-end reuse method includes: acquiring a shader code and being compiled by a compiler front-end to obtain an intermediate code; converting the intermediate code into a target intermediate code of a preset format; converting an original resource identifier corresponding to the intermediate code into a target resource identifier of the preset format; and sending the target intermediate code and the target resource identifier to the compiler back-end to generate a target machine code.
Claims19
A compiler back-end reuse method, comprising:
- acquiring an intermediate code obtained by compiling a shader code by a compiler front-end;
- converting the intermediate code into a target intermediate code of a preset format;
- converting an original resource identifier corresponding to the intermediate code into a target resource identifier of the preset format;
- and
- sending the target intermediate code and the target resource identifier to the compiler back-end to generate a target machine code.
A compiler back-end reuse apparatus, comprising:
- a communication module, wherein the communication module is configured to acquire an intermediate code obtained by compiling a shader code by a compiler front-end;
- an intermediate code conversion module, wherein the intermediate code conversion module is configured to convert the intermediate code into a target intermediate code of a preset format;
- and
- a resource identifier conversion module, wherein the resource identifier conversion module is configured to convert an original resource identifier corresponding to the intermediate code into a target resource identifier of the preset format, wherein
- the communication module is further configured to send the target intermediate code and the target resource identifier to the compiler back-end, so as to send the target intermediate code and the target resource identifier to the compiler back-end to generate a target machine code.
Dependencies are inferred from the claim text.