[LLVMdev] Bug in Language Reference? %0 versus %1 as starting index.
Tom Stellard
tom at stellard.net
Tue Nov 26 17:24:39 PST 2013
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
More information about the llvm-dev
mailing list