[Fortran Support] Change "global" pattern match to work for params
authorSiddharth Bhat <siddu.druid@gmail.com>
Thu, 18 May 2017 16:47:13 +0000 (16:47 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Thu, 18 May 2017 16:47:13 +0000 (16:47 +0000)
commit06e3c74d8318229986b6d744260fc4ebcb42a34d
treed32327dd6b6d160da5feaea4822d24ecd538cb17
parenta6465bbb726badf86e520d15d29b6a65a2d1007d
[Fortran Support] Change "global" pattern match to work for params

Summary:
- Rename global / local naming convention that did not make much sense
to Visible / Invisible, where the visible refers to whether the ALLOCATE
call to the Fortran array is present in the current module or not.

- This match now works on both cross fortran module globals and on
parameters to functions since neither of them are necessarily allocated
at the point of their usage.

- Add testcase that matches against both a load and a store against
function parameters.

Differential Revision: https://reviews.llvm.org/D33190

llvm-svn: 303356
polly/include/polly/ScopBuilder.h
polly/lib/Analysis/ScopBuilder.cpp
polly/test/ScopInfo/fortran_array_param_nonmalloc_nonvectored.ll
polly/test/ScopInfo/fortran_array_param_nonmalloc_nonvectored_read_and_write.ll [new file with mode: 0644]