Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
string
input
string
output
string
file_paths
list
commit_hash
string
author
string
author_date
timestamp[s]
task_type
string
Refactor the following code in files: lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h, lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.cpp: Remove uses of cantFail in AST builder. Refactoring description: As a continuation of #187158, this removes uses of `llvm::cantFail` and replaces them with logs and early ...
PdbFieldListMemberId PdbSymUid::asFieldListMember() const { assert(kind() == PdbSymUidKind::FieldListMember); auto repr = repr_cast<FieldListMemberIdRepr>(m_repr); PdbFieldListMemberId result; result.index.setIndex(repr.index); result.offset = repr.offset; return result; } /* --- separate code section --- ...
PdbFieldListMemberId PdbSymUid::asFieldListMember() const { assert(kind() == PdbSymUidKind::FieldListMember); auto repr = repr_cast<FieldListMemberIdRepr>(m_repr); PdbFieldListMemberId result; result.index.setIndex(repr.index); result.offset = repr.offset; return result; } /* --- separate code section --- ...
[ "lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.h", "lldb/source/Plugins/SymbolFile/NativePDB/PdbSymUid.cpp" ]
1d84916abda575472652611ae4cedafc50433b3c
Nerixyz
2026-06-08T00:00:00
code_modification
Refactor the following code in lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilderClang.cpp: Remove uses of cantFail in AST builder. Refactoring description: As a continuation of #187158, this removes uses of `llvm::cantFail` and replaces them with logs and early returns. The motivation for this is the PDB of the ...
llvm::Error visitKnownMember(CVMemberRecord &cvr, OverloadedMethodRecord &overloaded) override { TypeIndex method_list_idx = overloaded.MethodList; CVType method_list_type = m_index.tpi().getType(method_list_idx); assert(method_list_type.kind() == LF_METHODLIST); Metho...
llvm::Error visitKnownMember(CVMemberRecord &cvr, OverloadedMethodRecord &overloaded) override { TypeIndex method_list_idx = overloaded.MethodList; CVType method_list_type = m_index.tpi().getType(method_list_idx); assert(method_list_type.kind() == LF_METHODLIST); Metho...
[ "lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilderClang.cpp" ]
1d84916abda575472652611ae4cedafc50433b3c
Nerixyz
2026-06-08T00:00:00
code_modification
Refactor the following code in llvm/lib/Transforms/Vectorize/VPlan.h: Rename VPIRFlags::getFastMathFlags (NFC). Refactoring description: Rename it to getFastMathFlagsOrNone, in line with the recently-landed IR change 02997d759 ([IR] Introduce Instruction::getFastMathFlagsOrNone, #200457). Output the complete correcte...
VPReductionRecipe *clone() override { return new VPReductionRecipe(RdxKind, getFastMathFlags(), getUnderlyingInstr(), getChainOp(), getVecOp(), getCondOp(), Style, getDebugLoc()); }
VPReductionRecipe *clone() override { return new VPReductionRecipe(RdxKind, getFastMathFlagsOrNone(), getUnderlyingInstr(), getChainOp(), getVecOp(), getCondOp(), Style, getDebugLoc()); }
[ "llvm/lib/Transforms/Vectorize/VPlan.h" ]
f5fed78bbe847f7c02fd69c6f33a0f916c8fdadb
Ramkumar Ramachandra
2026-06-08T00:00:00
code_modification
Refactor the following code in llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp: Rename VPIRFlags::getFastMathFlags (NFC). Refactoring description: Rename it to getFastMathFlagsOrNone, in line with the recently-landed IR change 02997d759 ([IR] Introduce Instruction::getFastMathFlagsOrNone, #200457). Output the complete...
void VPIRFlags::intersectFlags(const VPIRFlags &Other) { assert(OpType == Other.OpType && "OpType must match"); switch (OpType) { case OperationType::OverflowingBinOp: WrapFlags.HasNUW &= Other.WrapFlags.HasNUW; WrapFlags.HasNSW &= Other.WrapFlags.HasNSW; break; case OperationType::Trunc: TruncF...
void VPIRFlags::intersectFlags(const VPIRFlags &Other) { assert(OpType == Other.OpType && "OpType must match"); switch (OpType) { case OperationType::OverflowingBinOp: WrapFlags.HasNUW &= Other.WrapFlags.HasNUW; WrapFlags.HasNSW &= Other.WrapFlags.HasNSW; break; case OperationType::Trunc: TruncF...
[ "llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp" ]
f5fed78bbe847f7c02fd69c6f33a0f916c8fdadb
Ramkumar Ramachandra
2026-06-08T00:00:00
code_modification
Refactor the following code in llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp: Rename VPIRFlags::getFastMathFlags (NFC). Refactoring description: Rename it to getFastMathFlagsOrNone, in line with the recently-landed IR change 02997d759 ([IR] Introduce Instruction::getFastMathFlagsOrNone, #200457). Output the compl...
/* --- 107 lines before modification point omitted --- */ // Lower MaskedCond with block mask to LogicalAnd. if (match(&R, m_VPInstruction<VPInstruction::MaskedCond>())) { auto *VPI = cast<VPInstruction>(&R); assert(VPI->isMasked() && "Unmasked MaskedCond should be simplified ...
/* --- 107 lines before modification point omitted --- */ // Lower MaskedCond with block mask to LogicalAnd. if (match(&R, m_VPInstruction<VPInstruction::MaskedCond>())) { auto *VPI = cast<VPInstruction>(&R); assert(VPI->isMasked() && "Unmasked MaskedCond should be simplified ...
[ "llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp" ]
f5fed78bbe847f7c02fd69c6f33a0f916c8fdadb
Ramkumar Ramachandra
2026-06-08T00:00:00
code_modification
Fix the following bug in llvm/lib/BinaryFormat/DXContainer.cpp: Write DXIL with debug info to ILDB part. Problem description: This patch writes bitcode with debug info to ILDB part, then strips that bitcode from all debug info and writes it to DXIL part. Note: as of now, `StripDebugInfo` doesn't remove all the debug ...
bool ShaderHash::isPopulated() { static uint8_t Zeros[16] = {0}; return Flags > 0 || 0 != memcmp(&Digest, &Zeros, 16); }
bool dxbc::isProgramPart(StringRef PartName) { return PartName == "DXIL" || PartName == "ILDB"; }
[ "llvm/lib/BinaryFormat/DXContainer.cpp" ]
76699bcfc8af5ef44d7e725de68f6c2339230f9f
Ilia Kuklin
2026-06-08T00:00:00
code_modification
Implement the following feature in llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp: Fold add(vpmadd52(0, a, b), x) -> vpmadd52(x, a, b). Feature description: vpmadd52 computes acc + P(a, b) mod 2^64 where P is independent of acc so add(vpmadd52(0, a, b), x) = vpmadd52(x, a, b). Applies to all six vpmadd52{h,l}.uq.{12...
/* --- 247 lines before modification point omitted --- */ case Intrinsic::x86_avx2_pmulh_w: case Intrinsic::x86_avx512_pmulh_w_512: if (Value *V = simplifyX86pmulh(II, IC.Builder, true, false)) { return IC.replaceInstUsesWith(II, V); } break; case Intrinsic::x86_sse2_pmulhu_w: case Intrinsic::x86_avx2_pmulhu...
/* --- 247 lines before modification point omitted --- */ case Intrinsic::x86_ssse3_pmul_hr_sw_128: case Intrinsic::x86_avx2_pmul_hr_sw: case Intrinsic::x86_avx512_pmul_hr_sw_512: if (Value *V = simplifyX86pmulh(II, IC.Builder, true, true)) { return IC.replaceInstUsesWith(II, V); } break; case Intrinsic::x86...
[ "llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp" ]
8c1a55cb738580858b0870e04884b2e323f38484
Adam Scott
2026-06-08T00:00:00
code_modification
Fix the following bug in files: clang/include/clang/Sema/DeclSpec.h, clang/lib/Sema/DeclSpec.cpp: fix crash of invalid friend declaration with storage-class specifier. Fix strategy: add assertion Problem description: Fix an assertion failure in Sema::ActOnFriendTypeDecl when parsing an invalid friend type declaration...
/* --- 669 lines before modification point omitted --- */ void takeAttributesAppendingingFrom(ParsedAttributes &attrs) { Attrs.takeAllAppendingFrom(attrs); } /// Finish - This does final analysis of the declspec, issuing diagnostics for /// things like "_Complex" (lacking an FP type). After calling this ...
/* --- 669 lines before modification point omitted --- */ const ParsedAttributes &getAttributes() const { return Attrs; } void takeAttributesAppendingingFrom(ParsedAttributes &attrs) { Attrs.takeAllAppendingFrom(attrs); } /// Finish - This does final analysis of the declspec, issuing diagnostics for ///...
[ "clang/include/clang/Sema/DeclSpec.h", "clang/lib/Sema/DeclSpec.cpp" ]
55611deca57a0843cbfceca50ccbdfa9e1a3bf84
firstmoonlight
2026-06-08T00:00:00
code_modification
Refactor the following code in lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp: Use batched string reading in ClassDescriptorV2::ivar_t::Read. Output the complete corrected function(s).
llvm::Expected<ClassDescriptorV2::ivar_t> ClassDescriptorV2::ivar_t::Read(Process *process, lldb::addr_t addr) { size_t size = GetSize(process); DataBufferHeap buffer(size, '\0'); Status error; process->ReadMemory(addr, buffer.GetBytes(), size, error); if (error.Fail()) return error.takeError(); DataExtractor extr...
llvm::Expected<ClassDescriptorV2::ivar_t> ClassDescriptorV2::ivar_t::Read(Process *process, lldb::addr_t addr) { size_t size = GetSize(process); DataBufferHeap buffer(size, '\0'); Status error; process->ReadMemory(addr, buffer.GetBytes(), size, error); if (error.Fail()) return error.takeError(); DataExtractor extr...
[ "lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp" ]
87c5364aeffd3dca0e9231ff9904c799ea003626
Felipe de Azevedo Piovezan
2026-06-08T00:00:00
code_modification
Implement the following feature in llvm/lib/Transforms/IPO/ArgumentPromotion.cpp: Pass context instruction to dereferenceability check. Feature description: This is necessary for argument promotion to work under deref-at-point semantics. For the primary case, specify the context instruction as the first instruction in...
static bool allCallersPassValidPointerForArgument( Argument *Arg, SmallPtrSetImpl<CallBase *> &RecursiveCalls, Align NeededAlign, uint64_t NeededDerefBytes) { Function *Callee = Arg->getParent(); const DataLayout &DL = Callee->getDataLayout(); APInt Bytes(64, NeededDerefBytes); // Check if the argument itself is m...
static bool allCallersPassValidPointerForArgument( Argument *Arg, SmallPtrSetImpl<CallBase *> &RecursiveCalls, Align NeededAlign, uint64_t NeededDerefBytes) { Function *Callee = Arg->getParent(); const DataLayout &DL = Callee->getDataLayout(); APInt Bytes(64, NeededDerefBytes); // Check if the argument itself is m...
[ "llvm/lib/Transforms/IPO/ArgumentPromotion.cpp" ]
91797152d96713a46f4ca604d191f144cbb48659
Nikita Popov
2026-06-08T00:00:00
code_modification
Implement the following feature in files: llvm/include/llvm/Analysis/Loads.h, llvm/lib/Analysis/Loads.cpp: Always pass down context in isSafeToLoadUnconditionally(). Feature description: There is context-sensitive reasoning we can perform without a dominator tree -- it doesn't make sense to drop the context instructio...
bool llvm::mustSuppressSpeculation(const LoadInst &LI) { return !LI.isUnordered() || suppressSpeculativeLoadForSanitizers(LI); } /* --- separate code section --- */ bool llvm::isSafeToLoadUnconditionally(Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, ...
bool llvm::mustSuppressSpeculation(const LoadInst &LI) { return !LI.isUnordered() || suppressSpeculativeLoadForSanitizers(LI); } /* --- separate code section --- */ bool llvm::isSafeToLoadUnconditionally(Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, ...
[ "llvm/include/llvm/Analysis/Loads.h", "llvm/lib/Analysis/Loads.cpp" ]
7893defd8b56e70ebad4eaf79a1f14caf4a9d1d1
Nikita Popov
2026-06-08T00:00:00
code_modification
Implement the following feature in llvm/lib/Analysis/ValueTracking.cpp: Always pass down context in isSafeToLoadUnconditionally(). Feature description: There is context-sensitive reasoning we can perform without a dominator tree -- it doesn't make sense to drop the context instruction just because there is no DT. Als...
bool llvm::willNotFreeBetween(const Instruction *Assume, const Instruction *CtxI) { // Helper to check if there are any calls in the range that may free memory. auto hasNoFreeInRange = [](auto Range) { for (const auto &[Idx, I] : enumerate(Range)) { if (Idx > MaxInstrsToCheck...
bool llvm::willNotFreeBetween(const Instruction *Assume, const Instruction *CtxI) { // Helper to check if there are any calls in the range that may free memory. auto hasNoFreeInRange = [](auto Range) { for (const auto &[Idx, I] : enumerate(Range)) { if (Idx > MaxInstrsToCheck...
[ "llvm/lib/Analysis/ValueTracking.cpp" ]
7893defd8b56e70ebad4eaf79a1f14caf4a9d1d1
Nikita Popov
2026-06-08T00:00:00
code_modification
Implement the following feature in llvm/lib/Target/AMDGPU/SIInstrInfo.cpp: AMDGPU/UniformityAnalysis: MIR Uniformity analysis for INLINEASM. Feature description: If any of the defs are divergent, need to report instruction as NeverUniform so that isUniformReg can calculate uniformity for each def. Output the complete...
ValueUniformity SIInstrInfo::getValueUniformity(const MachineInstr &MI) const { if (isNeverUniform(MI)) return ValueUniformity::NeverUniform; unsigned opcode = MI.getOpcode(); if (opcode == AMDGPU::V_READLANE_B32 || opcode == AMDGPU::V_READFIRSTLANE_B32 || opcode == AMDGPU::SI_RESTORE_S32_FROM_V...
ValueUniformity SIInstrInfo::getValueUniformity(const MachineInstr &MI) const { if (isNeverUniform(MI)) return ValueUniformity::NeverUniform; unsigned opcode = MI.getOpcode(); if (opcode == AMDGPU::V_READLANE_B32 || opcode == AMDGPU::V_READFIRSTLANE_B32 || opcode == AMDGPU::SI_RESTORE_S32_FROM_V...
[ "llvm/lib/Target/AMDGPU/SIInstrInfo.cpp" ]
aeb1a462a02c48b61faa3d0af5f505dec00b0b4e
Petar Avramovic
2026-06-08T00:00:00
code_modification
Implement the following feature in llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp: AMDGPU/GlobalISel: RegBankLegalize rules for v_pk_add/mul_f32. Output the complete corrected code snippet(s).
/* --- 1 lines before modification point omitted --- */ .Uni(B32, {{UniInVgprB32}, {SgprV4S32_WF, Vgpr32, Vgpr32, Sgpr32_WF}}) .Div(B64, {{VgprB64}, {SgprV4S32_WF, Vgpr32, Vgpr32, Sgpr32_WF}}) .Uni(B64, {{UniInVgprB64}, {SgprV4S32_WF, Vgpr32, Vgpr32, Sgpr32_WF}}) .Div(B128, {{VgprB128}, {SgprV4S32_WF, V...
/* --- 1 lines before modification point omitted --- */ .Div(B64, {{VgprB64}, {SgprV4S32_WF, Vgpr32, Vgpr32, Sgpr32_WF}}) .Uni(B64, {{UniInVgprB64}, {SgprV4S32_WF, Vgpr32, Vgpr32, Sgpr32_WF}}) .Div(B128, {{VgprB128}, {SgprV4S32_WF, Vgpr32, Vgpr32, Sgpr32_WF}}) .Uni(B128, {{UniInVgprB128}, {SgprV4S32_WF,...
[ "llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp" ]
c61fd0cf42352468b5e433e91a6b9a40530f9e94
Petar Avramovic
2026-06-08T00:00:00
code_modification
Refactor the following code in llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp: AMDGPU/GlobalISel: RegBankLegalize rules for cvt_scale intrinsics. Output the complete corrected function(s).
LLT RegBankLegalizeHelper::getTyFromID(RegBankLLTMappingApplyID ID) { switch (ID) { case Vcc: case UniInVcc: return LLT::scalar(1); case Sgpr16: case Vgpr16: case UniInVgprS16: return LLT::scalar(16); case Sgpr32: case Sgpr32_WF: case Sgpr32Trunc: case Sgpr32AExt: case Sgpr32AExtBoolInReg:...
LLT RegBankLegalizeHelper::getTyFromID(RegBankLLTMappingApplyID ID) { switch (ID) { case Vcc: case UniInVcc: return LLT::scalar(1); case Sgpr16: case Vgpr16: case UniInVgprS16: return LLT::scalar(16); case Sgpr32: case Sgpr32_WF: case Sgpr32Trunc: case Sgpr32AExt: case Sgpr32AExtBoolInReg:...
[ "llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp" ]
3c49429089efff48e3e1fce53682e6a954ee4cbd
Petar Avramovic
2026-06-08T00:00:00
code_modification
Refactor the following code in llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp: AMDGPU/GlobalISel: RegBankLegalize rules for cvt_scale intrinsics. Output the complete corrected function(s).
const RegisterBank * RegBankLegalizeHelper::getRegBankFromID(RegBankLLTMappingApplyID ID) { switch (ID) { case Vcc: return VccRB; case Sgpr16: case Sgpr32: case Sgpr32_WF: case Sgpr64: case Sgpr128: case SgprP0: case SgprP0Call_WF: case SgprP1: case SgprP2: case SgprP3: case SgprP4: case...
const RegisterBank * RegBankLegalizeHelper::getRegBankFromID(RegBankLLTMappingApplyID ID) { switch (ID) { case Vcc: return VccRB; case Sgpr16: case Sgpr32: case Sgpr32_WF: case Sgpr64: case Sgpr128: case SgprP0: case SgprP0Call_WF: case SgprP1: case SgprP2: case SgprP3: case SgprP4: case...
[ "llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp" ]
3c49429089efff48e3e1fce53682e6a954ee4cbd
Petar Avramovic
2026-06-08T00:00:00
code_modification
Implement the following feature in llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp: AMDGPU/GlobalISel: RegBankLegalize rules for 64 bit s_min/max and u_min/max. Output the complete corrected code snippet(s).
/* --- 71 lines before modification point omitted --- */ addRulesForGOpcs({G_XOR, G_OR, G_AND}, StandardB) .Any({{UniS1}, {{Sgpr32Trunc}, {Sgpr32AExt, Sgpr32AExt}}}) .Any({{DivS1}, {{Vcc}, {Vcc, Vcc}}}) .Any({{UniS16}, {{Sgpr16}, {Sgpr16, Sgpr16}}}) .Any({{DivS16}, {{Vgpr16}, {Vgpr16, Vgpr16}...
/* --- 71 lines before modification point omitted --- */ .Uni(S16, {{Sgpr32Trunc}, {Sgpr32SExt, Sgpr32ZExt}}) .Div(S16, {{Vgpr16}, {Vgpr16, Vgpr16}}) .Uni(V2S16, {{SgprV2S16}, {SgprV2S16, SgprV2S16}, UnpackBitShift}) .Div(V2S16, {{VgprV2S16}, {VgprV2S16, VgprV2S16}}) .Uni(S32, {{Sgpr32}, {Sgpr32, Sg...
[ "llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp" ]
eae020b0e8f29071fd1eb192aac6d658d90874fe
Petar Avramovic
2026-06-08T00:00:00
code_modification
End of preview. Expand in Data Studio

YAML Metadata Warning:The task_categories "code-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

LLVM Commit Training Dataset

Description

This dataset contains 256,055 code-modification training samples extracted from the LLVM project git history. Each sample pairs a natural-language instruction (derived from the commit message) with the before/after code state, suitable for supervised fine-tuning of LLMs on C++ code refactoring, bug fixing, and feature implementation tasks.

Dataset Structure

Each line in llvm_training_data.jsonl.gz is a JSON object with the following fields:

Field Type Description
instruction string Natural-language task description derived from commit subject + body. Includes file paths and feature/refactor description.
input string Code state before the commit (extracted from parent commit). Empty for new-file creation tasks.
output string Code state after the commit. May contain /* --- N lines omitted --- */ markers where unchanged context was folded.
file_paths list[string] Source file paths touched by this record (1-2 files per record).
commit_hash string Full 40-char SHA-1 of the source LLVM commit.
author string Commit author name.
author_date string Commit date in YYYY-MM-DD format.
task_type string Always code_modification for this file.

Output Markers

The output field uses two marker types to keep records within a reasonable context window (~250 lines max):

  • /* --- N lines before/after modification point omitted --- */ — folded unchanged code. The original code is balanced; the marker replaces lines that contain braces, so naive brace counting on output alone may show imbalance. This is expected and not a defect.
  • /* --- separate code section --- */ — separates multiple code blocks (e.g., a .h declaration and its .cpp implementation) combined into one training record.

Statistics

  • Total records: 256,055
  • Source commits: 204,622 unique LLVM commits
  • Unique authors: 5,255
  • Date range: 2001-06-07 to 2026-06-08
  • Output length: median 49 lines, mean 85.4 lines, max 1021 lines
  • New-file records (empty input): 6,022 (2.4%) — "implement new feature" tasks
  • Multi-file records: 26,300 (10.3%) — paired header/implementation changes

File extension distribution

Extension Count
.cpp 205,843
.h 70,286
.cc 4,763
.inc 1,272
.hpp 190

Component distribution (top-level LLVM subprojects)

Component Count
llvm 135,754
clang 65,256
lldb 19,148
mlir 16,917
lld 10,820
compiler-rt 8,597
flang 8,181
clang-tools-extra 6,194
bolt 2,310
polly 2,241

Quality Filtering

Each record passed the following quality gates:

  1. Pipeline extraction — AST-based (tree-sitter) function block extraction with regex fallback, three-layer before/after pairing (exact name → fuzzy → positional fallback), folding of unchanged context, and multi-window truncation.
  2. Quality check — passed 17+ heuristic checks including brace balance, identifier retention, function pairing consistency, size mismatch, severe duplication, and context anchor preservation.
  3. Post-filter — a final brace-integrity check that rejects records with genuinely broken braces (not explainable by folding markers). 15,918 records (5.85% of pre-filter PASS) were downgraded to a separate ARBITRATE set (not included in this upload).

After post-filtering, a 200-sample audit showed 0% broken-brace records.

Source

  • Repository: llvm/llvm-project
  • Extraction pipeline: Custom Python pipeline processing 583,490 non-merge commits from the LLVM git history.
  • Toxic commit elimination: 9,754 reverted commits and their targets were excluded.
  • Deduplication: Three-stage dedup (exact match → homogenization Jaccard → MinHash LSH).

Intended Uses

  • Fine-tuning LLMs for C++ code modification tasks
  • Studying commit-level code transformations
  • Benchmarking code generation on real-world refactoring scenarios

Limitations

  • Folding markers: The omitted markers mean output is not always directly compilable. Models trained on this data should learn to interpret the markers as "unchanged context elided," not as literal code.
  • LLVM-specific patterns: Code heavily features LLVM APIs (StringRef, SmallVector, DenseMap, etc.) and conventions (2-space indent, llvm:: namespace). May not generalize to non-LLVM C++ without domain adaptation.
  • Historical bias: Older commits (2001-2010) reflect coding standards and APIs that may have since been deprecated or refactored in LLVM.
  • Extracted subset: Each record is a windowed view of the commit, not the complete diff. Large multi-file commits are represented by 1-2 representative files.

License

Apache License 2.0 with LLVM Exception — same as the LLVM project source.

The dataset is derived from LLVM commit history. Each record's commit_hash field allows tracing back to the original upstream commit for attribution.

Citation

If you use this dataset, please cite the LLVM project:

@misc{llvm-project,
  title        = {The LLVM Compiler Infrastructure},
  author       = {{LLVM Project Contributors}},
  howpublished = {\url{https://github.com/llvm/llvm-project}},
  year         = {2003--2026},
}
Downloads last month
32