added emulation of "soa" data types via shared-memory

This commit is contained in:
Evghenii
2014-01-23 16:17:06 +01:00
parent 0091973bca
commit da7a2c0c7f
5 changed files with 42 additions and 1 deletions

View File

@@ -168,11 +168,13 @@ DeclSpecs::GetBaseType(SourcePos pos) const {
retType = lApplyTypeQualifiers(typeQualifiers, retType, pos);
if (soaWidth > 0) {
#if 0 /* see stmt.cpp in DeclStmt::EmitCode for work-around of SOAType Declaration */
if (g->target->getISA() == Target::NVPTX)
{
Error(pos, "\"soa\" data types are currently not supported with \"nvptx\" target.");
return NULL;
}
#endif
const StructType *st = CastType<StructType>(retType);
if (st == NULL) {