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

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

Collaboration diagram for llvm::PerFunctionMIParsingState:
Collaboration graph
[legend]

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, intFixedStackObjectSlots
 
DenseMap< unsigned, intStackObjectSlots
 
DenseMap< unsigned, unsigned > ConstantPoolSlots
 
DenseMap< unsigned, unsigned > JumpTableSlots
 
DenseMap< unsigned, const Value * > Slots2Values
 Maps from slot numbers to function's unnamed values. More...
 

Detailed Description

Definition at line 162 of file MIParser.h.

Constructor & Destructor Documentation

◆ PerFunctionMIParsingState()

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

Definition at line 319 of file MIParser.cpp.

Member Function Documentation

◆ getIRValue()

const Value * PerFunctionMIParsingState::getIRValue ( unsigned  Slot)

Definition at line 369 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 163 of file MIParser.h.

Referenced by getVRegInfo(), and getVRegInfoNamed().

◆ ConstantPoolSlots

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

Definition at line 177 of file MIParser.h.

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

◆ FixedStackObjectSlots

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

Definition at line 175 of file MIParser.h.

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

◆ IRSlots

const SlotMapping& llvm::PerFunctionMIParsingState::IRSlots

Definition at line 166 of file MIParser.h.

Referenced by parseGlobalValue().

◆ JumpTableSlots

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

Definition at line 178 of file MIParser.h.

◆ MachineForwardRefMDNodes

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

Definition at line 170 of file MIParser.h.

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

◆ MachineMetadataNodes

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

Definition at line 169 of file MIParser.h.

◆ MBBSlots

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

Definition at line 172 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 181 of file MIParser.h.

Referenced by getIRValue().

◆ SM

SourceMgr* llvm::PerFunctionMIParsingState::SM

◆ StackObjectSlots

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

Definition at line 176 of file MIParser.h.

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

◆ Target

PerTargetMIParsingState& llvm::PerFunctionMIParsingState::Target

Definition at line 167 of file MIParser.h.

◆ VRegInfos

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

Definition at line 173 of file MIParser.h.

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

◆ VRegInfosNamed

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

Definition at line 174 of file MIParser.h.

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


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