[LLVMdev] Bug in Language Reference? %0 versus %1 as starting index.

Mikael Lyngvig mikael at lyngvig.org
Tue Nov 26 17:46:01 PST 2013


Thanks.  I am submitting a tiny patch to correct the Language Reference in
a second.


-- Mikael


2013/11/27 Tom Stellard <tom at stellard.net>

> On Wed, Nov 27, 2013 at 02:02:53AM +0100, Mikael Lyngvig wrote:
> > The language reference states that local temporaries begin with index 0,
> > but if I try that on my not-entirely-up-to-date v3.4 llc (it is like a
> week
> > old), I get an error "instruction expected to be numbered '%1'".
> >
>
> If you don't label the entry block, then you will get this error.  I
> think it would be worth mentioning this in the language reference, it took
> me a
> while to figure it out.
>
> -Tom
>
> > Also, quite a few examples in the LR uses %0 as a local identifier.
> >
> > Should I fix those or is it a problem in llc?
> >
> >
> > -- Mikael
>
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131127/8b207b01/attachment.html>


More information about the llvm-dev mailing list