https://github.com/harrisonGPU created https://github.com/llvm/llvm-project/pull/246816
Remove the r600 triple case and the `__builtin_r600_recipsqrt_ieee*` cases. CIR never implemented them, and they now fall through to the `default` NYI path. RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840 --- <sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub> >From cb363ded1a52e09f75ee843e04c50d9544fa7451 Mon Sep 17 00:00:00 2001 From: Harrison Hao <[email protected]> Date: Sat, 28 Nov 2026 16:03:21 +0800 Subject: [PATCH] [CIR][AMDGPU] Remove R600 builtin handling. NFC Remove the r600 triple case and the `__builtin_r600_recipsqrt_ieee*` cases. CIR never implemented them, and they now fall through to the `default` NYI path. RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840 --- clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp | 1 - clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp index ca8a601946ab52..814089f2446420 100644 --- a/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp @@ -3460,7 +3460,6 @@ emitTargetArchBuiltinExpr(CIRGenFunction *cgf, unsigned builtinID, case llvm::Triple::ppcle: case llvm::Triple::ppc64: case llvm::Triple::ppc64le: - case llvm::Triple::r600: // These are actually NYI, but that will be reported by emitBuiltinExpr. // At this point, we don't even know that the builtin is target-specific. return std::nullopt; diff --git a/clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp b/clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp index 5310c86768f3c7..6b3a65c7a95d07 100644 --- a/clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp @@ -1291,13 +1291,6 @@ CIRGenFunction::emitAMDGPUBuiltinExpr(unsigned builtinId, return emitAMDGPUGridSize(*this, getLoc(expr->getExprLoc()), 1); case AMDGPU::BI__builtin_amdgcn_grid_size_z: return emitAMDGPUGridSize(*this, getLoc(expr->getExprLoc()), 2); - case AMDGPU::BI__builtin_r600_recipsqrt_ieee: - case AMDGPU::BI__builtin_r600_recipsqrt_ieeef: { - cgm.errorNYI(expr->getSourceRange(), - std::string("unimplemented AMDGPU builtin call: ") + - getContext().BuiltinInfo.getName(builtinId)); - return mlir::Value{}; - } case AMDGPU::BI__builtin_amdgcn_alignbit: { cgm.errorNYI(expr->getSourceRange(), std::string("unimplemented AMDGPU builtin call: ") + _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
