5 #include "src/compiler/opcodes.h" 10 #include "src/base/macros.h" 18 char const*
const kMnemonics[] = {
19 #define DECLARE_MNEMONIC(x) #x, 20 ALL_OP_LIST(DECLARE_MNEMONIC)
21 #undef DECLARE_MNEMONIC 28 char const* IrOpcode::Mnemonic(
Value value) {
29 size_t const n = std::min<size_t>(value, arraysize(kMnemonics) - 1);
34 std::ostream& operator<<(std::ostream& os, IrOpcode::Value opcode) {
35 return os << IrOpcode::Mnemonic(opcode);