<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 1, 2019 at 1:41 PM hameeza ahmed via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div>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...</div><div>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..</div><div><br></div><div>How to do this?</div><div>Please help...</div></div></blockquote><div><br></div><div>I assume that your  "function defined in a header"  are marked as inline? There is no semantic concept of "header" in C/C++: moving code from a .c to a .h (or renaming a file) does not change anything to what the compiler will do with it.</div><div><br></div><div>Depending on the language (GNU-C89, C99 vs C++, see here: <a href="https://en.wikipedia.org/wiki/Inline_function">https://en.wikipedia.org/wiki/Inline_function</a> ), the semantic of inline functions is different. </div><div>If you can provide an minimal example it would be easier.</div><div><br></div><div>Best,</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div></div></div></div></div>