OSDN Git Service

Fix assembler for alloca of multiple elements in non-zero addr space
authorYaxun Liu <Yaxun.Liu@amd.com>
Sat, 14 Oct 2017 03:23:18 +0000 (03:23 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Sat, 14 Oct 2017 03:23:18 +0000 (03:23 +0000)
commit7581146f5703cb4428d7be14c2bce8ba01e06289
tree17b1586b70eccf14d0eb4cf6dfd7bef38d611f13
parenta1b8a235837c5a62ee2c33e987a9820bd7a01bb5
Fix assembler for alloca of multiple elements in non-zero addr space

Currently llvm assembler emits parsing error for valid IR assembly

alloca i32, i32 9, addrspace(5)
when alloca addr space is 5.

This patch fixes that.

Differential Revision: https://reviews.llvm.org/D38713

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315791 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/alloca-addrspace-elems.ll [new file with mode: 0644]