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

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 01:34:27 PDT 2026


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

Wouldn't this also match any other builtin?

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


More information about the llvm-commits mailing list