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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
pretty_name: IR-Level Compiler Optimization Dataset
|
| 12 |
size_categories:
|
| 13 |
- 100K<n<1M
|
| 14 |
+
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# Dataset Card for ComOpti
|
| 18 |
+
|
| 19 |
+
<!-- Provide a quick summary of the dataset. -->
|
| 20 |
+
|
| 21 |
+
ComOpti is the first publicly available dataset specifically designed for IR-level compiler optimization. It captures diverse and representative optimization behaviors, focusing on real-world programs with varied optimization needs. The dataset includes sources from well-established compiler benchmark suites such as PolyBench, Embench, and TSVC, as well as 48XX GitHub repositories spanning eight high-performance computing (HPC) domains. These HPC applications are selected for their intensive computational and memory demands, making them ideal for evaluating compiler optimizations. In total, ComOpti contains 400,000 LLVM IR files and xxx distinct optimization behaviors, with each program exhibiting an average of xxx effective optimization steps. This diversity allows models to learn where and when optimizations take effect, supporting advanced research in automated IR-level optimization.
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
## Dataset Details
|
| 25 |
+
|
| 26 |
+
### Dataset Description
|
| 27 |
+
|
| 28 |
+
<!-- Provide a longer summary of what this dataset is. -->
|
| 29 |
+
|
| 30 |
+
- **Curated by:**
|
| 31 |
+
- **Funded by [optional]:**
|
| 32 |
+
- **Shared by [optional]:**
|
| 33 |
+
- **Languages:** C, C++
|
| 34 |
+
- **License:** GPL-3.0
|
| 35 |
+
|
| 36 |
+
### Dataset Sources [optional]
|
| 37 |
+
|
| 38 |
+
<!-- Provide the basic links for the dataset. -->
|
| 39 |
+
|
| 40 |
+
- **Repository:** https://huggingface.co/datasets/YangziResearch/ComOpti
|
| 41 |
+
- **Paper [optional]:**
|
| 42 |
+
- **Demo [optional]:**
|
| 43 |
+
|
| 44 |
+
## Uses
|
| 45 |
+
|
| 46 |
+
<!-- Address questions around how the dataset is intended to be used. -->
|
| 47 |
+
|
| 48 |
+
### Direct Use
|
| 49 |
+
|
| 50 |
+
<!-- This section describes suitable use cases for the dataset. -->
|
| 51 |
+
|
| 52 |
+
ComOpti is designed for the following tasks:
|
| 53 |
+
|
| 54 |
+
1. IR Understanding: Training models to extract structural and semantic information from raw IR.
|
| 55 |
+
2. Optimization Analysis: Analyzing optimization behaviors in IR, assessing the effectiveness of different optimization strategies.
|
| 56 |
+
3. Optimized Code Generation: Generating new IR variants based on optimization strategies.
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
### Out-of-Scope Use
|
| 60 |
+
|
| 61 |
+
<!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
|
| 62 |
+
|
| 63 |
+
ComOpti is not suitable for the following uses:
|
| 64 |
+
|
| 65 |
+
1. Non-compiler-related tasks: Since the dataset focuses on compiler optimizations, it may not perform well for tasks outside of this domain.
|
| 66 |
+
2. Unauthorized commercial use: Using the dataset for unauthorized commercial activities may violate the licenses of the original code.
|
| 67 |
+
|
| 68 |
+
## Dataset Structure
|
| 69 |
+
|
| 70 |
+
<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
|
| 71 |
+
|
| 72 |
+
Each sample includes the following files:
|
| 73 |
+
|
| 74 |
+
- **base.ll**: The unoptimized LLVM IR, generated by `clang/clang++ -Xclang -disable-llvm-passes -O3`.
|
| 75 |
+
- **preprocessed.ll**: We offer a simple preprocessed version of the base IR.
|
| 76 |
+
- **O3.ll**: The O3 version generated by `opt -passes='default<O3>'`
|
| 77 |
+
- **Os.ll**: The Os version generated by `opt -passes='default<Os>'`
|
| 78 |
+
- **effect_passes**: A list of effective optimization passes.
|
| 79 |
+
- **Repo**: The repo where the High Level Language sources are collected.
|
| 80 |
+
- **License**: License info affliated with the repo.
|
| 81 |
+
|
| 82 |
+
## Dataset Creation
|
| 83 |
+
|
| 84 |
+
### Curation Rationale
|
| 85 |
+
|
| 86 |
+
<!-- Motivation for the creation of this dataset. -->
|
| 87 |
+
|
| 88 |
+
The creation of ComOpti aims to fill the gap in IR-level compiler optimization research, providing a high-quality dataset for training and evaluation to advance automated optimization techniques.
|
| 89 |
+
|
| 90 |
+
### Source Data
|
| 91 |
+
|
| 92 |
+
<!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
|
| 93 |
+
|
| 94 |
+
#### Data Collection and Processing
|
| 95 |
+
|
| 96 |
+
The dataset is sourced from:
|
| 97 |
+
|
| 98 |
+
- XXXX github
|
| 99 |
+
- XXXX gitlab
|
| 100 |
+
|
| 101 |
+
with 8 categories:
|
| 102 |
+
|
| 103 |
+
1. XXXXX
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
We use the following preprocessing utils and ensure they are grammarly equivelent to the original IR.
|
| 108 |
+
|
| 109 |
+
- Local Variable Renaming
|
| 110 |
+
- XXXX
|
| 111 |
+
-
|
| 112 |
+
|
| 113 |
+
#### Who are the source data producers?
|
| 114 |
+
|
| 115 |
+
<!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
|
| 116 |
+
|
| 117 |
+
The data was collected and processed by [Your Name or Team].
|
| 118 |
+
|
| 119 |
+
### Annotations [optional]
|
| 120 |
+
|
| 121 |
+
<!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
|
| 122 |
+
|
| 123 |
+
#### Annotation process
|
| 124 |
+
|
| 125 |
+
<!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
|
| 126 |
+
|
| 127 |
+
[More Information Needed]
|
| 128 |
+
|
| 129 |
+
#### Who are the annotators?
|
| 130 |
+
|
| 131 |
+
<!-- This section describes the people or systems who created the annotations. -->
|
| 132 |
+
|
| 133 |
+
[More Information Needed]
|
| 134 |
+
|
| 135 |
+
#### Personal and Sensitive Information
|
| 136 |
+
|
| 137 |
+
<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
|
| 138 |
+
|
| 139 |
+
[More Information Needed]
|
| 140 |
+
|
| 141 |
+
## Bias, Risks, and Limitations
|
| 142 |
+
|
| 143 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 144 |
+
|
| 145 |
+
[More Information Needed]
|
| 146 |
+
|
| 147 |
+
### Recommendations
|
| 148 |
+
|
| 149 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 150 |
+
|
| 151 |
+
Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
|
| 152 |
+
|
| 153 |
+
## Citation [optional]
|
| 154 |
+
|
| 155 |
+
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
| 156 |
+
|
| 157 |
+
**BibTeX:**
|
| 158 |
+
|
| 159 |
+
[More Information Needed]
|
| 160 |
+
|
| 161 |
+
**APA:**
|
| 162 |
+
|
| 163 |
+
[More Information Needed]
|
| 164 |
+
|
| 165 |
+
## Glossary [optional]
|
| 166 |
+
|
| 167 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
## More Information [optional]
|
| 172 |
+
|
| 173 |
+
[More Information Needed]
|
| 174 |
+
|
| 175 |
+
## Dataset Card Authors [optional]
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
## Dataset Card Contact
|
| 180 |
+
|
| 181 |
+
[More Information Needed]
|