Cleanup of "Linking" related code
Bug: 30964317
Moved all "linking" related code into the LinkerModule.cpp and .h.
RSSPRIVWriter.cpp does not contain any linking related code any
more.
Also moved the call to linker out of the convertLLVMToSPIRV()
function, since it has nothing to do with LLVM to SPIRV conversion.
Put it into the main() function of the rs2spirv tool.
Moved OpInBoudsPtrAccessChaing translation out of FixMain(), and
rename FixMain() to InlineKernelToWrapper().
This CL does not add or remove any functionality, but simply does
a cleanup that moves code around.
Test: lit tests and RSoVTest on angler
Change-Id: I52ade393c77460748e2b2808c52d849456d3f0ed
6 files changed