[cfe-dev] Is ModuleBuilder useful to anyone?

DeadMG wolfeinstein at gmail.com
Tue Dec 30 06:19:23 PST 2014


Wait, ModuleBuilder? I was getting confused with CodeGenModule. I have no
use for the ModuleBuilder class.

On 30 December 2014 at 14:12, Yaron Keren <yaron.keren at gmail.com> wrote:

> I am trying to eliminate the consumer of consumer pattern we have where
> BackendConsumer is mostly a thin layer around a ModuleBuilder it creates
> for itself. Most of the additional functionality being in
> HandleTranslationUnit calling EmitBackendOutput to create bc, ll or object
> files. Most the input aguments of BackendConsumer are needed for
> CreateLLVMCodeGen only.
>
> EmitBackendOutput already supports a "Backend_EmitNothing" action. If we
> merge BackendConsumer functionality into ModuleBuilder and
> eliminate BackendConsumer , I think that every existing ModuleBuilder could
> continue using "new" ModuleBuilder with Action = Backend_EmitNothing and OS
> = nullptr just the same.
>
> Mark, would that work for you?
>
>
>
> 2014-12-30 15:18 GMT+02:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
>
>> On 30 December 2014 at 06:34, Yaron Keren <yaron.keren at gmail.com> wrote:
>> > True, I checked now and cling uses the ModuleBuilder. It can't switch to
>> > BackendConsumer as it's still using the old JIT.
>>
>> The old JIT has been removed, so that should not hold a decision on
>> what to do on trunk.
>>
>> Cheers,
>> Rafael
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141230/514604d2/attachment.html>


More information about the cfe-dev mailing list