RFC: [patch] Update shark for LLVM r95390 API change.
xerxes at zafena.se
Fri Feb 19 06:25:49 PST 2010
The attached patch makes shark build and run using llvm 2.7 svn r95390.
The LLVM change-set r95390 pawed the way to make LLVM a dynamic library
wich are quite cool and in order to do so it moved the implicitly used
--march, --mcpu, and --mattr functionality from JIT/TargetSelect.cpp to
lli.cpp to prevent a clutch with llc.
These changes made it necessary for Shark to explicitly define that it
makes use of --mcpu and --mattr, in a similar spirit like lli, for the
Shark also needs to explicitly set these options during the creation of
the LLVM execution engine.
For some reason shark also needs to include the JIT.h header for the JIT
ctors to be linked in at all.
(MCPU): Explicitly defined for use by LLVM command line parser.
(SharkCompiler::SharkCompiler): Create the JIT using LLVM EngineBuilder
in order to explicitly set MCPU and MAttrs when using LLVM 2.7.
Include llvm/ExecutionEngine/JIT.h for LLVM 2.7 to make sure the
JIT are linked in.
OK to push?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2074 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/zero-dev/attachments/20100219/a946d4dc/attachment.bin
More information about the zero-dev