search for: globalmerge_8cpp_sourc

Displaying 1 result from an estimated 1 matches for "globalmerge_8cpp_sourc".

2012 Oct 13
1
[LLVMdev] Accessing merged globals through PointerType
Hi, I am trying to create a pass that is similar to the GlobalMerge code found here: http://llvm.org/docs/doxygen/html/GlobalMerge_8cpp_source.html I am concerned with lines 149-163 of the above file. From the documentation at the top of the file, it will convert this: static int foo[N], bar[N], baz[N]; for (i = 0; i < N; ++i) { foo[i] = bar[i] * baz[i]; } Into something like this (slightly modified): struct mergestruct { in...