[Beignet] [PATCH V2] should convert from llvm address to GEN address space to compare.

rong.r.yang at intel.com rong.r.yang at intel.com
Tue Dec 29 23:31:33 PST 2015


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



More information about the Beignet mailing list