diff options
| author | Nate Begeman <natebegeman@mac.com> | 2009-06-26 00:50:28 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2009-06-26 00:50:28 +0000 |
| commit | c69b740df42c28c4063627a0103310f1a1b85ff2 (patch) | |
| tree | 9b042f869669e5adf5891e0a93f1cb2276ece2fd /clang/lib/Sema/Sema.h | |
| parent | 2aaad91bbeb3373fc2bf8fbba79349beda31cfed (diff) | |
| download | bcm5719-llvm-c69b740df42c28c4063627a0103310f1a1b85ff2.tar.gz bcm5719-llvm-c69b740df42c28c4063627a0103310f1a1b85ff2.zip | |
OpenCL 1.0 support: explicit casts to ext-vector types
llvm-svn: 74247
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 36f3ff96f3b..48e67723539 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -3063,6 +3063,13 @@ public: // returns true if the cast is invalid bool CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty); + // CheckExtVectorCast - check type constraints for extended vectors. + // Since vectors are an extension, there are no C standard reference for this. + // We allow casting between vectors and integer datatypes of the same size, + // or vectors and the element type of that vector. + // returns true if the cast is invalid + bool CheckExtVectorCast(SourceRange R, QualType VectorTy, QualType Ty); + /// CheckMessageArgumentTypes - Check types in an Obj-C message send. /// \param Method - May be null. /// \param [out] ReturnType - The return type of the send. |

