Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
MCCodeEmitter.cpp
Go to the documentation of this file.
1//===- MCCodeEmitter.cpp - Instruction Encoding ---------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "llvm/MC/MCInst.h"
13#include <string>
14
15using namespace llvm;
16
18
20
22 std::string Msg;
23 raw_string_ostream OS(Msg);
24 OS << "Unsupported instruction : " << Inst;
25 reportFatalInternalError(Msg.c_str());
26}
27
29 unsigned OpNum) {
30 std::string Msg;
31 raw_string_ostream OS(Msg);
32 OS << "Unsupported instruction operand : \"" << Inst << "\"[" << OpNum << "]";
33 reportFatalInternalError(Msg.c_str());
34}
static void reportUnsupportedOperand(const MCInst &Inst, unsigned OpNum)
static void reportUnsupportedInst(const MCInst &Inst)
virtual ~MCCodeEmitter()
Instances of this class represent a single low-level machine instruction.
Definition MCInst.h:188
A raw_ostream that writes to an std::string.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI void reportFatalInternalError(Error Err)
Report a fatal error that indicates a bug in LLVM.
Definition Error.cpp:177