docz1105 commited on
Commit
fb08dc4
·
verified ·
1 Parent(s): eefdf23

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +140 -128
README.md CHANGED
@@ -1,128 +1,140 @@
1
- ---
2
- pretty_name: "ComBack++"
3
- language:
4
- - code
5
- pipeline_tag: Compiler Backend
6
- tags:
7
- - C++/TableGen/Machine Description Code
8
- - Compiler Backend
9
- license: "cc-by-4.0"
10
- # configs:
11
- # - config_name: Statement-Level Completion
12
- # data_files :
13
- # - split: train
14
- # path: Code_Completion/statement_level/train*
15
- # - split: validation
16
- # path: Code_Completion/statement_level/valid*
17
- # - split: test
18
- # path: Code_Completion/statement_level/test*
19
- # - config_name: Next-Statement Suggestion
20
- # data_files :
21
- # - split: train
22
- # path: Code_Completion/next_statement/train*
23
- # - split: validation
24
- # path: Code_Completion/next_statement/valid*
25
- # - split: test
26
- # path: Code_Completion/next_statement/test*
27
- # - config_name: Code Generation
28
- # data_files :
29
- # - split: train
30
- # path: Code_Generation/train*
31
- # - split: validation
32
- # path: Code_Generation/valid*
33
- # - split: test
34
- # path: Code_Generation/test*
35
- ---
36
-
37
-
38
- # ComBack++: A Multi-Language Dataset Providing End-to-End Support for Compiler Backend Development
39
-
40
- ComBack++ is a large-scale, multi-platform and multi-language compiler backend code dataset. It is sourced from GCC and LLVM backends corresponding to 183 target platforms.
41
-
42
- ## Dataset Information
43
-
44
- - Source Data
45
- - GCC
46
-
47
- | Category | Target Platform | C++ Function | C++ KLoC | Machine Description KLoC |
48
- | ---- | ---- | ---- | ---- | ---- |
49
- | CPU | 30 | 56,211 | 858.2 | 228.5 |
50
- | MPU | 35 | 8,713 | 243.8 | 87.1 |
51
- | GPU | 2 | 731 | 12.7 | 3.0 |
52
- | VLIW | 5 | 1,323 | 32.8 | 17.8 |
53
- | DSP | 4 | 542 | 17.2 | 6.1 |
54
- | Virtual | 5 | 558 | 10.5 | 0.1 |
55
- | **SUM** | **81** | **68,078** | **1175.2** | **342.6** |
56
-
57
-
58
- - LLVM
59
-
60
- | Category | Target Platform | C++ Function | C++ KLoC | TableGen KLoC |
61
- | ---- | ---- | ---- | ---- | ---- |
62
- | CPU | 43 | 97,972 | 3,768.4 | 1,157.7 |
63
- | MPU | 30 | 12,552 | 190.7 | 24.8 |
64
- | GPU | 5 | 28,267 | 886.8 | 168.5 |
65
- | VLIW | 5 | 2,386 | 27.4 | 0.8 |
66
- | DSP | 7 | 11,584 | 296.8 | 129.4 |
67
- | Virtual | 12 | 10,538 | 199.4 | 12.9 |
68
- | **SUM** | **102** | **163,299** | **5,369.5** | **1,494.1** |
69
-
70
-
71
- - Tasks
72
- - Statement-Level Completion: complete current statement.
73
- ```c++
74
- //Inputs:
75
- ...
76
- adjustReg(MBB,LastFrameDestroy, DL, SPReg, FPReg, -StackSize+RVFI->getVarArgsSaveSize()
77
- //Ground Truth:
78
- MachineInstr::FrameDestroy);
79
- ```
80
-
81
- - Next-Statement Suggestion: predict the next statement.
82
-
83
- ```c++
84
- //Inputs:
85
- ...
86
- maxCallFrameSize = (maxCallFrameSize + AlignMask) & ~AlignMask;
87
- //Ground Truth:
88
- MFI -> setMaxCallFrameSize(maxCallFrameSize);
89
- ```
90
-
91
-
92
- - Code Generation: generate a function template with function description in natrual language.
93
-
94
- ```c++
95
- //Inputs:
96
- getPointerRegClass: Returns a TargetRegisterClass used for pointer values.
97
- //Ground Truth:
98
- TargetRegisterClass *RegisterInfo::getPointerRegClass(MachineFunction &MF ,unsigned Kind) {
99
- return Subtarget.is64Bit() ? <ISA_LIT> : <ISA_LIT>;
100
- }
101
- ```
102
-
103
- - Program Repair: automatically fixing bugs at identified locations.
104
-
105
- ```c++
106
- //Inputs:
107
- int64_t Imm; <BUGS> MCExpr::VariantKind VK; <BUGE> ...
108
- //Ground Truth:
109
- <FIXS> MCExpr::VariantKind VK = MCExpr::VK_None; <FIXE>
110
- ```
111
-
112
- ## Organization
113
-
114
-
115
-
116
- - `./*.jsonl`: **Take data of RISC-V,ARC,NVPTX both in GCC and LLVM as test set, split train/valid set in the ratio of 90%:10% of other targets excluding RI5CY(RI5CY is custmoized based on RISCV)**
117
-
118
-
119
-
120
- | Task | Programming Language | Train | Valid | Test |
121
- |---------------------------- |---------------------- |------------------ |---------------- |--------------- |
122
- | Statement-Level Completion | C++ | 149,368 (16.41M) | 16,480 (1.84M) | 7,897 (0.82M) |
123
- | Statement-Level Completion | TableGen/MD | 120,460 (4.46M) | 13,295 (0.50M) | 7,090 (0.25M) |
124
- | Next-Statement Suggestion | C++ | 137,155 (20.55M) | 15,218 (2.32M) | 8,109 (1.09M) |
125
- | Next-Statement Suggestion | TableGen/MD | 124,528 (6.71M) | 14,009 (0.76M) | 2,726 (0.14M) |
126
- | Code Generation | C++ | 37,805 (10.69M) | 4,137 (1.16M) | 2,944 (0.73M) |
127
- | Program Repair | C++ | 40,578 (4.33M) | 4,539 (0.48M) | 2,623 (0.29M) |
128
- | Program Repair | TableGen/MD | 25,983 (2.95M) | 2,975 (0.33M) | 1,814 (0.24M) |
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "ComBack++"
3
+ language:
4
+ - code
5
+ pipeline_tag: Compiler Backend
6
+ tags:
7
+ - C++/TableGen/Machine Description Code
8
+ - Compiler Backend
9
+ license: "cc-by-4.0"
10
+ # configs:
11
+ # - config_name: Statement-Level Completion
12
+ # data_files :
13
+ # - split: train
14
+ # path: Code_Completion/statement_level/train*
15
+ # - split: validation
16
+ # path: Code_Completion/statement_level/valid*
17
+ # - split: test
18
+ # path: Code_Completion/statement_level/test*
19
+ # - config_name: Next-Statement Suggestion
20
+ # data_files :
21
+ # - split: train
22
+ # path: Code_Completion/next_statement/train*
23
+ # - split: validation
24
+ # path: Code_Completion/next_statement/valid*
25
+ # - split: test
26
+ # path: Code_Completion/next_statement/test*
27
+ # - config_name: Code Generation
28
+ # data_files :
29
+ # - split: train
30
+ # path: Code_Generation/train*
31
+ # - split: validation
32
+ # path: Code_Generation/valid*
33
+ # - split: test
34
+ # path: Code_Generation/test*
35
+ ---
36
+
37
+
38
+ # ComBack++: A Multi-Language Dataset Providing End-to-End Support for Compiler Backend Development
39
+
40
+ ComBack++ is a large-scale, multi-platform and multi-language compiler backend code dataset. It is sourced from GCC and LLVM backends corresponding to 183 target platforms.
41
+
42
+ ## Dataset Information
43
+
44
+ - Source Data
45
+ - GCC
46
+
47
+ | Category | Target Platform | C++ Function | C++ KLoC | Machine Description KLoC |
48
+ | ---- | ---- | ---- | ---- | ---- |
49
+ | CPU | 30 | 56,211 | 858.2 | 228.5 |
50
+ | MPU | 35 | 8,713 | 243.8 | 87.1 |
51
+ | GPU | 2 | 731 | 12.7 | 3.0 |
52
+ | VLIW | 5 | 1,323 | 32.8 | 17.8 |
53
+ | DSP | 4 | 542 | 17.2 | 6.1 |
54
+ | Virtual | 5 | 558 | 10.5 | 0.1 |
55
+ | **SUM** | **81** | **68,078** | **1175.2** | **342.6** |
56
+
57
+
58
+ - LLVM
59
+
60
+ | Category | Target Platform | C++ Function | C++ KLoC | TableGen KLoC |
61
+ | ---- | ---- | ---- | ---- | ---- |
62
+ | CPU | 43 | 97,972 | 3,768.4 | 1,157.7 |
63
+ | MPU | 30 | 12,552 | 190.7 | 24.8 |
64
+ | GPU | 5 | 28,267 | 886.8 | 168.5 |
65
+ | VLIW | 5 | 2,386 | 27.4 | 0.8 |
66
+ | DSP | 7 | 11,584 | 296.8 | 129.4 |
67
+ | Virtual | 12 | 10,538 | 199.4 | 12.9 |
68
+ | **SUM** | **102** | **163,299** | **5,369.5** | **1,494.1** |
69
+
70
+
71
+ - Tasks
72
+ - Statement-Level Completion: complete current statement.
73
+ ```c++
74
+ //Inputs:
75
+ ...
76
+ adjustReg(MBB,LastFrameDestroy, DL, SPReg, FPReg, -StackSize+RVFI->getVarArgsSaveSize()
77
+ //Ground Truth:
78
+ MachineInstr::FrameDestroy);
79
+ ```
80
+
81
+ - Next-Statement Suggestion: predict the next statement.
82
+
83
+ ```c++
84
+ //Inputs:
85
+ ...
86
+ maxCallFrameSize = (maxCallFrameSize + AlignMask) & ~AlignMask;
87
+ //Ground Truth:
88
+ MFI -> setMaxCallFrameSize(maxCallFrameSize);
89
+ ```
90
+
91
+
92
+ - Code Generation: generate a function template with function description in natrual language.
93
+
94
+ ```c++
95
+ //Inputs:
96
+ getPointerRegClass: Returns a TargetRegisterClass used for pointer values.
97
+ //Ground Truth:
98
+ TargetRegisterClass *RegisterInfo::getPointerRegClass(MachineFunction &MF ,unsigned Kind) {
99
+ return Subtarget.is64Bit() ? <ISA_LIT> : <ISA_LIT>;
100
+ }
101
+ ```
102
+
103
+ - Program Repair: automatically fixing bugs at identified locations.
104
+
105
+ ```c++
106
+ //Inputs:
107
+ int64_t Imm; <BUGS> MCExpr::VariantKind VK; <BUGE> ...
108
+ //Ground Truth:
109
+ <FIXS> MCExpr::VariantKind VK = MCExpr::VK_None; <FIXE>
110
+ ```
111
+
112
+ ## Organization
113
+
114
+
115
+
116
+ - `./*.jsonl`: **Take data of RISC-V,ARC,NVPTX both in GCC and LLVM as test set, split train/valid set in the ratio of 90%:10% of other targets excluding RI5CY(RI5CY is custmoized based on RISCV)**
117
+
118
+
119
+
120
+ | Task | Programming Language | Train | Valid | Test |
121
+ |---------------------------- |---------------------- |------------------ |---------------- |--------------- |
122
+ | Statement-Level Completion | C++ | 149,368 (16.41M) | 16,480 (1.84M) | 7,897 (0.82M) |
123
+ | Statement-Level Completion | TableGen/MD | 120,460 (4.46M) | 13,295 (0.50M) | 7,090 (0.25M) |
124
+ | Next-Statement Suggestion | C++ | 137,155 (20.55M) | 15,218 (2.32M) | 8,109 (1.09M) |
125
+ | Next-Statement Suggestion | TableGen/MD | 124,528 (6.71M) | 14,009 (0.76M) | 2,726 (0.14M) |
126
+ | Code Generation | C++ | 37,805 (10.69M) | 4,137 (1.16M) | 2,944 (0.73M) |
127
+ | Program Repair | C++ | 40,578 (4.33M) | 4,539 (0.48M) | 2,623 (0.29M) |
128
+ | Program Repair | TableGen/MD | 25,983 (2.95M) | 2,975 (0.33M) | 1,814 (0.24M) |
129
+
130
+
131
+
132
+ ## Citation
133
+ ```
134
+ @article{zhong2025bepilot,
135
+ title={BePilot: An AI Programming Assistant for Compiler Backend Development},
136
+ author={Ming Zhong, Xin Sun, Fang Lv, Lulin Wang, Hongna Geng, Lei Qiu, Huimin Cui, Xiaobing Feng},
137
+ booktitle={ACM Transactions on Software Engineering and Methodology (TOSEM)},
138
+ year={2025}
139
+ }
140
+ ```