]> granicus.if.org Git - clang/commit
[OpenCL] Introduce ReadPipeType and WritePipeType.
authorJoey Gouly <joey.gouly@gmail.com>
Fri, 18 Nov 2016 14:10:54 +0000 (14:10 +0000)
committerJoey Gouly <joey.gouly@gmail.com>
Fri, 18 Nov 2016 14:10:54 +0000 (14:10 +0000)
commit8f035b6f8c06db3477406d9da4b88ccdc4fca880
tree51d2520516b36b79461f29a72964acc3dec334fa
parent496a3f56c72238e2f54d062dc8e16fdc12d83fca
[OpenCL] Introduce ReadPipeType and WritePipeType.

This allows Sema to diagnose passing a read_only pipe to a
write_only pipe argument.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287343 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/Type.h
include/clang/Sema/Sema.h
include/clang/Serialization/ASTBitCodes.h
lib/AST/ASTContext.cpp
lib/AST/TypePrinter.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Misc/ast-dump-pipe.cl
test/SemaOpenCL/access-qualifier.cl
test/SemaOpenCL/invalid-pipes-cl2.0.cl