[LLVMdev] CFG Customization
John Criswell
jtcriswel at gmail.com
Thu Mar 12 07:12:49 PDT 2015
Dear Thomas,
If you can describe more clearly what you are trying to accomplish, it
would help people give better advice. As I don't have a clear idea of
what you're trying to do, I can't explain the best way to do it.
Regards,
John Criswell
On 3/12/15 12:41 PM, rubiano wrote:
> Hi all,
>
> I'm discovering LLVM and I want to build a customized CFG with
> customized nodes (here BasicBlocks).
> Simply, the purpose is to enrich CFG with some other informations.
> What is the best way to do that ?
>
> Please, tell me if I'm wrong (I'm not familiar enough with c++) but I
> understand that :
> - CFG is a GraphTraits<BasicBlock*>
> - it's not allowed to inherit from BasicBlock (never seen in the project)
>
> Maybe it's better to create a new class (like MachineBasicBlock) that
> contains a pointer to its BasicBlock ?
> But this option requires to rewrite similar lines of code, right ?
>
> Thanks,
>
> Thomas
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
http://www.cs.rochester.edu/u/criswell
More information about the llvm-dev
mailing list