[cfe-dev] ASTImporter & CallExpr

Olaf Krzikalla Olaf.Krzikalla at tu-dresden.de
Mon Jun 10 05:09:49 PDT 2013


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



More information about the cfe-dev mailing list