llvm-ml/ComPile
收藏资源简介:
ComPile数据集包含超过2.7TB的LLVM中间表示(IR)代码,涵盖了C/C++、Rust、Swift和Julia等编程语言。该数据集是通过LLVM代码生成工具从生产级程序中提取的,并以bitcode格式分发。数据集的使用方法包括通过HuggingFace的datasets库加载数据,并提供了流式加载和部分加载的示例。数据集的每一行包含一个LLVM-IR模块及其元数据,如许可证信息和源代码语言。数据集的构建过程在相关论文中有详细描述,并且数据集的使用受到项目许可证的约束。
ComPile dataset contains over 2.7 TB of LLVM Intermediate Representation (IR) code, covering programming languages such as C/C++, Rust, Swift, and Julia. This dataset is extracted from production-grade programs via LLVM code generation tools and distributed in bitcode format. The dataset can be loaded using the Hugging Face Datasets library, with accompanying examples for both streaming and partial loading. Each row in the dataset contains an LLVM-IR module along with its metadata, such as license information and source programming language. The construction process of this dataset is detailed in the relevant paper, and the usage of the dataset is subject to the constraints of the project's license.
数据集概述
数据集名称
ComPile
数据集大小
2.7TB
许可证类型
开源许可证
数据内容
- 源代码编译至文本形式的LLVM中间表示(IR)
- 涵盖语言:C/C++, Rust, Swift, Julia
数据收集方法
通过语言的包管理器或直接通过编译器,使用专为LLVM编译基础设施设计的集合工具,从生产级程序中提取中间表示数据。




