Lib/Target/instr/Instr.cpp
/**
 * Returns a string representation of an instruction.
 */
Returns a string representation of an instruction.
Returns a string representation of an instruction .
std::string Instr::mnemonic(bool with_comments, std::string const &prefix) const {
  std::string ret;
  if (with_comments) {
    ret << emit_header();
  }
  std::string out = pretty_instr(*this);
  ret << prefix << out;
  if (with_comments) {
    ret << emit_comment((int) (out.size() + prefix.size()));
  }
  return ret;
}
std :: string Instr :: mnemonic ( bool with_comments , std :: string const & prefix ) const { std :: string ret ; if ( with_comments ) { ret << emit_header ( ) ; } std :: string out = pretty_instr ( * this ) ; ret << prefix << out ; if ( with_comments ) { ret << emit_comment ( ( int ) ( out . size ( ) + prefix . size ( ) ) ) ; } return ret ; }
Returns a string representation of an instruction.
Returns a string representation of an instruction .