[cfe-dev] Communication between Clang Sema and the Clang Codegen...

Umesh Kalappa via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 2 06:20:02 PDT 2017


Hi All,

What we are trying is that, we change the IdentifierInfo  of the
NamedDecl instance from the  Sema::HandleDeclarator and we need to
communicate changed info like "foo" changed "bar" to the IR builder
(CodeGen), any inputs /suggestions for same?

~Umesh

On Fri, Jun 2, 2017 at 6:30 PM, Umesh Kalappa <umesh.kalappa0 at gmail.com> wrote:
> Hi All,
>
> My bad for not been specific in question .
>
> Do we have anyway to access the CodeGenModule instance from any Sema method ???
>
> Thank you
> ~Umesh
>
>
> On Tue, May 30, 2017 at 3:48 PM, Umesh Kalappa <umesh.kalappa0 at gmail.com> wrote:
>> Hi All,
>>
>> We have populated  info  in the Clang Sema i.e class Sema
>> (include/clang/Sema/Sema.h)  and like to propagate the same to Clang
>> Codegen .
>>
>> Currently we are propagating through ASTContext ,where we have
>> duplicating  fields info  and operation in the Sema and ASTContext .
>>
>> Any better way of doing the same ?
>>
>> Thank you
>> ~Umesh



More information about the cfe-dev mailing list