What do you mean by mapping to integers? On 5 June 2013 22:32, Alexandru Ionut Diaconescu < alexandruionutdiaconescu at gmail.com> wrote:> Why you don't map the basic blocks to integers and apply algorithms on the > integer graph? And construct your new CFG. > > > On Wed, Jun 5, 2013 at 10:27 PM, Rasha Omar <rasha.sala7 at gmail.com> wrote: > >> How could I keep the function CFG in another memory space. >> I want to be able to change one of the old CFG , but keeping the original >> one in another space. >> Thanks >> >> -- >> *Rasha Salah Omar >> Msc Student at E-JUST >> Demonestrator at Faculty of Computers and Informatics >> Benha University >> * >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> > > > -- > Best regards, > Alexandru Ionut Diaconescu >-- *Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computers and Informatics Benha University * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130605/b94ed7e0/attachment.html>
Map every basic block from the CFG to a set of integers. The successors from the CFG can be used to make the edges in your simplified graph. The pair (Callee,Caller) can link the CFG-s between them in a larger CFG-like. On Wed, Jun 5, 2013 at 11:03 PM, Rasha Omar <rasha.sala7 at gmail.com> wrote:> What do you mean by mapping to integers? > > > On 5 June 2013 22:32, Alexandru Ionut Diaconescu < > alexandruionutdiaconescu at gmail.com> wrote: > >> Why you don't map the basic blocks to integers and apply algorithms on >> the integer graph? And construct your new CFG. >> >> >> On Wed, Jun 5, 2013 at 10:27 PM, Rasha Omar <rasha.sala7 at gmail.com>wrote: >> >>> How could I keep the function CFG in another memory space. >>> I want to be able to change one of the old CFG , but keeping the >>> original one in another space. >>> Thanks >>> >>> -- >>> *Rasha Salah Omar >>> Msc Student at E-JUST >>> Demonestrator at Faculty of Computers and Informatics >>> Benha University >>> * >>> >>> _______________________________________________ >>> LLVM Developers mailing list >>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>> >>> >> >> >> -- >> Best regards, >> Alexandru Ionut Diaconescu >> > > > > -- > *Rasha Salah Omar > Msc Student at E-JUST > Demonestrator at Faculty of Computers and Informatics > Benha University > * >-- Best regards, Alexandru Ionut Diaconescu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130606/51168db2/attachment.html>
I think I understood that, but what I mean is what is the function responsible to do mapping is it MapValue() in ValueMapper.h? Thanks for your help On 6 June 2013 09:54, Alexandru Ionut Diaconescu < alexandruionutdiaconescu at gmail.com> wrote:> Map every basic block from the CFG to a set of integers. The successors > from the CFG can be used to make the edges in your simplified graph. The > pair (Callee,Caller) can link the CFG-s between them in a larger CFG-like. > > > On Wed, Jun 5, 2013 at 11:03 PM, Rasha Omar <rasha.sala7 at gmail.com> wrote: > >> What do you mean by mapping to integers? >> >> >> On 5 June 2013 22:32, Alexandru Ionut Diaconescu < >> alexandruionutdiaconescu at gmail.com> wrote: >> >>> Why you don't map the basic blocks to integers and apply algorithms on >>> the integer graph? And construct your new CFG. >>> >>> >>> On Wed, Jun 5, 2013 at 10:27 PM, Rasha Omar <rasha.sala7 at gmail.com>wrote: >>> >>>> How could I keep the function CFG in another memory space. >>>> I want to be able to change one of the old CFG , but keeping the >>>> original one in another space. >>>> Thanks >>>> >>>> -- >>>> *Rasha Salah Omar >>>> Msc Student at E-JUST >>>> Demonestrator at Faculty of Computers and Informatics >>>> Benha University >>>> * >>>> >>>> _______________________________________________ >>>> LLVM Developers mailing list >>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>>> >>>> >>> >>> >>> -- >>> Best regards, >>> Alexandru Ionut Diaconescu >>> >> >> >> >> -- >> *Rasha Salah Omar >> Msc Student at E-JUST >> Demonestrator at Faculty of Computers and Informatics >> Benha University >> * >> > > > > -- > Best regards, > Alexandru Ionut Diaconescu >-- *Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computers and Informatics Benha University * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130606/fe6bcb84/attachment.html>