Hi All,
I need to implement something like a variable for each basic block
How to implement lookup table in LLVM , I think ValueSymbolTable is closest
one but how could I do that by it
--
* Rasha Salah Omar
Msc Student at E-JUST
Demonestrator at Faculty of Computers and Informatics
Benha University*
* e-mail: rasha.omar at ejust.edu.eg*
P* Please consider the environment before printing this email.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130814/7b4d5b60/attachment.html>
Hi Rasha,> I need to implement something like a variable for each basic block > How to implement lookup table in LLVM , I think ValueSymbolTable is closest > one but how could I do that by itThe most direct solution is using normal C++ containers. std::map<BasicBlock*, AllocaInst*> or std::map<BasicBlock*, GlobalValue*> for example (depending on what kind of variable you want). LLVM has some of its own implementations with slightly different performance characteristics, but there's no reason to learn about those until you decide you actually need them. Cheers. Tim.