[all-commits] [llvm/llvm-project] ceb805: [OpenCL] Add pure attribute to vload builtins

Stuart Brady via All-commits all-commits at lists.llvm.org
Thu Dec 16 10:31:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ceb80557e523f1894799ebadd5d985e11ee80461
      https://github.com/llvm/llvm-project/commit/ceb80557e523f1894799ebadd5d985e11ee80461
  Author: Stuart Brady <stuart.brady at arm.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

  Changed paths:
    M clang/lib/Headers/opencl-c.h
    M clang/lib/Sema/OpenCLBuiltins.td
    M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl

  Log Message:
  -----------
  [OpenCL] Add pure attribute to vload builtins

Use the "pure" attribute (or "readonly") for the vload, vload_half and
vloada_half builtins.

Includes test changes to SemaOpenCL/fdeclare-opencl-builtins.cl to avoid
triggering unused-result warnings.

Reviewed By: svenvh

Differential Revision: https://reviews.llvm.org/D110742




More information about the All-commits mailing list