[clang] [AMDGPU] Modifies builtin def to take _Float16('x') for both HIP/C++ and for OpenCL (PR #167652)

Rana Pratap Reddy via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 3 23:14:21 PST 2025


================
@@ -10527,6 +10527,21 @@ bool ASTContext::areCompatibleVectorTypes(QualType FirstVec,
       Second->getVectorKind() != VectorKind::RVVFixedLengthMask_4)
     return true;
 
+  // In OpenCL, treat half and _Float16 vector types as compatible.
----------------
ranapratap55 wrote:

Created a separate PR for: https://github.com/llvm/llvm-project/pull/170605

https://github.com/llvm/llvm-project/pull/167652


More information about the cfe-commits mailing list