[llvm-dev] LLVM IR linking separate function definitions in header files in single IR (original) (raw)

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 2 09:27:21 PST 2019


Hi Ahmed, I don't know if I understood you problem properly but can't you just compile the projects separately in bitcode and link them using llvm-link? Can you create a GitHub repo with a similar struct so it'd be easier to help?

Thanks

On Tue, Jan 1, 2019, 21:41 hameeza ahmed via llvm-dev < llvm-dev at lists.llvm.org wrote:

Hello, I have different codes with separate files with functions implemented. I want to view all function definitions/ instructions in single IR. I am able to do this by llvm-link for codes which have definition implemented in .c files... But there are some codes which have definitions instructions in header files. These functions are called from .c file. I want to have a single IR with all the definitions of the called functions that are implemented in header files..

How to do this? Please help... Thank You Regards


LLVM Developers mailing list llvm-dev at lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190102/7fc6ac45/attachment.html>



More information about the llvm-dev mailing list