[llvm-dev] Potential ambiguity in the grammar of LLVM IR assembly

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Wed May 25 18:55:58 PDT 2016


> On May 25, 2016, at 5:42 PM, Tim Northover via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> On 25 May 2016 at 16:10, Robin Eklind via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> declare void @foo() unnamed_addr
>> global i32 42
> 
> Doesn't a global have to be named? The syntax in the IR reference
> doesn't make it optional:

To be fair, I believe it has been the case only for 2 weeks now (implemented in r269096).

-- 
Mehdi


> 
>    @<GlobalVarName> = [Linkage] [Visibility] [DLLStorageClass]
> [ThreadLocal] ...
> 
> Cheers.
> 
> Tim.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list