[Beignet] [PATCH V2] should convert from llvm address to GEN address space to compare.
Yang, Rong R
rong.r.yang at intel.com
Mon Jan 4 22:21:08 PST 2016
LGTM, pushed.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> rong.r.yang at intel.com
> Sent: Wednesday, December 30, 2015 15:32
> To: beignet at lists.freedesktop.org
> Cc: Luo, Xionghu
> Subject: [Beignet] [PATCH V2] should convert from llvm address to GEN
> address space to compare.
>
> From: Luo Xionghu <xionghu.luo at intel.com>
>
> v2: correct email address.
> Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
> ---
> backend/src/llvm/llvm_gen_backend.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/backend/src/llvm/llvm_gen_backend.cpp
> b/backend/src/llvm/llvm_gen_backend.cpp
> index f2d3704..886b6f3 100644
> --- a/backend/src/llvm/llvm_gen_backend.cpp
> +++ b/backend/src/llvm/llvm_gen_backend.cpp
> @@ -1508,7 +1508,7 @@ namespace gbe
> const GlobalVariable &v = *i;
> if(!v.isConstantUsed()) continue;
> const char *name = v.getName().data();
> - unsigned addrSpace = v.getType()->getAddressSpace();
> + ir::AddressSpace addrSpace = addressSpaceLLVMToGen(v.getType()-
> >getAddressSpace());
> if(addrSpace == ir::AddressSpace::MEM_CONSTANT || v.isConstant()) {
> GBE_ASSERT(v.hasInitializer());
> const Constant *c = v.getInitializer();
> --
> 1.9.1
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list