<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear Simone,<br>
      <br>
      My guess is that the address sanitizer pass is running before your
      pass.  You should use the -Xclang -debug-pass=Structure argument
      to see the order in which passes are run.<br>
      <br>
      Regards,<br>
      <br>
      John Criswell<br>
      <br>
      On 6/23/14, 6:52 PM, Simone Atzeni wrote:<br>
    </div>
    <blockquote
      cite="mid:37D0CDDA-EF17-4A7D-A578-47EDA272B433@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Maybe the question is wrong.
      <div><br>
      </div>
      <div>I have my own pass (a RegionPass), what I want to do is to
        add some metadata in the IR and then have this metadata
        available for another pass (a Function Pass already existing in
        Transform/Instrumentation, called AddressSanitizer) and use
        these metadata inside it.</div>
      <div><br>
      </div>
      <div>So I was thinking that maybe I have to call first my pass and
        then the second pass.</div>
      <div>However, the second pass is inside the library
        libLLVMInstrumentation.a and to call it there is a clang option
        -fsanitize=address.</div>
      <div><br>
      </div>
      <div>I tried these command:</div>
      <div><br>
      </div>
      <div>clang -fsanitize=address -g -O0 -mllvm -polly -S -emit-llvm
        -Xclang -load -Xclang
        $HOME/bigdata/compilers/llvm35/tools/polly/Debug+Asserts/lib/LLVMPolly.so
        -I$HOME/bigdata/runtime/libomp_oss/exports/common.deb/include
        -L$HOME/bigdata/runtime/libomp_oss/exports/lin_32e.deb/lib
        -liomp5 myprogram.c</div>
      <div><br>
      </div>
      <div>but the AddressSanitizer pass does not see any new metadata,
        do you have any idea where could be the problem?</div>
      <div style="font-family: Calibri, sans-serif; font-size: 13px;"><br>
      </div>
      <div style="font-family: Calibri, sans-serif; font-size: 13px;">Thanks.</div>
      <div style="font-family: Calibri, sans-serif; font-size: 13px;">Best,</div>
      <div style="font-family: Calibri, sans-serif; font-size: 13px;">Simone</div>
      <div><br>
        <div>
          <div>On Jun 23, 2014, at 15:12, Simone Atzeni <<a
              moz-do-not-send="true" href="mailto:simone.at@gmail.com">simone.at@gmail.com</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">Hi,<br>
            <br>
            as in the subject, is it possible to call on of the analysis
            pass present in the LLVM (lib/ folder) within a tool pass
            (tools/ folder)?<br>
            <br>
            Thanks.<br>
            Best,<br>
            Simone</blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>