[PATCH] D46015: [OpenCL] Add separate read_only and write_only pipe IR types

Alexey Sotkin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 24 15:31:27 PDT 2018


AlexeySotkin added a comment.

It is not clear why we need two versions of get_pipe_num_packets and get_pipe_max_packets builtins. There is only one instruction per builtin in the SPIR-V spec. I think splitting the IR type is enough for translation to SPIR-V purposes.


Repository:
  rC Clang

https://reviews.llvm.org/D46015





More information about the cfe-commits mailing list