Displaying 2 results from an estimated 2 matches for "mybasicblock".
Did you mean:
mcbasicblock
2015 Mar 12
2
[LLVMdev] CFG Customization
...Graph) which is a CFG with a
weight.
In my case, this weight corresponds to the number of heap allocations.
Then I want to add this weight to each node (then basic block) of this
graph.
I think that a CFG is a GraphTraits<BasicBlock*> then I suppose that
this RCG will be
a GraphTraits<MyBasicBlock*>
"MyBasicBlock" can be an object like BasicBlock with a weight.
(inherited or not?)
I think that with this kind of graph it will be easier to detect "non
size increasing"
functions or loops.
My question is : what is the best way to build this graph ?
Thanks again,
Thom...
2015 Mar 12
2
[LLVMdev] CFG Customization
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