<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Handwriting";
        panose-1:3 1 1 1 1 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am writing a tool within an external project, and I need to use an instance of the new pass manager to invoke LLVM analyses. It used to be possible to create an initialized instance of the legacy::FunctionPassManager by providing the
 Module to the constructor. I was unable to find a corresponding way to initialize an instance of the new FunctionAnalysisManager. When I tried to construct an instance of FunctionAnalysisManager and use it, none of the passes were registered and I found myself
 having to register every single LLVM pass, even if it is not directly invoked by my tool (which is not feasible). What is the correct way to do this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">-Adel Ejjeh<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Lucida Handwriting";color:#1F3864">Adel Ejjeh</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:black">PhD Candidate | Computer Science</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:black">University of Illinois at Urbana Champaign</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:black">Email: <a href="mailto:aejjeh@illinois.edu" title="mailto:aejjeh@illinois.edu"><span style="color:#0563C1">aejjeh@illinois.edu</span></a> | <a href="mailto:adel.ejjeh@gmail.com"><span style="color:#0563C1">adel.ejjeh@gmail.com</span></a></span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:black">Zoom: <a href="https://illinois.zoom.us/my/aejjeh" title="https://illinois.zoom.us/my/aejjeh"><span style="color:#0563C1">https://illinois.zoom.us/my/aejjeh</span></a></span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>