LLVM 20.0.0git
Public Member Functions | List of all members
llvm::MCInstBuilder Class Reference

#include "llvm/MC/MCInstBuilder.h"

Public Member Functions

 MCInstBuilder (unsigned Opcode)
 Create a new MCInstBuilder for an MCInst with a specific opcode.
 
MCInstBuildersetLoc (SMLoc SM)
 Set the location.
 
MCInstBuilderaddReg (MCRegister Reg)
 Add a new register operand.
 
MCInstBuilderaddImm (int64_t Val)
 Add a new integer immediate operand.
 
MCInstBuilderaddSFPImm (uint32_t Val)
 Add a new single floating point immediate operand.
 
MCInstBuilderaddDFPImm (uint64_t Val)
 Add a new floating point immediate operand.
 
MCInstBuilderaddExpr (const MCExpr *Val)
 Add a new MCExpr operand.
 
MCInstBuilderaddInst (const MCInst *Val)
 Add a new MCInst operand.
 
MCInstBuilderaddOperand (const MCOperand &Op)
 Add an operand.
 
 operator MCInst & ()
 

Detailed Description

Definition at line 21 of file MCInstBuilder.h.

Constructor & Destructor Documentation

◆ MCInstBuilder()

llvm::MCInstBuilder::MCInstBuilder ( unsigned  Opcode)
inline

Create a new MCInstBuilder for an MCInst with a specific opcode.

Definition at line 26 of file MCInstBuilder.h.

References llvm::MCInst::setOpcode().

Member Function Documentation

◆ addDFPImm()

MCInstBuilder & llvm::MCInstBuilder::addDFPImm ( uint64_t  Val)
inline

Add a new floating point immediate operand.

Definition at line 55 of file MCInstBuilder.h.

References llvm::MCInst::addOperand(), and llvm::MCOperand::createDFPImm().

◆ addExpr()

MCInstBuilder & llvm::MCInstBuilder::addExpr ( const MCExpr Val)
inline

◆ addImm()

MCInstBuilder & llvm::MCInstBuilder::addImm ( int64_t  Val)
inline

◆ addInst()

MCInstBuilder & llvm::MCInstBuilder::addInst ( const MCInst Val)
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().

◆ addOperand()

MCInstBuilder & llvm::MCInstBuilder::addOperand ( const MCOperand Op)
inline

◆ addReg()

MCInstBuilder & llvm::MCInstBuilder::addReg ( MCRegister  Reg)
inline

◆ addSFPImm()

MCInstBuilder & llvm::MCInstBuilder::addSFPImm ( uint32_t  Val)
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().

◆ operator MCInst &()

llvm::MCInstBuilder::operator MCInst & ( )
inline

Definition at line 78 of file MCInstBuilder.h.

◆ setLoc()

MCInstBuilder & llvm::MCInstBuilder::setLoc ( SMLoc  SM)
inline

Set the location.

Definition at line 31 of file MCInstBuilder.h.

References llvm::MCInst::setLoc().


The documentation for this class was generated from the following file: