Enable code generation of scalar dependences from function arguments
authorTobias Grosser <tobias@grosser.es>
Thu, 13 Aug 2015 08:07:39 +0000 (08:07 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 13 Aug 2015 08:07:39 +0000 (08:07 +0000)
commit0164b8ff70e814cd60621b0fcfbc5b86637efbb3
treed72b0a8799e06254f8740d1671e0f18f9f219ecf
parent166d51660311953e873c606037ad819c429804d9
Enable code generation of scalar dependences from function arguments

This change extends the BlockGenerator to not only allow Instructions as
base elements of scalar dependences, but any llvm::Value. This allows
us to code-generate scalar dependences which reference function arguments, as
they arise when moddeling read-only scalar dependences.

llvm-svn: 244874
polly/include/polly/CodeGen/BlockGenerators.h
polly/lib/CodeGen/BlockGenerators.cpp
polly/test/Isl/CodeGen/read-only-scalars.ll [new file with mode: 0644]