[LLVMdev] [PROPOSAL] LLVM multi-module support

dag at cray.com dag at cray.com
Thu Jul 26 08:16:07 PDT 2012


"Dmitry N. Mikushin" <maemarcus at gmail.com> writes:

> Proposal made by Tobias is very elegant, but it seems to be addressing
> the case when host and sub-architectures' code exist in the same time.

I don't know why that would have to be the case.  Couldn't your
accelerator backend simply read in the proposed IR string and
optimize/codegen it?

> May I kindly point out that to our experience the really efficient
> deeply specialized sub-architectures code may simply not exist at
> compile time, while the generic baseline host code always can.

As I mentioned earlier, I am more concerned about the case where there
is no accelerator compiler executed at runtime.  All the code for the
host and accelerate needs to be available in native format at run time.
A string representation in the object file doesn't allow that.

                                   -Dave



More information about the llvm-dev mailing list