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

View File

@@ -196,12 +196,32 @@ AtomicType::GetVariability() const {
}
bool
Type::IsPointerType() const {
return (CastType<const PointerType*>(this) != NULL);
}
bool
Type::IsArrayType() const {
return (CastType<const ArrayType*>(this) != NULL);
}
bool
Type::IsReferenceType() const {
return (CastType<ReferenceType>(this) != NULL);
}
bool
Type::IsVoidType() const {
return this == AtomicType::Void;
}
bool
AtomicType::IsFloatType() const {
return (basicType == TYPE_FLOAT || basicType == TYPE_DOUBLE);
}
bool
AtomicType::IsIntType() const {
return (basicType == TYPE_INT8 || basicType == TYPE_UINT8 ||