arsenm wrote: > OpenCL spec forbids casting between generic and constant address space pointers. Doesn't really matter for the purposes of what the IR, it's a question of what the SPIRV machine allows https://github.com/llvm/llvm-project/pull/165353