Let llvm.invariant.group.barrier accepts pointer to any address space
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 16 Nov 2017 16:32:16 +0000 (16:32 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 16 Nov 2017 16:32:16 +0000 (16:32 +0000)
commit407ca36b2775322d352562a993bedb3a07d56ed6
treed698009335ce4ef45ca6bab3a9e278f427c83f74
parente9eb7f0cb815641827fa3d031c38190c10900c14
Let llvm.invariant.group.barrier accepts pointer to any address space

llvm.invariant.group.barrier may accept pointers to arbitrary address space.

This patch let it accept pointers to i8 in any address space and returns
pointer to i8 in the same address space.

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

llvm-svn: 318413
llvm/docs/LangRef.rst
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/Intrinsics.td
llvm/test/Analysis/MemorySSA/invariant-groups.ll
llvm/test/CodeGen/AMDGPU/promote-alloca-invariant-markers.ll
llvm/test/Other/invariant.group.barrier.ll
llvm/test/Transforms/CodeGenPrepare/invariant.group.ll
llvm/test/Transforms/GVN/invariant.group.ll