<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=utf-8">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Interesting, I did not know that.  In light of this new information, perhaps -emit-mlir does fit better.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black;background:white">-- Alexis</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Mehdi AMINI <joker.eph@gmail.com><br>
<b>Date: </b>Thursday, September 9, 2021 at 10:01 AM<br>
<b>To: </b>"Perry-Holby, Alexis" <aperry@lanl.gov><br>
<b>Cc: </b>Andrzej Warzynski <andrzej.warzynski@arm.com>, via flang-dev <flang-dev@lists.llvm.org><br>
<b>Subject: </b>Re: [flang-dev] [EXTERNAL] [LLVM Flang] Code gen option: `-emit-fir` vs `-emit-mlir`<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Sep 9, 2021 at 8:22 AM Perry-Holby, Alexis via flang-dev <<a href="mailto:flang-dev@lists.llvm.org">flang-dev@lists.llvm.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hi Andrzej,<br>
<br>
For my two cents, I have a mild preference for -emit-fir.  When I see -emit-mlir I think it implies that only the standard dialect will be present (i.e. no fir in there).<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">FYI: the standard dialect is shrinking and the goal is for it to disappear entirely.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">  That could just be me though.  Like I said, mine is a mild preference and switching wouldn't cause me much issue.<br>
<br>
-- Alexis<br>
<br>
<br>
On 9/9/21, 8:03 AM, "flang-dev on behalf of Andrzej Warzynski via flang-dev" <<a href="mailto:flang-dev-bounces@lists.llvm.org" target="_blank">flang-dev-bounces@lists.llvm.org</a> on behalf of
<a href="mailto:flang-dev@lists.llvm.org" target="_blank">flang-dev@lists.llvm.org</a>> wrote:<br>
<br>
    Hello,<br>
<br>
    We have recently started working on adding code-gen support in the Flang <br>
    driver. Our first PR is available on GitHub [1] and implements the <br>
    "parse tree --> MLIR" step.<br>
<br>
    What should be the corresponding option in `flang-new`? `bbc` uses <br>
    `-emit-fir` [2], but `-emit-mlir` would probably be more accurate. <br>
    Indeed, currently the generated output uses multiple MLIR dialects <br>
    (rather than just FIR).<br>
<br>
    Please comment either here or on GitHub.<br>
<br>
    Thank you,<br>
    -Andrzej<br>
<br>
    [1] <a href="https://github.com/flang-compiler/f18-llvm-project/pull/1008" target="_blank">
https://github.com/flang-compiler/f18-llvm-project/pull/1008</a><br>
    [2] <br>
    <a href="https://github.com/flang-compiler/f18-llvm-project/blob/fir-dev/flang/tools/bbc/bbc.cpp#L87-L90" target="_blank">
https://github.com/flang-compiler/f18-llvm-project/blob/fir-dev/flang/tools/bbc/bbc.cpp#L87-L90</a><br>
    _______________________________________________<br>
    flang-dev mailing list<br>
    <a href="mailto:flang-dev@lists.llvm.org" target="_blank">flang-dev@lists.llvm.org</a><br>
    <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev" target="_blank">
https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev</a><br>
<br>
_______________________________________________<br>
flang-dev mailing list<br>
<a href="mailto:flang-dev@lists.llvm.org" target="_blank">flang-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>