[LLVMdev] Generating New Functions

Abhinash Jain omnia at mailinator.com
Mon Oct 14 12:50:04 PDT 2013


>>You should consult the doxygen documentation on llvm::Function to
>>determine how to create new functions.  For most LLVM objects, there is
>>either a new method or a static Create/create method that will create
>>the objects.  The doxygen docs contain the list of methods for each
>>class and will usually have the information for which you're looking:

>>http://llvm.org/doxygen/classllvm_1_1Function.html

>>As for copying instructions into a new function, look at the functions
>>in lib/Transforms/Utils/CloneFunction.cpp (note that the pathname of the
>>file may have moved; this is its location in LLVM 3.2). 

Thnx for ur reply,
I already visited this links and cpp file, but things are not helping me the
way I wanted to.
Can you be a bit specific on it?



--
View this message in context: http://llvm.1065342.n5.nabble.com/Generating-New-Functions-tp62038p62060.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.



More information about the llvm-dev mailing list