10#include "llvm/Config/llvm-config.h"
29 if (Ctx && Ctx->getRegisterInfo())
30 OS << Ctx->getRegisterInfo()->getName(
getReg());
42 Ctx->getAsmInfo()->printExpr(OS, *
getExpr());
47 if (
const auto *Inst =
getInst())
67 "isBareSymbolRef expects only expressions");
74#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
111#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
dxil pretty DXIL Metadata Pretty Printer
Context object for machine code objects.
Base class for the full range of assembler expressions which are needed for parsing.
@ SymbolRef
References to labels and assigned expressions.
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
LLVM_ABI void print(raw_ostream &OS, const MCContext *Ctx=nullptr) const
unsigned getNumOperands() const
unsigned getOpcode() const
LLVM_ABI void dump_pretty(raw_ostream &OS, const MCInstPrinter *Printer=nullptr, StringRef Separator=" ", const MCContext *Ctx=nullptr) const
Dump the MCInst as prettily as possible using the additional MC structures, if given.
LLVM_ABI void dump() const
const MCOperand & getOperand(unsigned i) const
LLVM_ABI bool isBareSymbolRef() const
LLVM_ABI void print(raw_ostream &OS, const MCContext *Ctx=nullptr) const
MCRegister getReg() const
Returns the register number.
LLVM_ABI bool evaluateAsConstantImm(int64_t &Imm) const
LLVM_ABI void dump() const
const MCInst * getInst() const
const MCExpr * getExpr() const
uint32_t getSFPImm() const
uint64_t getDFPImm() const
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
To bit_cast(const From &from) noexcept
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.