Example #1
0
 ~TraceInfo()
 {
     if (false)
     {
         dumpVector(broadMergeTimes, "broadMergeTimes");
         dumpVector(updateNeighborMergeScoreTimes,
                    "updateNeighborMergeScoreTime");
     }
 }
void ForStatement::dump(std::ostream &out) const {
  out << "for (";
  dumpVector(out, m_init);
  out << "; ";
  dumpVector(out, m_cond);
  out << "; ";
  dumpVector(out, m_next);
  out << ") {";
  if (m_body) m_body->dump(out);
  out << "}\n";
}
Example #3
0
void ForStatement::dump() const {
  printf("for (");
  dumpVector(m_init, ", ");
  printf("; ");
  dumpVector(m_cond, ", ");
  printf("; ");
  dumpVector(m_next, ", ");
  printf(") {");
  if (m_body) m_body->dump();
  printf("}");

}
Example #4
0
void TryStatement::dump(std::ostream &out) const {
  out << "try {\n";
  m_body->dump(out);
  out << "}";
  dumpVector(out, m_catches, "");
  out << "\n";
}
void SwitchStatement::dump(std::ostream &out) const {
  out << "switch (";
  m_source->dump(out);
  out << ") {";
  if (m_cases.empty()) {
    out << "\n";
  } else {
    dumpVector(out, m_cases, "");
  }
  out << "}\n";
}
Example #6
0
//------------------------------------------------------------------------------
void dumpCoarseningMap(const CoarseningMap &cMap) {
  llvm::errs() << "------------------------------\n";
  for (auto iter : cMap) {
    const InstVector &entry = iter.second;
    const Instruction *inst = iter.first;
    llvm::errs() << "Key: ";
    inst->dump();
    llvm::errs() << " ";
    dumpVector(entry);
    llvm::errs() << "\n";
  }
  llvm::errs() << "------------------------------\n";
}
Example #7
0
void EchoStatement::dump(std::ostream &out) const {
  out << "echo ";
  dumpVector(out, m_args);
  out << ";\n";
}
void UnsetStatement::dump(std::ostream &out) const {
  out << "unset(";
  dumpVector(out, m_vals);
  out << ");\n";
}
Example #9
0
void ArrayExpression::dump(std::ostream &out) const {
  out << "array(";
  dumpVector(out, m_elems);
  out << ")";
}
Example #10
0
void TryStatement::dump() const {
  printf("try {");
  m_body->dump();
  printf("}");
  dumpVector(m_catches, " ");
}
void FunctionCallExpression::dumpParams(std::ostream &out) const {
  out << "(";
  dumpVector(out, m_params);
  out << ")";
}
Example #12
0
void EchoStatement::dump() const {
  printf("echo(");
  dumpVector(m_args, ", ");
  printf(");");
}