Add support for host/device stub functions for offload.

This commit is contained in:
Ingo Wald
2012-06-12 10:23:49 -07:00
committed by Matt Pharr
parent dd4f0a600b
commit 789e04ce90
6 changed files with 483 additions and 29 deletions

12
type.h
View File

@@ -115,6 +115,18 @@ public:
integer types. */
virtual bool IsUnsignedType() const = 0;
/** Returns true if the underlying type is either a pointer type */
bool IsPointerType() const;
/** Returns true if the underlying type is a array type */
bool IsArrayType() const;
/** Returns true if the underlying type is a array type */
bool IsReferenceType() const;
/** Returns true if the underlying type is either a pointer or an array */
bool IsVoidType() const;
/** Returns true if this type is 'const'-qualified. */
virtual bool IsConstType() const = 0;