[polly] r302653 - [Fortran Support] Detect Fortran arrays & metadata from dragonegg output

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 08:18:25 PDT 2017


I get a compilation failure:

2017-05-10 15:11 GMT+02:00 Siddharth Bhat via llvm-commits
<llvm-commits at lists.llvm.org>:
> +void MemoryAccess::setFortranArrayDescriptor(GlobalValue *FAD) {
> +  this->FAD = FAD;
> +
> +// TODO: write checks to make sure it looks _exactly_ like a Fortran array
> +// descriptor
> +#ifdef NDEBUG
> +  StructType *ty = dyn_cast<StructType>(Descriptor->getValueType());

/root/src/llvm/tools/polly/lib/Analysis/ScopInfo.cpp: In member
function ‘void polly::MemoryAccess::setFortranArrayDescriptor(llvm::GlobalValue*)’:
/root/src/llvm/tools/polly/lib/Analysis/ScopInfo.cpp:1043:41: error:
‘Descriptor’ was not declared in this scope
   StructType *ty = dyn_cast<StructType>(Descriptor->getValueType());
                                         ^
> +  assert(ty && "expected value of type Fortran array descriptor");
> +  assert(ty->hasName() && ty->getName().startswith("struct.array") &&
> +         "expected global to follow Fortran array descriptor type naming "
> +         "convention");
> +  assert(ty->getNumElements() == 4 &&
> +         "expected layout to be like Fortran array descriptor type");
> +#endif
> +}


More information about the llvm-commits mailing list