experimental support for non-constant [non-static] uniform arrays mapped to addrspace(3)
This commit is contained in:
7
decl.cpp
7
decl.cpp
@@ -402,6 +402,13 @@ Declarator::InitFromType(const Type *baseType, DeclSpecs *ds) {
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0 /* NVPTX */
|
||||
if (baseType->IsUniformType())
|
||||
{
|
||||
fprintf(stderr, " detected uniform array of size= %d array= %s\n" ,arraySize,
|
||||
baseType->IsArrayType() ? " true " : " false ");
|
||||
}
|
||||
#endif
|
||||
const Type *arrayType = new ArrayType(baseType, arraySize);
|
||||
if (child != NULL) {
|
||||
child->InitFromType(arrayType, ds);
|
||||
|
||||
Reference in New Issue
Block a user