[cfe-dev] ASTImporter & CallExpr

Vassil Vassilev vvasilev at cern.ch
Mon Jun 10 12:11:34 PDT 2013


Hi Olaf,
   Thanks for the pointers! I am using your StmtClone now and it seems 
to do what I want it to do :)
Vassil
On 6/10/13 2:09 PM, Olaf Krzikalla wrote:
> Hi,
>
> Am 08.06.2013 19:02, schrieb Vassil Vassilev:
>> By deep-copy I actually meant Stmt cloning. Eg: I have f(x) and I am
>> building f'(x), as a first derivative of f(x). I need to differentiate
>> certain kinds of stmts the rest I just need to clone in the new function
>> body.
> Maybe you should derive from TreeTransform. In the subclass 
> alwaysRebuild must return true, if you want to clone the AST. For more 
> information you can also take a look on the slides of my talk at the 
> recent Euro LLVM.
>
> Best Olaf
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list