[Beignet] [PATCH] output more detail of GEN IR for workgroup op

Guo, Yejun yejun.guo at intel.com
Tue Dec 20 07:35:49 UTC 2016


Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
 backend/src/ir/instruction.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index 0687dbf..12ffbdb 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -1918,6 +1918,8 @@ namespace ir {
 
       out << " %" << this->getDst(fn, 0);
       out << " %" << this->getSrc(fn, 0);
+      out << " %" << this->getSrc(fn, 1);
+      out << " %" << this->getSrc(fn, 2);
 
       if (this->workGroupOp == WORKGROUP_OP_BROADCAST) {
         do {
@@ -1942,7 +1944,7 @@ namespace ir {
         } while(0);
       }
 
-      out << "TheadID Map at SLM: " << this->slmAddr;
+      out << "(TheadID Map at SLM: " << this->slmAddr << ")";
     }
 
     INLINE void SubGroupInstruction::out(std::ostream &out, const Function &fn) const {
-- 
1.9.1



More information about the Beignet mailing list