
Building compiler backends by producing the *.td files for a new target manually as in (a) prior work and automatically as in (b) this work.
Figures of the Article
-
Heavy research and development (R&D) efforts in writing target description (.td) files for a new target in LLVM 12.0.
-
Reduced R&D efforts in specifying a few target-specific properties.
-
Building compiler backends by producing the *.td files for a new target manually as in (a) prior work and automatically as in (b) this work.
-
Motivating example for illustrating ATG. (a) Bit encoding of c.jr from RISC-V. (b) Hand-written description of c.jr taken from LLVM. (c) Description of c.jr generated by ATG automatically. (d) The only effort from compiler developers for c.jr. (e) Example records (MicroMIPS and MIPS64). (f) TRGs (MicroMIPS and MIPS64). (g) ISA models (MicroMIPS and MIPS64). (h) Target-specific property list. (i) Synthesized code-layout template list. (j) Synthesized TPLRec-List for c.jr. (k) Target-specific properity list (TSP-List). (l) Similarity-based matching. (m) Schemes for failed matching. Ri: record i. Idx: index.
-
Framework of Automatic Target Description File Generation (ATG).
-
Target-specific properties distribution among different ISAs.
-
Code-layout template for failed match instructions. (a) Bit encoding of c.fldsp from RISC-V. (b) Hand-written description of c.fldsp taken from LLVM. (c) Automatically generated description of c.fldsp by ATG. (d) Only effort by developers for c.fldsp. (e) Target-specific properity list (TSP-List). (f) Auxiliary template (AUX-TPL) for failed match instructions.
-
Experiments on instruction generation with LLVM regression tests. (a) RV32-mode. (b) RV64-mode.
Others
-
Read Online
https://rdcu.be/dxI8D -
PDF format
2023-6-9-1919-Highlights 192KB -
Compressed file
2023-6-9-1919-Highlights 99KB
Related articles
-
2002, 17(6)
-
1995, 10(6): 491-508.
-
1995, 10(3): 206-213.
-
1995, 10(1): 42-52.
-
1994, 9(4): 349-364.
-
1991, 6(3): 296-300.
-
1990, 5(3): 241-249.
-
1989, 4(4): 295-303.
-
1986, 1(4): 62-74.
-
1986, 1(2): 1-14.