LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::PerFunctionMIParsingState Struct Reference

#include "llvm/CodeGen/MIRParser/MIParser.h"

Public Member Functions

 PerFunctionMIParsingState (MachineFunction &MF, SourceMgr &SM, const SlotMapping &IRSlots, PerTargetMIParsingState &Target)
 
VRegInfogetVRegInfo (Register Num)
 
VRegInfogetVRegInfoNamed (StringRef RegName)
 
const ValuegetIRValue (unsigned Slot)
 

Public Attributes

BumpPtrAllocator Allocator
 
MachineFunctionMF
 
SourceMgrSM
 
const SlotMappingIRSlots
 
PerTargetMIParsingStateTarget
 
std::map< unsigned, TrackingMDNodeRefMachineMetadataNodes
 
std::map< unsigned, std::pair< TempMDTuple, SMLoc > > MachineForwardRefMDNodes
 
DenseMap< unsigned, MachineBasicBlock * > MBBSlots
 
DenseMap< Register, VRegInfo * > VRegInfos
 
StringMap< VRegInfo * > VRegInfosNamed
 
DenseMap< unsigned, int > FixedStackObjectSlots
 
DenseMap< unsigned, int > StackObjectSlots
 
DenseMap< unsigned, unsignedConstantPoolSlots
 
DenseMap< unsigned, unsignedJumpTableSlots
 
DenseMap< unsigned, const Value * > Slots2Values
 Maps from slot numbers to function's unnamed values.
 

Detailed Description

Definition at line 164 of file MIParser.h.

Constructor & Destructor Documentation

◆ PerFunctionMIParsingState()

PerFunctionMIParsingState::PerFunctionMIParsingState ( MachineFunction MF,
SourceMgr SM,
const SlotMapping IRSlots,
PerTargetMIParsingState Target 
)

Definition at line 315 of file MIParser.cpp.

Member Function Documentation

◆ getIRValue()

const Value * PerFunctionMIParsingState::getIRValue ( unsigned  Slot)

Definition at line 365 of file MIParser.cpp.

References llvm::MachineFunction::getFunction(), initSlots2Values(), MF, and Slots2Values.

Referenced by parseIRValue().

◆ getVRegInfo()

VRegInfo & PerFunctionMIParsingState::getVRegInfo ( Register  Num)

◆ getVRegInfoNamed()

VRegInfo & PerFunctionMIParsingState::getVRegInfoNamed ( StringRef  RegName)

Member Data Documentation

◆ Allocator

BumpPtrAllocator llvm::PerFunctionMIParsingState::Allocator

Definition at line 165 of file MIParser.h.

Referenced by getVRegInfo(), and getVRegInfoNamed().

◆ ConstantPoolSlots

DenseMap<unsigned, unsigned> llvm::PerFunctionMIParsingState::ConstantPoolSlots

Definition at line 179 of file MIParser.h.

Referenced by llvm::MIRParserImpl::initializeConstantPool().

◆ FixedStackObjectSlots

DenseMap<unsigned, int> llvm::PerFunctionMIParsingState::FixedStackObjectSlots

Definition at line 177 of file MIParser.h.

Referenced by llvm::MIRParserImpl::initializeFrameInfo().

◆ IRSlots

const SlotMapping& llvm::PerFunctionMIParsingState::IRSlots

Definition at line 168 of file MIParser.h.

Referenced by parseGlobalValue(), and parseIRConstant().

◆ JumpTableSlots

DenseMap<unsigned, unsigned> llvm::PerFunctionMIParsingState::JumpTableSlots

Definition at line 180 of file MIParser.h.

Referenced by llvm::MIRParserImpl::initializeJumpTableInfo().

◆ MachineForwardRefMDNodes

std::map<unsigned, std::pair<TempMDTuple, SMLoc> > llvm::PerFunctionMIParsingState::MachineForwardRefMDNodes

Definition at line 172 of file MIParser.h.

Referenced by llvm::MIRParserImpl::parseMachineMetadataNodes().

◆ MachineMetadataNodes

std::map<unsigned, TrackingMDNodeRef> llvm::PerFunctionMIParsingState::MachineMetadataNodes

Definition at line 171 of file MIParser.h.

◆ MBBSlots

DenseMap<unsigned, MachineBasicBlock *> llvm::PerFunctionMIParsingState::MBBSlots

Definition at line 174 of file MIParser.h.

Referenced by llvm::parseMachineBasicBlockDefinitions().

◆ MF

MachineFunction& llvm::PerFunctionMIParsingState::MF

◆ Slots2Values

DenseMap<unsigned, const Value *> llvm::PerFunctionMIParsingState::Slots2Values

Maps from slot numbers to function's unnamed values.

Definition at line 183 of file MIParser.h.

Referenced by getIRValue().

◆ SM

SourceMgr* llvm::PerFunctionMIParsingState::SM

◆ StackObjectSlots

DenseMap<unsigned, int> llvm::PerFunctionMIParsingState::StackObjectSlots

Definition at line 178 of file MIParser.h.

Referenced by llvm::MIRParserImpl::initializeFrameInfo().

◆ Target

PerTargetMIParsingState& llvm::PerFunctionMIParsingState::Target

Definition at line 169 of file MIParser.h.

◆ VRegInfos

DenseMap<Register, VRegInfo *> llvm::PerFunctionMIParsingState::VRegInfos

Definition at line 175 of file MIParser.h.

Referenced by getVRegInfo(), and llvm::MIRParserImpl::setupRegisterInfo().

◆ VRegInfosNamed

StringMap<VRegInfo *> llvm::PerFunctionMIParsingState::VRegInfosNamed

Definition at line 176 of file MIParser.h.

Referenced by getVRegInfoNamed(), and llvm::MIRParserImpl::setupRegisterInfo().


The documentation for this struct was generated from the following files: