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

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Wed May 25 17:42:20 PDT 2016

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:

    @<GlobalVarName> = [Linkage] [Visibility] [DLLStorageClass]
[ThreadLocal] ...



More information about the llvm-dev mailing list