LLVM 20.0.0git
|
#include "llvm/MC/MCInstBuilder.h"
Public Member Functions | |
MCInstBuilder (unsigned Opcode) | |
Create a new MCInstBuilder for an MCInst with a specific opcode. | |
MCInstBuilder & | setLoc (SMLoc SM) |
Set the location. | |
MCInstBuilder & | addReg (unsigned Reg) |
Add a new register operand. | |
MCInstBuilder & | addImm (int64_t Val) |
Add a new integer immediate operand. | |
MCInstBuilder & | addSFPImm (uint32_t Val) |
Add a new single floating point immediate operand. | |
MCInstBuilder & | addDFPImm (uint64_t Val) |
Add a new floating point immediate operand. | |
MCInstBuilder & | addExpr (const MCExpr *Val) |
Add a new MCExpr operand. | |
MCInstBuilder & | addInst (const MCInst *Val) |
Add a new MCInst operand. | |
MCInstBuilder & | addOperand (const MCOperand &Op) |
Add an operand. | |
operator MCInst & () | |
Definition at line 21 of file MCInstBuilder.h.
|
inline |
Create a new MCInstBuilder for an MCInst with a specific opcode.
Definition at line 26 of file MCInstBuilder.h.
References llvm::MCInst::setOpcode().
|
inline |
Add a new floating point immediate operand.
Definition at line 55 of file MCInstBuilder.h.
References llvm::MCInst::addOperand(), and llvm::MCOperand::createDFPImm().
|
inline |
Add a new MCExpr operand.
Definition at line 61 of file MCInstBuilder.h.
References llvm::MCInst::addOperand(), and llvm::MCOperand::createExpr().
Referenced by llvm::ARMAsmPrinter::emitInstruction(), llvm::SystemZAsmPrinter::emitInstruction(), and llvm::X86AsmPrinter::emitInstruction().
|
inline |
Add a new integer immediate operand.
Definition at line 43 of file MCInstBuilder.h.
References llvm::MCInst::addOperand(), and llvm::MCOperand::createImm().
Referenced by llvm::ARMAsmPrinter::emitInstruction(), llvm::SystemZAsmPrinter::emitInstruction(), llvm::CSKYMCCodeEmitter::encodeInstruction(), llvm::CSKYMCCodeEmitter::expandJBTF(), llvm::CSKYMCCodeEmitter::expandNEG(), llvm::CSKYMCCodeEmitter::expandRSUBI(), llvm::RISCVMatInt::generateMCInstSeq(), llvm::AArch64InstrInfo::getNop(), llvm::Thumb1InstrInfo::getNop(), llvm::Thumb2InstrInfo::getNop(), llvm::HexagonInstrInfo::getNop(), llvm::LoongArchInstrInfo::getNop(), llvm::RISCVInstrInfo::getNop(), lowerRIEfLow(), lowerRIHigh(), lowerRILow(), lowerSubvectorLoad(), lowerSubvectorStore(), and llvm::ARMAsmPrinter::runOnMachineFunction().
|
inline |
Add a new MCInst operand.
Definition at line 67 of file MCInstBuilder.h.
References llvm::MCInst::addOperand(), and llvm::MCOperand::createInst().
Referenced by llvm::HexagonInstrInfo::getNop().
|
inline |
Add an operand.
Definition at line 73 of file MCInstBuilder.h.
References llvm::MCInst::addOperand().
Referenced by llvm::CSKYMCCodeEmitter::encodeInstruction(), llvm::CSKYMCCodeEmitter::expandJBTF(), llvm::CSKYMCCodeEmitter::expandNEG(), and llvm::CSKYMCCodeEmitter::expandRSUBI().
|
inline |
Add a new register operand.
Definition at line 37 of file MCInstBuilder.h.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), and Reg.
Referenced by llvm::ARMAsmPrinter::emitInstruction(), llvm::SystemZAsmPrinter::emitInstruction(), llvm::X86AsmPrinter::emitInstruction(), llvm::RISCVMatInt::generateMCInstSeq(), llvm::Thumb1InstrInfo::getNop(), llvm::Thumb2InstrInfo::getNop(), llvm::LoongArchInstrInfo::getNop(), llvm::RISCVInstrInfo::getNop(), lowerRIEfLow(), lowerRIHigh(), lowerRILow(), lowerSubvectorLoad(), lowerSubvectorStore(), and llvm::ARMAsmPrinter::runOnMachineFunction().
|
inline |
Add a new single floating point immediate operand.
Definition at line 49 of file MCInstBuilder.h.
References llvm::MCInst::addOperand(), and llvm::MCOperand::createSFPImm().
|
inline |
Definition at line 78 of file MCInstBuilder.h.
|
inline |