[llvm] [SPIR-V] Replace isPipeOrAddressSpaceCastBI hardcoded list with table lookup (PR #207147)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 01:58:44 PDT 2026


================
@@ -3984,5 +3984,9 @@ lowerBuiltinType(const Type *OpaqueType,
 
   return TargetType;
 }
+
+bool isPipeOrAddressSpaceCastBuiltin(StringRef Name) {
+  return lookupBuiltin(Name, OpenCL_std) != nullptr;
+}
----------------
aobolensk wrote:

Probably, yes. Added some guards for the builtin groups

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


More information about the llvm-commits mailing list