<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    New patch that merges the two separate patches together and also
    adds the NoDuplicate attribute to the ConstructAttributeList
    functions in CGCall.cpp<br>
    <br>
    Cheers,<br>
    Marcello<br>
    <br>
    <div class="moz-cite-prefix">On 15/11/13 10:49, Marcello Maggioni
      wrote:<br>
    </div>
    <blockquote cite="mid:5285FC55.902@codeplay.com" type="cite">Hi all,
      <br>
      <br>
      I made a patch that adds the capability of defining the
      NoDuplicate attribute for a function using both the GNU and CXX11
      attribute syntaxes like in:
      <br>
      <br>
      __attribute__((noduplicate))
      <br>
      [[noduplicate]]
      <br>
      <br>
      I also added tests to test out the new addition.
      <br>
      The NoDuplicate attribute is useful to avoid the application of
      compiler optimizations like Loop Unswitching to code containing
      function calls that implement functionality like barriers in
      OpenCL. These functions could fail if such an optimization is
      applied on the code that calls them.
      <br>
      <br>
      I splitted the patch in two files. The "_code" file contains the
      part that adds the functionality to Clang and the "_tests" part
      contains the added tests.
      <br>
      <br>
      Tell me if it is interesting to add this to mainline. If there is
      a need for corrections I'll be happy to make them.
      <br>
      <br>
      Cheers,
      <br>
      Marcello
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>