[OpenCL] Add pure attribute to vload builtins
authorStuart Brady <stuart.brady@arm.com>
Thu, 16 Dec 2021 14:55:31 +0000 (14:55 +0000)
committerStuart Brady <stuart.brady@arm.com>
Thu, 16 Dec 2021 14:55:31 +0000 (14:55 +0000)
commit1a376bc285358037a5edc48b0d125f91bf5a69ca
tree0095461935efc057dfdbdd0b78ef8c842495fbd1
parent88df30c8d81d3f0651fb8ad4e86b08eb2898744c
[OpenCL] Add pure attribute to vload builtins

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

Reviewed By: svenvh

Differential Revision: https://reviews.llvm.org/D110742
clang/lib/Headers/opencl-c.h
clang/lib/Sema/OpenCLBuiltins.td