[llvm-dev] New register class and patterns

Rail Shafigulin via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 5 12:39:46 PST 2016


On Fri, Feb 5, 2016 at 12:03 PM, Matt Arsenault <arsenm2 at gmail.com> wrote:

>
> On Feb 5, 2016, at 12:00, Rail Shafigulin <rail at esenciatech.com> wrote:
>
> Is this something that is always done by LLVM? Is it me who is telling to
> LLVM to do it? I'd appreciate if you could point out where in the code this
> is happening.
>
>
> You should add a let Defs = [FLAGREGISTERNAME] on the defining instruction
>
> -Matt
>

Well, as it turns out it is already done :(

let Defs = [SR], hasSideEffects = 1 in {
  let Itinerary = l_sfeq in
    defm SFEQ  : SF<0x0, "l.sfeq",  Escala_CC_EQ>;
.....
}

And I'm still getting an error:


-- 
Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160205/4d233dcf/attachment.html>


More information about the llvm-dev mailing list