Integrate LLVM to llvm/llvm-project@7e751154a0e5 (#25009) Bumps LLVM to llvm/llvm-project@7e751154a0e5. The GPU min/maxnumf carry patch is dropped now that it landed upstream (llvm/llvm-project@2e686411fa67). Compatibility changes: - Migrate AMDGPU target handling from the deprecated `amdgpu::Chipset` (ISA version numbers) to `ROCDL::TargetInfo` (target feature queries), following llvm/llvm-project@155462f440ff. The upstream AMDGPU/ROCDL lowering entry points now take a `ROCDL::TargetInfo`, and the remaining `Chipset` uses in IREE are migrated too since the deprecation warnings fail the Bazel `-Werror` build. Behavior is preserved except where upstream corrected it: - Barriers on targets without hardware barrier back-off (e.g. gfx90c) use the inline-asm `s_barrier` form, matching upstream. - OCP fp8 conversions are also recognized on gfx11.7. - The wave64 flag for the HIP platform globals is derived from the target, so wave32-only targets such as gfx1250 are handled correctly. - Carry the MMA slice-cache correction for the regression introduced by llvm/llvm-project@d287e55d0302. Assisted-by: Claude Code Signed-off-by: Pooja Hemashekar <hemashekar@roofline.ai>
diff --git a/compiler/plugins/target/ROCM/BUILD.bazel b/compiler/plugins/target/ROCM/BUILD.bazel index ed8ae58..ce4981f 100644 --- a/compiler/plugins/target/ROCM/BUILD.bazel +++ b/compiler/plugins/target/ROCM/BUILD.bazel
@@ -68,7 +68,6 @@ "@llvm-project//mlir:AMDGPUDialect", "@llvm-project//mlir:AMDGPUToROCDL", "@llvm-project//mlir:AMDGPUTransforms", - "@llvm-project//mlir:AMDGPUUtils", "@llvm-project//mlir:BuiltinToLLVMIRTranslation", "@llvm-project//mlir:IR", "@llvm-project//mlir:LLVMDialect",
diff --git a/compiler/plugins/target/ROCM/CMakeLists.txt b/compiler/plugins/target/ROCM/CMakeLists.txt index 7a77b04..ccc7ac2 100644 --- a/compiler/plugins/target/ROCM/CMakeLists.txt +++ b/compiler/plugins/target/ROCM/CMakeLists.txt
@@ -45,7 +45,6 @@ MLIRAMDGPUDialect MLIRAMDGPUToROCDL MLIRAMDGPUTransforms - MLIRAMDGPUUtils MLIRBuiltinToLLVMIRTranslation MLIRIR MLIRLLVMDialect
diff --git a/compiler/plugins/target/ROCM/ROCMTarget.cpp b/compiler/plugins/target/ROCM/ROCMTarget.cpp index 0159e17..f42fbb5 100644 --- a/compiler/plugins/target/ROCM/ROCMTarget.cpp +++ b/compiler/plugins/target/ROCM/ROCMTarget.cpp
@@ -56,8 +56,8 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/TargetParser/AMDGPUTargetParser.h" #include "llvm/Transforms/Utils/Cloning.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/BuiltinAttributes.h" #include "mlir/Pass/PassManager.h" @@ -787,12 +787,12 @@ << "object file could not be loaded: " << objectAttr; } } else { - auto maybeChipset = amdgpu::Chipset::parse(targetArch); - if (failed(maybeChipset)) { - return variantOp.emitOpError() - << "could not parse AMDGPU chipset name '" << targetArch << "'"; + FailureOr<ROCDL::TargetInfo> maybeTargetInfo = ROCDL::TargetInfo::get( + targetArch, /*waveSize=*/0, [&] { return variantOp.emitOpError(); }); + if (failed(maybeTargetInfo)) { + return failure(); } - amdgpu::Chipset chipset = *maybeChipset; + ROCDL::TargetInfo targetInfo = *maybeTargetInfo; // Perform the translation in a separate context to avoid any // multi-threading issues. llvm::LLVMContext context; @@ -851,7 +851,7 @@ ? llvm::GlobalISelAbortMode::Enable : llvm::GlobalISelAbortMode::Disable; SmallVector<std::string> features; - if (chipset.majorVersion >= 10 && chipset.majorVersion <= 12) { + if (targetInfo.supportsBothWavefrontSizes()) { switch (subgroupSize.value_or(preferredSubgroupSize)) { case 32: isWave64 = false; @@ -862,6 +862,8 @@ features.emplace_back("+wavefrontsize64"); break; } + } else { + isWave64 = targetInfo.getWavefrontSize().value_or(64) == 64; } // Mixed precision fma instructions have complicated semantics on @@ -971,8 +973,8 @@ } // Sets HIP platform globals based on the target architecture. - if (failed(setHIPGlobals(variantOp.getLoc(), llvmModule.get(), chipset, - isWave64, abiVersion))) { + if (failed(setHIPGlobals(variantOp.getLoc(), llvmModule.get(), + targetInfo, isWave64, abiVersion))) { return failure(); } }
diff --git a/compiler/plugins/target/ROCM/ROCMTargetUtils.cpp b/compiler/plugins/target/ROCM/ROCMTargetUtils.cpp index f969365..410782f 100644 --- a/compiler/plugins/target/ROCM/ROCMTargetUtils.cpp +++ b/compiler/plugins/target/ROCM/ROCMTargetUtils.cpp
@@ -22,7 +22,7 @@ #include "llvm/Support/SourceMgr.h" #include "llvm/Support/WithColor.h" #include "llvm/Transforms/IPO/Internalize.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/Support/FileUtilities.h" #include "mlir/Support/LogicalResult.h" @@ -131,21 +131,25 @@ } LogicalResult setHIPGlobals(Location loc, llvm::Module *module, - const amdgpu::Chipset &chipset, bool isWave64, + const ROCDL::TargetInfo &target, bool isWave64, uint32_t abiVersion) { + llvm::AMDGPU::IsaVersion isaVersion = target.getIsaVersion(); + unsigned majorVersion = isaVersion.Major; + unsigned minorVersion = isaVersion.Minor; + unsigned steppingVersion = isaVersion.Stepping; // Oldest GFX arch supported is gfx60x. - if (chipset.majorVersion < 6) { + if (majorVersion < 6) { return emitError(loc, "pre-gfx6 chipsets are not supported"); } // Latest GFX arch supported is gfx1250. - if (chipset > amdgpu::Chipset(12, 5, 0)) { + if (std::make_tuple(majorVersion, minorVersion, steppingVersion) > + std::make_tuple(12u, 5u, 0u)) { return emitError(loc) - << "a chipset with major version = " << chipset.majorVersion - << " and minor version = " << chipset.minorVersion + << "a chipset with major version = " << majorVersion + << " and minor version = " << minorVersion << " was not known to exist at the time this IREE was built"; } - int chipCode = chipset.majorVersion * 1000 + chipset.minorVersion * 16 + - chipset.steppingVersion; + int chipCode = majorVersion * 1000 + minorVersion * 16 + steppingVersion; auto *int32Type = llvm::Type::getInt32Ty(module->getContext()); overridePlatformGlobal(module, "__oclc_ISA_version", chipCode, int32Type);
diff --git a/compiler/plugins/target/ROCM/ROCMTargetUtils.h b/compiler/plugins/target/ROCM/ROCMTargetUtils.h index 37528b0..2451fa9 100644 --- a/compiler/plugins/target/ROCM/ROCMTargetUtils.h +++ b/compiler/plugins/target/ROCM/ROCMTargetUtils.h
@@ -11,15 +11,15 @@ #include "llvm/IR/Module.h" #include "llvm/Target/TargetMachine.h" -namespace mlir::amdgpu { -struct Chipset; -} // namespace mlir::amdgpu +namespace mlir::ROCDL { +class TargetInfo; +} // namespace mlir::ROCDL namespace mlir::iree_compiler::IREE::HAL { // Sets HIP platform globals based on the target architecture. LogicalResult setHIPGlobals(Location loc, llvm::Module *module, - const amdgpu::Chipset &targetChip, bool isWave64, + const ROCDL::TargetInfo &target, bool isWave64, uint32_t abiVersion); // Links HIP device bitcode if the module uses any symbols from it.
diff --git a/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel b/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel index fa6dd7e..b28be7a 100644 --- a/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel +++ b/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel
@@ -240,7 +240,6 @@ "@llvm-project//llvm:Support", "@llvm-project//mlir:AMDGPUDialect", "@llvm-project//mlir:AMDGPUTransforms", - "@llvm-project//mlir:AMDGPUUtils", "@llvm-project//mlir:AffineAnalysis", "@llvm-project//mlir:AffineDialect", "@llvm-project//mlir:AffineToStandard", @@ -277,6 +276,7 @@ "@llvm-project//mlir:MemRefUtils", "@llvm-project//mlir:Parser", "@llvm-project//mlir:Pass", + "@llvm-project//mlir:ROCDLDialect", "@llvm-project//mlir:SCFDialect", "@llvm-project//mlir:SCFToControlFlow", "@llvm-project//mlir:SCFTransforms",
diff --git a/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt index 0b38a52..1e52247 100644 --- a/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt +++ b/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
@@ -186,7 +186,6 @@ LLVMSupport MLIRAMDGPUDialect MLIRAMDGPUTransforms - MLIRAMDGPUUtils MLIRAffineAnalysis MLIRAffineDialect MLIRAffineToStandard @@ -220,6 +219,7 @@ MLIRMemRefUtils MLIRParser MLIRPass + MLIRROCDLDialect MLIRSCFDialect MLIRSCFToControlFlow MLIRSCFTransforms
diff --git a/compiler/src/iree/compiler/Codegen/Common/ConvertUnsupportedFloatArith.cpp b/compiler/src/iree/compiler/Codegen/Common/ConvertUnsupportedFloatArith.cpp index b69d848..576f42e 100644 --- a/compiler/src/iree/compiler/Codegen/Common/ConvertUnsupportedFloatArith.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/ConvertUnsupportedFloatArith.cpp
@@ -18,9 +18,9 @@ #include "llvm/ADT/APFloat.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/DebugLog.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/Arith/IR/Arith.h" #include "mlir/Dialect/Arith/Transforms/Passes.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/PatternMatch.h" #include "mlir/Interfaces/FunctionInterfaces.h" @@ -779,20 +779,18 @@ >(context, types); // Remove types that have hardware conversion support on this chip. - StringRef chipset = gpuAttr.getArch(); - FailureOr<amdgpu::Chipset> maybeChipset = amdgpu::Chipset::parse(chipset); - if (failed(maybeChipset)) { + FailureOr<ROCDL::TargetInfo> maybeTargetInfo = + ROCDL::TargetInfo::get(gpuAttr.getArch()); + if (failed(maybeTargetInfo)) { LDBG() << "Invalid chip name"; return types; } - constexpr amdgpu::Chipset kGfx942{9, 4, 2}; - constexpr amdgpu::Chipset kGfx950{9, 5, 0}; - if (*maybeChipset >= kGfx942 && *maybeChipset < kGfx950) { + if (maybeTargetInfo->hasFnuzFp8()) { // gfx942 has hardware conversion for FNUZ types. llvm::erase(types, Float8E4M3FNUZType::get(context)); llvm::erase(types, Float8E5M2FNUZType::get(context)); } - if (amdgpu::hasOcpFp8(*maybeChipset)) { + if (maybeTargetInfo->hasOcpFp8()) { // gfx950+ and gfx12+ have hardware conversion for OCP types. llvm::erase(types, Float8E4M3FNType::get(context)); llvm::erase(types, Float8E5M2Type::get(context));
diff --git a/compiler/src/iree/compiler/Codegen/Common/GPU/BUILD.bazel b/compiler/src/iree/compiler/Codegen/Common/GPU/BUILD.bazel index 8da8363..e657eb4 100644 --- a/compiler/src/iree/compiler/Codegen/Common/GPU/BUILD.bazel +++ b/compiler/src/iree/compiler/Codegen/Common/GPU/BUILD.bazel
@@ -138,7 +138,6 @@ "//compiler/src/iree/compiler/Utils", "@llvm-project//llvm:Support", "@llvm-project//mlir:AMDGPUDialect", - "@llvm-project//mlir:AMDGPUUtils", "@llvm-project//mlir:AffineDialect", "@llvm-project//mlir:AffineTransforms", "@llvm-project//mlir:AffineUtils", @@ -169,6 +168,7 @@ "@llvm-project//mlir:MemRefUtils", "@llvm-project//mlir:NVGPUDialect", "@llvm-project//mlir:Pass", + "@llvm-project//mlir:ROCDLDialect", "@llvm-project//mlir:Rewrite", "@llvm-project//mlir:SCFDialect", "@llvm-project//mlir:SCFTransforms",
diff --git a/compiler/src/iree/compiler/Codegen/Common/GPU/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Common/GPU/CMakeLists.txt index c724816..0145290 100644 --- a/compiler/src/iree/compiler/Codegen/Common/GPU/CMakeLists.txt +++ b/compiler/src/iree/compiler/Codegen/Common/GPU/CMakeLists.txt
@@ -104,7 +104,6 @@ ::PassesIncGen LLVMSupport MLIRAMDGPUDialect - MLIRAMDGPUUtils MLIRAffineDialect MLIRAffineTransforms MLIRAffineUtils @@ -133,6 +132,7 @@ MLIRMemRefUtils MLIRNVGPUDialect MLIRPass + MLIRROCDLDialect MLIRRewrite MLIRSCFDialect MLIRSCFTransforms
diff --git a/compiler/src/iree/compiler/Codegen/Common/GPU/ExpandGPUOps.cpp b/compiler/src/iree/compiler/Codegen/Common/GPU/ExpandGPUOps.cpp index 943b79c..818b4cf 100644 --- a/compiler/src/iree/compiler/Codegen/Common/GPU/ExpandGPUOps.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/GPU/ExpandGPUOps.cpp
@@ -10,10 +10,10 @@ #include "iree/compiler/Codegen/Utils/GPUUtils.h" #include "iree/compiler/Codegen/Utils/Utils.h" #include "llvm/Support/MathExtras.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/Arith/IR/Arith.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" #include "mlir/Dialect/GPU/Transforms/Passes.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/IR/IRMapping.h" #include "mlir/Interfaces/FunctionInterfaces.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" @@ -231,13 +231,17 @@ RewritePatternSet patterns(ctx); auto execTarget = IREE::HAL::ExecutableTargetAttr::lookup(funcOp); IREE::GPU::TargetAttr target = getGPUTargetAttr(funcOp); - StringRef targetArch = target.getArch(); - auto maybeChipset = amdgpu::Chipset::parse(targetArch); - if (succeeded(maybeChipset) && isROCMBackend(execTarget)) { - populateGpuLowerSubgroupReduceToDPPPatterns( - patterns, *subgroupSize, *maybeChipset, PatternBenefit(2)); - populateGpuLowerClusteredSubgroupReduceToDPPPatterns( - patterns, *subgroupSize, *maybeChipset, PatternBenefit(2)); + if (isROCMBackend(execTarget)) { + // If the target cannot be resolved (e.g. an unknown architecture), skip + // the DPP-based lowerings and fall back to the shuffle-based ones. + FailureOr<ROCDL::TargetInfo> maybeTargetInfo = + ROCDL::TargetInfo::get(target.getArch(), *subgroupSize); + if (succeeded(maybeTargetInfo)) { + populateGpuLowerSubgroupReduceToDPPPatterns( + patterns, *subgroupSize, *maybeTargetInfo, PatternBenefit(2)); + populateGpuLowerClusteredSubgroupReduceToDPPPatterns( + patterns, *subgroupSize, *maybeTargetInfo, PatternBenefit(2)); + } } populateGpuBreakDownSubgroupReducePatterns(
diff --git a/compiler/src/iree/compiler/Codegen/Common/GPU/GPUConvertToCoalescedDMA.cpp b/compiler/src/iree/compiler/Codegen/Common/GPU/GPUConvertToCoalescedDMA.cpp index 5c4018d..9f2fc41 100644 --- a/compiler/src/iree/compiler/Codegen/Common/GPU/GPUConvertToCoalescedDMA.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/GPU/GPUConvertToCoalescedDMA.cpp
@@ -14,7 +14,6 @@ #include "iree/compiler/Dialect/LinalgExt/IR/LinalgExtOps.h" #include "iree/compiler/Dialect/LinalgExt/Utils/Utils.h" #include "llvm/Support/Debug.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/Affine/IR/AffineOps.h" #include "mlir/Dialect/Arith/IR/Arith.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h"
diff --git a/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/BUILD.bazel b/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/BUILD.bazel index c173fda..25a1bb3 100644 --- a/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/BUILD.bazel +++ b/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/BUILD.bazel
@@ -60,8 +60,8 @@ "//compiler/src/iree/compiler/Codegen/Common/GPU:GPUHeuristics", "//compiler/src/iree/compiler/Codegen/Dialect/GPU/IR:IREEGPUDialect", "@llvm-project//llvm:Support", - "@llvm-project//mlir:AMDGPUUtils", "@llvm-project//mlir:IR", + "@llvm-project//mlir:ROCDLDialect", "@llvm-project//mlir:Support", ], )
diff --git a/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/CMakeLists.txt index f7e4e6d..513ee0d 100644 --- a/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/CMakeLists.txt +++ b/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/CMakeLists.txt
@@ -53,8 +53,8 @@ "KnownTargets.cpp" DEPS LLVMSupport - MLIRAMDGPUUtils MLIRIR + MLIRROCDLDialect MLIRSupport iree::compiler::Codegen::Common::GPU::GPUHeuristics iree::compiler::Codegen::Dialect::GPU::IR::IREEGPUDialect
diff --git a/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp b/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp index 1d936da..1aa7855 100644 --- a/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp +++ b/compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
@@ -12,7 +12,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringSwitch.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/BuiltinAttributes.h" #include "mlir/IR/BuiltinTypes.h" @@ -1654,19 +1654,19 @@ } StringRef arch = target.getArch(); - FailureOr<amdgpu::Chipset> chipset = amdgpu::Chipset::parse(arch); + FailureOr<ROCDL::TargetInfo> targetInfo = ROCDL::TargetInfo::get(arch); - // CDNA4 is gfx950 (major=9, minor=5). - bool isCDNA4 = succeeded(chipset) && chipset->majorVersion == 9 && - chipset->minorVersion == 5; + // CDNA4 is gfx950. + bool isCDNA4 = + succeeded(targetInfo) && targetInfo->has(llvm::AMDGPU::FEAT_GFX950_INSTS); if (isCDNA4 || arch == "cdna4") { return kCDNA4Seeds; } - // RDNA4 is gfx1200/gfx1201 (major=12, minor=0). CDNA5 is gfx1250 - // (major=12, minor=5) and should not use RDNA4 seeds. - bool isRDNA4 = succeeded(chipset) && chipset->majorVersion == 12 && - chipset->minorVersion <= 1; + // RDNA4 is gfx1200/gfx1201. CDNA5 is gfx1250, which is also a gfx12 + // generation target but should not use RDNA4 seeds. + bool isRDNA4 = succeeded(targetInfo) && targetInfo->isGeneration(12) && + !targetInfo->has(llvm::AMDGPU::FEAT_GFX1250_INSTS); if (isRDNA4 || arch == "rdna4") { return kRDNA4Seeds; }
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp index 1236653..7b62de0 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp
@@ -6,6 +6,7 @@ #include "iree/compiler/Codegen/Common/GPU/GPUPatterns.h" #include "iree/compiler/Codegen/Common/Transforms.h" +#include "iree/compiler/Codegen/Dialect/Codegen/IR/IREECodegenAttrs.h" #include "iree/compiler/Codegen/Dialect/Codegen/IR/IREECodegenOps.h" #include "iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUDialect.h" #include "iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUOps.h" @@ -34,11 +35,13 @@ #include "mlir/Dialect/GPU/IR/GPUDialect.h" #include "mlir/Dialect/GPU/Transforms/Passes.h" #include "mlir/Dialect/LLVMIR/ROCDLDialect.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/Dialect/MemRef/Transforms/Transforms.h" #include "mlir/Dialect/UB/IR/UBOps.h" #include "mlir/Dialect/Vector/IR/VectorOps.h" #include "mlir/Dialect/Vector/Transforms/LoweringPatterns.h" #include "mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h" +#include "mlir/Interfaces/FunctionInterfaces.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" #define DEBUG_TYPE "iree-convert-to-rocdl" @@ -54,22 +57,29 @@ // instruction, with NO memory fences. Fences are handled separately. // // Based on LDSBarrierOpLowering but without the release/acquire fences. -// Chipset handling: -// pre-gfx90a: inline asm s_barrier -// gfx90a-gfx11: rocdl.s.barrier -// gfx12+: rocdl.s.barrier.signal + rocdl.s.barrier.wait +// Target handling: +// no split barriers and no barrier back-off (e.g. pre-gfx90a): +// inline asm s_barrier +// barrier back-off but no split barriers (gfx90a-gfx11): rocdl.s.barrier +// split barriers (gfx12+): rocdl.s.barrier.signal + rocdl.s.barrier.wait struct LowerGlobalSubgroupBarrier : OpRewritePattern<IREE::GPU::GlobalSubgroupBarrierOp> { - LowerGlobalSubgroupBarrier(MLIRContext *context, amdgpu::Chipset chipset) - : OpRewritePattern(context), chipset(chipset) {} + LowerGlobalSubgroupBarrier(MLIRContext *context, + const ROCDL::TargetInfo &target) + : OpRewritePattern(context), target(target) {} LogicalResult matchAndRewrite(IREE::GPU::GlobalSubgroupBarrierOp op, PatternRewriter &rewriter) const override { Location loc = op.getLoc(); - constexpr amdgpu::Chipset kGfx90a(9, 0, 0x0a); + bool hasSplitBarriers = target.has(llvm::AMDGPU::FEAT_GFX12_INSTS); + // Inline assembly is only needed where the hardware has neither split + // barriers nor barrier back-off (mainly early gfx9), to bypass the + // conservative insertion of global memory waits at barriers. + bool requiresInlineAsm = + !hasSplitBarriers && !target.has(llvm::AMDGPU::FEAT_BACK_OFF_BARRIER); - if (chipset < kGfx90a) { - // Pre-gfx90a: use inline asm. + if (requiresInlineAsm) { + // Use inline asm. auto asmDialectAttr = LLVM::AsmDialectAttr::get(rewriter.getContext(), LLVM::AsmDialect::AD_ATT); const char *asmStr = ";;;WARNING: BREAKS DEBUG WATCHES\ns_barrier"; @@ -81,11 +91,11 @@ /*convergent=*/true, /*asm_dialect=*/asmDialectAttr, /*operand_attrs=*/ArrayAttr()); - } else if (chipset.majorVersion < 12) { - // gfx90a-gfx11: use rocdl.s.barrier. + } else if (!hasSplitBarriers) { + // Use rocdl.s.barrier. rewriter.replaceOpWithNewOp<ROCDL::SBarrierOp>(op); } else { - // gfx12+: use rocdl.s.barrier.signal + rocdl.s.barrier.wait. + // Use rocdl.s.barrier.signal + rocdl.s.barrier.wait. ROCDL::BarrierSignalOp::create(rewriter, loc, -1); rewriter.replaceOpWithNewOp<ROCDL::BarrierWaitOp>( op, static_cast<int16_t>(-1)); @@ -94,13 +104,13 @@ } private: - amdgpu::Chipset chipset; + ROCDL::TargetInfo target; }; static void populateLowerGlobalSubgroupBarrierPatterns(RewritePatternSet &patterns, - const amdgpu::Chipset &chipset) { - patterns.add<LowerGlobalSubgroupBarrier>(patterns.getContext(), chipset); + const ROCDL::TargetInfo &target) { + patterns.add<LowerGlobalSubgroupBarrier>(patterns.getContext(), target); } /// Hacky pattern to swap `s_setprio` operations with `amdgpu.mfma` ops. @@ -180,7 +190,7 @@ // Note: different chips take different FP8 formats but re-use the same // instruction and intrinsic names, so we must filter out the "wrong" FP8 here. static LogicalResult validateDataTypes(Operation *op, - const amdgpu::Chipset &chipset) { + const ROCDL::TargetInfo &target) { // Only validate arith.extf and arith.truncf - these are the operations that // need hardware or software conversion support. Other ops (memrefs, etc.) // just store fp8 data and don't need special handling. @@ -188,8 +198,7 @@ return success(); } - constexpr amdgpu::Chipset kGfx942 = amdgpu::Chipset(9, 4, 2); - if (!amdgpu::hasOcpFp8(chipset)) { + if (!target.hasOcpFp8()) { auto pred = containsAPred<Float8E5M2Type, Float8E4M3FNType>; if (llvm::any_of(op->getOperandTypes(), pred) || llvm::any_of(op->getResultTypes(), pred)) { @@ -201,7 +210,7 @@ } } - if (chipset != kGfx942) { + if (!target.hasFnuzFp8()) { auto pred = containsAPred<Float8E5M2FNUZType, Float8E4M3FNUZType>; if (llvm::any_of(op->getOperandTypes(), pred) || llvm::any_of(op->getResultTypes(), pred)) { @@ -232,11 +241,34 @@ void runOnOperation() override { ModuleOp m = getOperation(); - StringRef targetArch = getGPUTargetAttr(m).getArch(); - FailureOr<amdgpu::Chipset> maybeChipset = - amdgpu::Chipset::parse(targetArch); - if (failed(maybeChipset)) { - m.emitOpError() << "Invalid chipset name: " << targetArch; + IREE::GPU::TargetAttr targetAttr = getGPUTargetAttr(m); + StringRef targetArch = targetAttr.getArch(); + // The wave size is part of the target description: targets that support + // both wave32 and wave64 default to wave32 unless told otherwise. IREE + // requires a single subgroup size per executable variant (the ROCM target + // rejects exports that disagree), so resolve it once for the module from + // the functions' translation info, defaulting to the target's preferred + // size like the ROCM target does. If the functions disagree, fall back to + // the target default; the mismatch is diagnosed by the ROCM target later. + std::optional<int64_t> waveSize; + for (FunctionOpInterface funcOp : m.getOps<FunctionOpInterface>()) { + std::optional<int64_t> funcWaveSize = getSubgroupSize(funcOp); + if (!funcWaveSize) { + continue; + } + if (waveSize && *waveSize != *funcWaveSize) { + waveSize = 0; + break; + } + waveSize = funcWaveSize; + } + if (!waveSize) { + waveSize = targetAttr.getPreferredSubgroupSize(); + } + FailureOr<ROCDL::TargetInfo> maybeTargetInfo = + ROCDL::TargetInfo::get(targetArch, static_cast<unsigned>(*waveSize), + [&] { return m.emitOpError(); }); + if (failed(maybeTargetInfo)) { return signalPassFailure(); } @@ -270,7 +302,7 @@ // These patterns only convert a subset of arith that target specific // rocdl intrinsics (e.g. fp8 conversions). WalkResult allTypesValid = m.walk([&](Operation *op) { - if (failed(validateDataTypes(op, *maybeChipset))) { + if (failed(validateDataTypes(op, *maybeTargetInfo))) { return WalkResult::interrupt(); } return WalkResult::advance(); @@ -283,10 +315,10 @@ arith::populateArithToAMDGPUConversionPatterns( patterns, /*convertFP8Arithmetic=*/true, /*saturateFP8Truncf=*/false, /*allowPackedF16Rtz=*/false, supportsScaledExtTrunc, - /*chipset=*/*maybeChipset); + /*target=*/*maybeTargetInfo); arith::populateCeilFloorDivExpandOpsPatterns(patterns); populateSwapSetPrioWithMFMAPatterns(patterns); - populateLowerGlobalSubgroupBarrierPatterns(patterns, *maybeChipset); + populateLowerGlobalSubgroupBarrierPatterns(patterns, *maybeTargetInfo); populateConvertSharedMemoryAllocOps(patterns); populateDropSharedMemoryDeallocOpPatterns(patterns); vector::populateVectorToVectorCanonicalizationPatterns(patterns); @@ -320,7 +352,7 @@ { RewritePatternSet patterns(&getContext()); populateGpuRewritePatterns(patterns); - populateGpuPromoteShuffleToAMDGPUPatterns(patterns, maybeChipset); + populateGpuPromoteShuffleToAMDGPUPatterns(patterns, *maybeTargetInfo); if (failed(applyPatternsGreedily(m, std::move(patterns), config))) { return signalPassFailure(); } @@ -355,7 +387,7 @@ cf::populateControlFlowToLLVMConversionPatterns(converter, llvmPatterns); arith::populateArithToLLVMConversionPatterns(converter, llvmPatterns); populateAMDGPUToROCDLConversionPatterns(converter, llvmPatterns, - *maybeChipset); + *maybeTargetInfo); vector::populateVectorRankReducingFMAPattern(llvmPatterns); vector::populateVectorInsertExtractStridedSliceTransforms(llvmPatterns); vector::populateVectorStepLoweringPatterns(llvmPatterns); @@ -366,12 +398,12 @@ // We pass Runtime::HIP in order to enable gpu.printf for debugging. // At time of writing, that flag has no other effect. populateGpuToROCDLConversionPatterns( - converter, llvmPatterns, gpu::amd::Runtime::HIP, *maybeChipset); + converter, llvmPatterns, gpu::amd::Runtime::HIP, *maybeTargetInfo); LLVMConversionTarget target(getContext()); populateFuncToLLVMFuncOpConversionPattern(converter, llvmPatterns); configureGpuToROCDLConversionLegality(target); populateMathToROCDLConversionPatterns(converter, llvmPatterns, - /*chipset=*/*maybeChipset); + /*target=*/*maybeTargetInfo); ub::populateUBToLLVMConversionPatterns(converter, llvmPatterns); target.addLegalOp<IREE::Codegen::DispatchConfigOp, IREE::Codegen::YieldOp>();
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLAnnotateKernelForTranslation.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLAnnotateKernelForTranslation.cpp index 3e310ce..c3ccf1f 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLAnnotateKernelForTranslation.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLAnnotateKernelForTranslation.cpp
@@ -17,8 +17,8 @@ #include "iree/compiler/Dialect/HAL/IR/HALTypes.h" #include "llvm/Support/LogicalResult.h" #include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/IR/Builders.h" #include "mlir/Pass/Pass.h" @@ -54,14 +54,14 @@ funcOp.setDenormalFpenvAttr(attr); } -// Extracts the amdgpu chipset version from the chip architecture in the -// executable target attribute. -static FailureOr<amdgpu::Chipset> -getChipsetVersion(MLIRContext *context, - IREE::HAL::ExecutableTargetAttr targetAttr) { +// Resolves the AMDGPU target from the chip architecture in the executable +// target attribute. +static FailureOr<ROCDL::TargetInfo> +getTargetInfo(MLIRContext *context, + IREE::HAL::ExecutableTargetAttr targetAttr) { IREE::GPU::TargetAttr gpuTarget = getGPUTargetAttr(context, targetAttr); assert(gpuTarget); - return amdgpu::Chipset::parse(gpuTarget.getArch()); + return ROCDL::TargetInfo::get(gpuTarget.getArch()); } // Set attributes on `funcOp` in order to use upstream's translation of @@ -126,13 +126,13 @@ // Kernel argument preloading is only supported on gfx942 and newer targets // from the CDNA family. This is enabled using the `inreg` function argument // attribute. - FailureOr<amdgpu::Chipset> chipset = - getChipsetVersion(builder.getContext(), targetAttr); - if (failed(chipset)) { + FailureOr<ROCDL::TargetInfo> targetInfo = + getTargetInfo(builder.getContext(), targetAttr); + if (failed(targetInfo)) { return funcOp.emitError() << "failed to parse amdgpu chipset"; } - if (chipset->majorVersion != 9 || *chipset < amdgpu::Chipset(9, 4, 0)) { + if (!targetInfo->has(llvm::AMDGPU::FEAT_GFX940_INSTS)) { return success(); }
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLLoadToTransposeLoad.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLLoadToTransposeLoad.cpp index 84fa86a..9ebe983 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLLoadToTransposeLoad.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLLoadToTransposeLoad.cpp
@@ -14,10 +14,10 @@ #include "llvm/Support/DebugLog.h" #include "mlir/Analysis/SliceAnalysis.h" #include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/Affine/IR/AffineOps.h" #include "mlir/Dialect/Arith/IR/Arith.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/Dialect/MemRef/Transforms/Transforms.h" #include "mlir/Dialect/Vector/IR/VectorOps.h" @@ -35,8 +35,6 @@ namespace { constexpr int64_t kTransposeLoadLaneGroupSize = 16; -constexpr amdgpu::Chipset kGfx950 = amdgpu::Chipset(9, 5, 0); -constexpr amdgpu::Chipset kGfx1200 = amdgpu::Chipset(12, 0, 0); constexpr llvm::StringLiteral kPassLocalHintAttr = "__pass_local_hint"; //===----------------------------------------------------------------------===// @@ -965,14 +963,17 @@ if (!target) { return; } - FailureOr<amdgpu::Chipset> chipset = - amdgpu::Chipset::parse(target.getArch()); - if (failed(chipset)) { + FailureOr<ROCDL::TargetInfo> targetInfo = + ROCDL::TargetInfo::get(target.getArch()); + if (failed(targetInfo)) { return; } - bool isGfx950 = (*chipset == kGfx950); - bool isRDNA4 = chipset->majorVersion == 12 && chipset->minorVersion <= 1; + bool isGfx950 = targetInfo->has(llvm::AMDGPU::FEAT_GFX950_INSTS); + // RDNA4 is gfx1200/gfx1201; gfx1250 is also a gfx12 generation target but + // is excluded here. + bool isRDNA4 = targetInfo->isGeneration(12) && + !targetInfo->has(llvm::AMDGPU::FEAT_GFX1250_INSTS); if (!isGfx950 && !isRDNA4) { return;
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD.bazel b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD.bazel index 84b6091..39ed515 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD.bazel +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD.bazel
@@ -40,6 +40,7 @@ "convert_to_nvvm.mlir", "convert_to_rocdl.mlir", "convert_to_rocdl_gfx1201.mlir", + "convert_to_rocdl_gfx1250.mlir", "convert_to_rocdl_gfx942.mlir", "convert_to_rocdl_gfx950.mlir", "create_async_groups.mlir",
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt index 865f0e1..81264c9 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt
@@ -34,6 +34,7 @@ "convert_to_nvvm.mlir" "convert_to_rocdl.mlir" "convert_to_rocdl_gfx1201.mlir" + "convert_to_rocdl_gfx1250.mlir" "convert_to_rocdl_gfx942.mlir" "convert_to_rocdl_gfx950.mlir" "create_async_groups.mlir"
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1201.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1201.mlir index ac6ceca..5be53cc 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1201.mlir +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1201.mlir
@@ -1,4 +1,4 @@ -// RUN: iree-opt --iree-gpu-test-target=gfx1201 --iree-convert-to-rocdl %s | FileCheck %s +// RUN: iree-opt --split-input-file --iree-gpu-test-target=gfx1201 --iree-convert-to-rocdl %s | FileCheck %s module { func.func @global_subgroup_barrier() { @@ -10,3 +10,46 @@ // CHECK-LABEL: llvm.func @global_subgroup_barrier // CHECK: rocdl.s.barrier.signal id = -1 // CHECK: rocdl.s.barrier.wait id = -1 + +// ----- + +// gfx1201 supports both wave32 and wave64. Without an explicit subgroup size +// the target's preferred size (wave32) is used, which shows up as the lower +// bound of the wavefront size range. +#pipeline_layout = #hal.pipeline.layout<bindings = [ + #hal.pipeline.binding<storage_buffer> +]> +module { + func.func @subgroup_size_default() { + %c0 = arith.constant 0 : index + %0 = hal.interface.binding.subspan layout(#pipeline_layout) binding(0) : memref<1xindex> + %1 = gpu.subgroup_size upper_bound 64 : index + memref.store %1, %0[%c0] : memref<1xindex> + return + } +} + +// CHECK-LABEL: llvm.func @subgroup_size_default +// CHECK: rocdl.wavefrontsize range <i32, 32, 65> : i32 + +// ----- + +// An explicit wave64 subgroup size is threaded into the target description. +#pipeline_layout = #hal.pipeline.layout<bindings = [ + #hal.pipeline.binding<storage_buffer> +]> +#translation = #iree_codegen.translation_info<pipeline = #iree_gpu.pipeline<VectorDistribute> + workgroup_size = [64, 1, 1] + subgroup_size = 64> +module { + func.func @subgroup_size_wave64() attributes {translation_info = #translation} { + %c0 = arith.constant 0 : index + %0 = hal.interface.binding.subspan layout(#pipeline_layout) binding(0) : memref<1xindex> + %1 = gpu.subgroup_size upper_bound 64 : index + memref.store %1, %0[%c0] : memref<1xindex> + return + } +} + +// CHECK-LABEL: llvm.func @subgroup_size_wave64 +// CHECK: rocdl.wavefrontsize range <i32, 64, 65> : i32
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1250.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1250.mlir new file mode 100644 index 0000000..3eae8c4 --- /dev/null +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl_gfx1250.mlir
@@ -0,0 +1,14 @@ +// RUN: iree-opt --iree-gpu-test-target=gfx1250 --iree-convert-to-rocdl --verify-diagnostics %s + +// gfx1250 only runs wave32, so a wave64 subgroup size cannot be represented in +// the target description and is rejected up front. +#translation = #iree_codegen.translation_info<pipeline = #iree_gpu.pipeline<VectorDistribute> + workgroup_size = [64, 1, 1] + subgroup_size = 64> + +// expected-error @+1 {{target only supports a wavefront size of 32}} +module { + func.func @wave64_on_wave32_only_target() attributes {translation_info = #translation} { + return + } +}
diff --git a/compiler/src/iree/compiler/Codegen/Utils/BUILD.bazel b/compiler/src/iree/compiler/Codegen/Utils/BUILD.bazel index 8941cf0..7caa056 100644 --- a/compiler/src/iree/compiler/Codegen/Utils/BUILD.bazel +++ b/compiler/src/iree/compiler/Codegen/Utils/BUILD.bazel
@@ -57,7 +57,6 @@ "@llvm-project//llvm:Support", "@llvm-project//llvm:TargetParser", "@llvm-project//mlir:AMDGPUDialect", - "@llvm-project//mlir:AMDGPUUtils", "@llvm-project//mlir:AffineDialect", "@llvm-project//mlir:Analysis", "@llvm-project//mlir:ArithDialect", @@ -75,6 +74,7 @@ "@llvm-project//mlir:LinalgUtils", "@llvm-project//mlir:MemRefDialect", "@llvm-project//mlir:MemRefTransforms", + "@llvm-project//mlir:ROCDLDialect", "@llvm-project//mlir:SCFDialect", "@llvm-project//mlir:SCFTransforms", "@llvm-project//mlir:SideEffectInterfaces",
diff --git a/compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt index fffe440..0df2135 100644 --- a/compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt +++ b/compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt
@@ -37,7 +37,6 @@ LLVMSupport LLVMTargetParser MLIRAMDGPUDialect - MLIRAMDGPUUtils MLIRAffineDialect MLIRAnalysis MLIRArithDialect @@ -54,6 +53,7 @@ MLIRLinalgUtils MLIRMemRefDialect MLIRMemRefTransforms + MLIRROCDLDialect MLIRSCFDialect MLIRSCFTransforms MLIRSideEffectInterfaces
diff --git a/compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp b/compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp index cac1787..1e539bc 100644 --- a/compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp +++ b/compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp
@@ -18,11 +18,11 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/InterleavedRange.h" #include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h" -#include "mlir/Dialect/AMDGPU/Utils/Chipset.h" #include "mlir/Dialect/Affine/IR/AffineOps.h" #include "mlir/Dialect/Arith/IR/Arith.h" #include "mlir/Dialect/Arith/Utils/Utils.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" +#include "mlir/Dialect/LLVMIR/ROCDLTargetInfo.h" #include "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/Dialect/Utils/IndexingUtils.h" #include "mlir/Dialect/Vector/IR/VectorOps.h" @@ -915,12 +915,12 @@ FailureOr<XorShuffleParams> getXorShuffleParamsForTunedChipset( IREE::GPU::TargetAttr target, IREE::Codegen::InnerTileDescAttrInterface intrinsic, int operandIndex) { - FailureOr<amdgpu::Chipset> maybeChipset = - amdgpu::Chipset::parse(target.getArch()); - if (failed(maybeChipset)) { + FailureOr<ROCDL::TargetInfo> maybeTargetInfo = + ROCDL::TargetInfo::get(target.getArch()); + if (failed(maybeTargetInfo)) { return failure(); } - if (*maybeChipset == amdgpu::Chipset(9, 5, 0)) { + if (maybeTargetInfo->has(llvm::AMDGPU::FEAT_GFX950_INSTS)) { return validateXorShuffle(getXorShuffleParamsForGfx950(target, intrinsic), intrinsic, operandIndex); } @@ -1324,11 +1324,12 @@ if (!target) { return false; } - FailureOr<amdgpu::Chipset> chipset = amdgpu::Chipset::parse(target.getArch()); - if (failed(chipset)) { + FailureOr<ROCDL::TargetInfo> maybeTargetInfo = + ROCDL::TargetInfo::get(target.getArch()); + if (failed(maybeTargetInfo)) { return false; } - return chipset->majorVersion == 9 && chipset->minorVersion >= 5; + return maybeTargetInfo->has(llvm::AMDGPU::FEAT_GFX950_INSTS); } bool targetSupportsShuffleBitwidth(IREE::GPU::TargetAttr target,
diff --git a/third_party/llvm-project b/third_party/llvm-project index 6bf7a46..06e8676 160000 --- a/third_party/llvm-project +++ b/third_party/llvm-project
@@ -1 +1 @@ -Subproject commit 6bf7a4670afb1741b00753a38592d0f38004e99e +Subproject commit 06e867652569c3cd19bd6348c44f78fb759624d0