Chromium Code Reviews

Unified Diff: src/IceCfgNode.cpp

Issue 574133002: Add initial integrated assembler w/ some Xmm ops. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: more cleanup Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceClFlags.h » ('j') | src/IceInstX8632.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfgNode.cpp
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index 57aba6b29ee9e14fb7abe9054ada7c7202c68f0d..ba61363e78716f21ae783b71ffc97572feeb0d97 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -495,7 +495,11 @@ void CfgNode::emit(Cfg *Func) const {
// suppress them.
if (Inst->isRedundantAssign())
continue;
- (*I)->emit(Func);
+ if (Func->UseIntegratedAssembler()) {
+ (*I)->emitIAS(Func);
+ } else {
+ (*I)->emit(Func);
+ }
// Update emitted instruction count, plus fill/spill count for
// Variable operands without a physical register.
if (uint32_t Count = (*I)->getEmitInstCount()) {
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceClFlags.h » ('j') | src/IceInstX8632.cpp » ('J')

Powered by Google App Engine