[Beignet] [PATCH 4/7] add special register constoffst expressing curbe offset
Homer Hsing
homer.xing at intel.com
Wed May 1 18:00:29 PDT 2013
Version 3.
Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
backend/src/ir/profile.cpp | 2 ++
backend/src/ir/profile.hpp | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/backend/src/ir/profile.cpp b/backend/src/ir/profile.cpp
index 61531be..c1dc650 100644
--- a/backend/src/ir/profile.cpp
+++ b/backend/src/ir/profile.cpp
@@ -40,6 +40,7 @@ namespace ir {
"stack_pointer",
"block_ip",
"barrier_id", "thread_number",
+ "const_curbe_offset",
};
#if GBE_DEBUG
@@ -74,6 +75,7 @@ namespace ir {
DECL_NEW_REG(FAMILY_WORD, blockip);
DECL_NEW_REG(FAMILY_DWORD, barrierid);
DECL_NEW_REG(FAMILY_DWORD, threadn);
+ DECL_NEW_REG(FAMILY_DWORD, constoffst);
}
#undef DECL_NEW_REG
diff --git a/backend/src/ir/profile.hpp b/backend/src/ir/profile.hpp
index 12050ff..32dd149 100644
--- a/backend/src/ir/profile.hpp
+++ b/backend/src/ir/profile.hpp
@@ -63,7 +63,8 @@ namespace ir {
static const Register blockip = Register(19); // blockip
static const Register barrierid = Register(20);// barrierid
static const Register threadn = Register(21); // number of threads
- static const uint32_t regNum = 22; // number of special registers
+ static const Register constoffst = Register(22); // offset of global constant array's curbe
+ static const uint32_t regNum = 23; // number of special registers
extern const char *specialRegMean[]; // special register name.
} /* namespace ocl */
--
1.8.1.2
More information about the Beignet
mailing list