LLVM  8.0.1
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. More...
 
MCInstBuilderaddReg (unsigned Reg)
 Add a new register operand. More...
 
MCInstBuilderaddImm (int64_t Val)
 Add a new integer immediate operand. More...
 
MCInstBuilderaddFPImm (double Val)
 Add a new floating point immediate operand. More...
 
MCInstBuilderaddExpr (const MCExpr *Val)
 Add a new MCExpr operand. More...
 
MCInstBuilderaddInst (const MCInst *Val)
 Add a new MCInst operand. More...
 
MCInstBuilderaddOperand (const MCOperand &Op)
 Add an operand. More...
 
 operator MCInst & ()
 

Detailed Description

Definition at line 22 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 27 of file MCInstBuilder.h.

References llvm::MCInst::setOpcode().

Member Function Documentation

◆ addExpr()

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

Add a new MCExpr operand.

Definition at line 50 of file MCInstBuilder.h.

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

Referenced by llvm::SystemZAsmPrinter::EmitInstruction().

◆ addFPImm()

MCInstBuilder& llvm::MCInstBuilder::addFPImm ( double  Val)
inline

Add a new floating point immediate operand.

Definition at line 44 of file MCInstBuilder.h.

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

◆ 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 56 of file MCInstBuilder.h.

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

◆ addOperand()

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

Add an operand.

Definition at line 62 of file MCInstBuilder.h.

References llvm::MCInst::addOperand().

Referenced by llvm::createRISCVMCCodeEmitter().

◆ addReg()

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

◆ operator MCInst &()

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

Definition at line 67 of file MCInstBuilder.h.


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