[llvm] r223268 - [Hexagon] Converting member InstrDesc to static variable.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jan 23 07:38:05 PST 2015


On 8 December 2014 at 13:56, Rafael EspĂ­ndola <rafael.espindola at gmail.com>
wrote:

> On 8 December 2014 at 11:20, Colin LeMahieu <colinl at codeaurora.org> wrote:
> > That's a good question it's entirely possible this code has never been
> used in the fashion you've described.
> >
> > From what I've seen of the usage of this variable it only accesses
> TSFlags which I assumed would be the same across contexts.  This variable
> was created in lieu of calling createHexagonMCInstrInfo every time we need
> to access TSFlags at the MC level.
>
> Not sure. What do other backends do?
>

cc Eric. He might know.

Context: the issue is the static std::unique_ptr <MCInstrInfo const> MCII;
in HexagonMCInst.h, which is problematic if there are two independent users
of llvm.

Cheers,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/3777e93b/attachment.html>


More information about the llvm-commits mailing list