clover: Add a function internalizer pass before LTO v2
authorTom Stellard <thomas.stellard@amd.com>
Thu, 21 Jun 2012 17:55:15 +0000 (13:55 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 29 Jun 2012 18:46:18 +0000 (18:46 +0000)
commitca8fa0230896727af81ee54197f6e2233d49481d
tree82f2ed772ce9320f7502a64e8c936d2b98e90dc7
parenta31b2f71076b9d3fe9bc5f2bae3228f1e7b99ee2
clover: Add a function internalizer pass before LTO v2

The function internalizer pass marks non-kernel functions as internal,
which enables optimizations like function inlining and global dead-code
elimination.

v2:
  - Pass vector arguments by const reference
src/gallium/state_trackers/clover/llvm/invocation.cpp