[IR][Verifier] Relax restriction on alloca address spaces
authorAndy Wingo <wingo@igalia.com>
Fri, 23 Apr 2021 07:24:17 +0000 (09:24 +0200)
committerAndy Wingo <wingo@igalia.com>
Fri, 21 May 2021 09:52:45 +0000 (11:52 +0200)
commit81bc732816107f6aff4fd61980f7b03cc92332b5
tree7c6d8f9881be959fd81d83febba95da7f4a83b8d
parenta1a429dc1d95112bc1122432d9b632512e1e636e
[IR][Verifier] Relax restriction on alloca address spaces

In the WebAssembly target, we would like to allow alloca in two address
spaces.  The alloca instruction already has an address space argument,
but the verifier asserts that the address space of an alloca is the
default alloca address space from the datalayout.  This patch removes
this restriction.  Targets that would like to impose additional
restrictions should do so via target-specific verification passes.

Differential Revision: https://reviews.llvm.org/D101045
llvm/docs/LangRef.rst
llvm/lib/IR/Verifier.cpp
llvm/test/Assembler/datalayout-alloca-addrspace-mismatch-0.ll [deleted file]
llvm/test/Assembler/datalayout-alloca-addrspace-mismatch-1.ll [deleted file]
llvm/test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll [deleted file]
llvm/test/Assembler/drop-debug-info-nonzero-alloca.ll
llvm/test/CodeGen/AMDGPU/invalid-alloca.ll [deleted file]