Lib/Target/Pretty.cpp
/**
 * Pretty printer for Target instructions
 *
 * Returns a string representation of an instruction.
 */
Pretty printer for Target instructions
Returns a string representation of an instruction.
Pretty printer for Target instructions Returns a string representation of an instruction .
std::string pretty(Instr const &instr, bool with_comments) {
  std::string buf;
  if (with_comments && !instr.header().empty()) {
    buf << "\n# " << instr.header() << "\n";
  }
  buf << pretty_instr(instr);
  if (with_comments && !instr.comment().empty()) {
    buf << "  # " << instr.comment();
  }
  buf << "\n";
  return buf;
}
std :: string pretty ( Instr const & instr , bool with_comments ) { std :: string buf ; if ( with_comments && ! instr . header ( ) . empty ( ) ) { buf << " \n " << instr . header ( ) << " \n " ; } buf << pretty_instr ( instr ) ; if ( with_comments && ! instr . comment ( ) . empty ( ) ) { buf << " " << instr . comment ( ) ; } buf << " \n " ; return buf ; }
Pretty printer for Target instructions
 Returns a string representation of an instruction.
Pretty printer for Target instructions Returns a string representation of an instruction .