docz1105 commited on
Commit
042f313
·
1 Parent(s): 78cf834
Files changed (5) hide show
  1. .gitattributes +3 -0
  2. README.md +126 -1
  3. test.jsonl +3 -0
  4. train.jsonl +3 -0
  5. valid.jsonl +3 -0
.gitattributes CHANGED
@@ -57,3 +57,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ valid.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,128 @@
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) |
test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:516998fe75a1181baddcad20aeb82d790768ff26522ddb4384987aa950d04452
3
+ size 34240515
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbb7532713fff019f4c98152df493ccf0eab969b6413d59eb3eae5a044b1bef9
3
+ size 630100129
valid.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1579237e1b515072804b116ce8a21e4798bd10789f2c9e91531b8d4995de092f
3
+ size 70337066