<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 4/3/2018 9:25 AM, Kevin Neal via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ddee3953eeac4e15acd3e4955d8dc9da@MERCMBX46D.na.SAS.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from rtf -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font size="2" face="Courier New"><span style="font-size:11pt;">
          <div>I'm working on the #pragma STDC FENV_ACCESS ON support,
            specifically</div>
          <div>the support for a strict version of the FP to unsigned
            int conversion.</div>
          <div><font face="Calibri"> </font></div>
          <div>I've got a pass that runs and converts a new intrinsic
            into code that </div>
          <div>uses the FP to signed int conversion code similar to how
            SelectionDAG</div>
          <div>handles this now. Except that SelectionDAG will let the
            target handle</div>
          <div>it if the target says it will.</div>
          <div> </div>
          <div>How do I, from an "optimization" pass, query the target
            to see if it</div>
          <div>already has a better way of handling exactly this case? I
            grepped around</div>
          <div>and I didn't see anything in a pass that looked like what
            I need.</div>
        </span></font></blockquote>
    <br>
    TargetTransformInfo is probably what you're looking for.<br>
    <br>
    -Eli<br>
    <pre class="moz-signature" cols="72">-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
  </body>
</html>