[Beignet] [PATCH V2] output more detail of GEN IR for workgroup op
Guo, Yejun
yejun.guo at intel.com
Wed Dec 21 10:32:49 UTC 2016
v2: the src number changes for different ops
Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
backend/src/ir/instruction.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index 0687dbf..f0c3957 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -1917,7 +1917,8 @@ namespace ir {
}
out << " %" << this->getDst(fn, 0);
- out << " %" << this->getSrc(fn, 0);
+ for (uint32_t i = 0; i < this->getSrcNum(); ++i)
+ out << " %" << this->getSrc(fn, i);
if (this->workGroupOp == WORKGROUP_OP_BROADCAST) {
do {
@@ -1942,7 +1943,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