<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lp_bld_misc.cpp:811:51: error: ‘llvm::AtomicOrdering’ is not a class or namespace"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111262#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lp_bld_misc.cpp:811:51: error: ‘llvm::AtomicOrdering’ is not a class or namespace"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111262">bug 111262</a>
              from <span class="vcard"><a class="email" href="mailto:sroland@vmware.com" title="Roland Scheidegger <sroland@vmware.com>"> <span class="fn">Roland Scheidegger</span></a>
</span></b>
        <pre>Seems like different llvm versions (before 5.0) need different wrappers for
AtomicCmpXchg(). Pretty much the same issue as <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lp_bld_misc.cpp:834:156: error: no matching function for call to ‘llvm::IRBuilder<>::CreateAtomicCmpXchg(llvm::Value*, llvm::Value*, llvm::Value*, llvm::AtomicOrdering, llvm::SynchronizationScope)’"
   href="show_bug.cgi?id=111102">bug 111102</a>.
Although I can't reproduce this bug actually, maybe depends on compiler. (I can
reproduce the other one, for llvm 3.5-3.8 the function parameters are wrong.)
Though I'm wondering if we actually need a mapping function, isn't it possible
to just static cast the c enum to the class enum (as in
(llvm::AtomicOrdering)SuccessOrdering)?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>