<html><head></head><body><div class="ydpc18a8691yahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:10px;"><div><div>Forgot one question to the mail and a correction below:</div><div><br></div><div class="ydpc18a8691signature"><div style="font-family:verdana, helvetica, sans-serif;font-size:10px;"><div dir="ltr" data-setdir="false">When calling runOnFunction for a function in IR is it guaranteed that all other functions in the module are already parsed by the compiler?<br></div><div><br></div><div dir="ltr" data-setdir="false">Thank you,</div><div dir="ltr" data-setdir="false">Iulia<br></div><div><br></div></div></div></div>
        <div><br></div><div><br></div>
        
        </div><div id="ydp859de028yahoo_quoted_8239513189" class="ydp859de028yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, September 10, 2019, 6:56:39 PM GMT+3, Iulia Stirb <iulia_s24@yahoo.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydp859de028yiv3568124642"><div><div class="ydp859de028yiv3568124642ydp6aa84723yahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:10px;"><div><div dir="ltr">Hi all,</div><div dir="ltr"><br></div><div dir="ltr">I would want to know if from the runOnFunction method of a Function pass, other functions in IR, except for the one received as parameter, can be obtained as well, from a call instruction, as follows:</div><div dir="ltr"><br></div><div dir="ltr">Function * F = dyn_cast<Function>(callInst);</div><div dir="ltr"><br></div><div dir="ltr">Or do I need a Module pass to work in IR with multiple functions from input source code? If so, it is accepted to have O(n^3) complexity in a module pass when iterating through each instruction of each basic block of each function in the module.</div><div dir="ltr"><br></div><div dir="ltr">Unrelated to the topic, I would also like to ask if a module object contains the IR for the entire application if the application contains multiple source files?<br></div><div><br></div><div class="ydp859de028yiv3568124642ydp6aa84723signature"><div style="font-family:verdana, helvetica, sans-serif;font-size:10px;"><div dir="ltr">Kind regards,<br></div><div>Iulia È˜TIRB</div><br><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div>
            </div>
        </div></body></html>