Bump LLVM version to llvmorg-21.1.0-rc2 #523
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LLVM 21.0.0 RC2 Migration Notes
This document tracks important changes made during the upgrade from LLVM 21-init to RC2.
RISC-V Backend Changes
CONFIG Instruction Encoding Fix
Issue: The CONFIG_LD, CONFIG_ST, CONFIG_EX, and CONFIG_NORM instructions in
RISCVInstrInfoBuddyExt.tdhad identical encodings (all using func7=0b0000000), causing TableGen disassembler conflicts.Fix: Assigned unique func7 values to each instruction:
File:
/repo/buddy-mlir/backend/llvm/lib/Target/RISCV/RISCVInstrInfoBuddyExt.tdAPI Changes
Cast Operations
.cast<Type>()tollvm::cast<Type>()throughout the codebaseConstantOp Parameter Order
(loc, value, type)to(loc, type, value)(loc, value, type)to(loc, type, value)TransferReadOp Signature
paddingparameter (use/*padding=*/std::nulloptif not needed)ForOp and YieldOp
std::nullopttoValueRange{}for empty value rangesIntegrated Test Changes
affine-loop-fusionpass inexamples/BuddyNext/next-rope.mliras this pass causes wrong result being produced.Build System Changes
CMakeLists.txt Updates
Multiple LLVM source files were removed or renamed:
TargetIntrinsicInfo.cppVPlanHCFGBuilder.cppEHContGuardCatchret.cpp→EHContGuardTargets.cppExpandLargeFpConvert.cpp→ExpandFp.cppVectorBuilder.cpp→VectorTypeUtils.cppRISC-V Backend TableGen
tablegen(LLVM RISCVGenSDNodeInfo.inc -gen-sd-node-info), this file is now required byRISCVSelectionDAGInfo.h