LLVM 20.0.0git
Functions | Variables
MachineOperand.cpp File Reference
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/ADT/StableHashing.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/CodeGen/MIRFormatter.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/PseudoSourceValueManager.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/ModuleSlotTracker.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/Target/TargetIntrinsicInfo.h"
#include "llvm/Target/TargetMachine.h"
#include <optional>

Go to the source code of this file.

Functions

static const MachineFunctiongetMFIfAvailable (const MachineOperand &MO)
 
static MachineFunctiongetMFIfAvailable (MachineOperand &MO)
 
static void tryToGetTargetInfo (const MachineOperand &MO, const TargetRegisterInfo *&TRI, const TargetIntrinsicInfo *&IntrinsicInfo)
 
static const chargetTargetIndexName (const MachineFunction &MF, int Index)
 
static const chargetTargetFlagName (const TargetInstrInfo *TII, unsigned TF)
 
static void printCFIRegister (unsigned DwarfReg, raw_ostream &OS, const TargetRegisterInfo *TRI)
 
static void printIRBlockReference (raw_ostream &OS, const BasicBlock &BB, ModuleSlotTracker &MST)
 
static void printSyncScope (raw_ostream &OS, const LLVMContext &Context, SyncScope::ID SSID, SmallVectorImpl< StringRef > &SSNs)
 
static const chargetTargetMMOFlagName (const TargetInstrInfo &TII, unsigned TMMOFlag)
 
static void printFrameIndex (raw_ostream &OS, int FrameIndex, bool IsFixed, const MachineFrameInfo *MFI)
 
static void printCFI (raw_ostream &OS, const MCCFIInstruction &CFI, const TargetRegisterInfo *TRI)
 

Variables

static cl::opt< int > PrintRegMaskNumRegs ("print-regmask-num-regs", cl::desc("Number of registers to limit to when " "printing regmask operands in IR dumps. " "unlimited = -1"), cl::init(32), cl::Hidden)
 

Function Documentation

◆ getMFIfAvailable() [1/2]

static const MachineFunction * getMFIfAvailable ( const MachineOperand MO)
static

◆ getMFIfAvailable() [2/2]

static MachineFunction * getMFIfAvailable ( MachineOperand MO)
static

Definition at line 51 of file MachineOperand.cpp.

References getMFIfAvailable().

◆ getTargetFlagName()

static const char * getTargetFlagName ( const TargetInstrInfo TII,
unsigned  TF 
)
static

◆ getTargetIndexName()

static const char * getTargetIndexName ( const MachineFunction MF,
int  Index 
)
static

◆ getTargetMMOFlagName()

static const char * getTargetMMOFlagName ( const TargetInstrInfo TII,
unsigned  TMMOFlag 
)
static

Definition at line 544 of file MachineOperand.cpp.

References I, and TII.

Referenced by llvm::MachineMemOperand::print().

◆ printCFI()

static void printCFI ( raw_ostream OS,
const MCCFIInstruction CFI,
const TargetRegisterInfo TRI 
)
static

◆ printCFIRegister()

static void printCFIRegister ( unsigned  DwarfReg,
raw_ostream OS,
const TargetRegisterInfo TRI 
)
static

Definition at line 491 of file MachineOperand.cpp.

References OS, llvm::printReg(), and TRI.

Referenced by printCFI().

◆ printFrameIndex()

static void printFrameIndex ( raw_ostream OS,
int  FrameIndex,
bool  IsFixed,
const MachineFrameInfo MFI 
)
static

◆ printIRBlockReference()

static void printIRBlockReference ( raw_ostream OS,
const BasicBlock BB,
ModuleSlotTracker MST 
)
static

◆ printSyncScope()

static void printSyncScope ( raw_ostream OS,
const LLVMContext Context,
SyncScope::ID  SSID,
SmallVectorImpl< StringRef > &  SSNs 
)
static

◆ tryToGetTargetInfo()

static void tryToGetTargetInfo ( const MachineOperand MO,
const TargetRegisterInfo *&  TRI,
const TargetIntrinsicInfo *&  IntrinsicInfo 
)
static

Definition at line 455 of file MachineOperand.cpp.

References getMFIfAvailable(), and TRI.

Variable Documentation

◆ PrintRegMaskNumRegs

cl::opt< int > PrintRegMaskNumRegs("print-regmask-num-regs", cl::desc("Number of registers to limit to when " "printing regmask operands in IR dumps. " "unlimited = -1"), cl::init(32), cl::Hidden) ( "print-regmask-num-regs"  ,
cl::desc("Number of registers to limit to when " "printing regmask operands in IR dumps. " "unlimited = -1")  ,
cl::init(32)  ,
cl::Hidden   
)
static