LLVM  13.0.0git
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
llvm::FunctionLoweringInfo Class Reference

FunctionLoweringInfo - This contains information that is global to a function that is used when lowering a region of the function. More...

#include "llvm/CodeGen/FunctionLoweringInfo.h"

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

Classes

struct  LiveOutInfo
 
struct  StatepointRelocationRecord
 Helper object to track which of three possible relocation mechanisms are used for a particular value being relocated over a statepoint. More...
 

Public Types

using StatepointSpillMapTy = DenseMap< const Value *, StatepointRelocationRecord >
 Keep track of each value which was relocated and the strategy used to relocate that value. More...
 

Public Member Functions

const ValuegetValueFromVirtualReg (Register Vreg)
 This method is called from TargetLowerinInfo::isSDNodeSourceOfDivergence to get the Value corresponding to the live-in virtual register. More...
 
void set (const Function &Fn, MachineFunction &MF, SelectionDAG *DAG)
 set - Initialize this FunctionLoweringInfo with the given Function and its associated MachineFunction. More...
 
void clear ()
 clear - Clear out all the function-specific state. More...
 
bool isExportedInst (const Value *V) const
 isExportedInst - Return true if the specified value is an instruction exported from its block. More...
 
Register CreateReg (MVT VT, bool isDivergent=false)
 CreateReg - Allocate a single virtual register for the given type. More...
 
Register CreateRegs (const Value *V)
 
Register CreateRegs (Type *Ty, bool isDivergent=false)
 CreateRegs - Allocate the appropriate number of virtual registers of the correctly promoted or expanded types. More...
 
Register InitializeRegForValue (const Value *V)
 
const LiveOutInfoGetLiveOutRegInfo (Register Reg)
 GetLiveOutRegInfo - Gets LiveOutInfo for a register, returning NULL if the register is a PHI destination and the PHI's LiveOutInfo is not valid. More...
 
const LiveOutInfoGetLiveOutRegInfo (Register Reg, unsigned BitWidth)
 GetLiveOutRegInfo - Gets LiveOutInfo for a register, returning NULL if the register is a PHI destination and the PHI's LiveOutInfo is not valid. More...
 
void AddLiveOutRegInfo (Register Reg, unsigned NumSignBits, const KnownBits &Known)
 AddLiveOutRegInfo - Adds LiveOutInfo for a register. More...
 
void ComputePHILiveOutRegInfo (const PHINode *)
 ComputePHILiveOutRegInfo - Compute LiveOutInfo for a PHI's destination register based on the LiveOutInfo of its operands. More...
 
void InvalidatePHILiveOutRegInfo (const PHINode *PN)
 InvalidatePHILiveOutRegInfo - Invalidates a PHI's LiveOutInfo, to be called when a block is visited before all of its predecessors. More...
 
void setArgumentFrameIndex (const Argument *A, int FI)
 setArgumentFrameIndex - Record frame index for the byval argument. More...
 
int getArgumentFrameIndex (const Argument *A)
 getArgumentFrameIndex - Get frame index for the byval argument. More...
 
Register getCatchPadExceptionPointerVReg (const Value *CPI, const TargetRegisterClass *RC)
 

Public Attributes

const FunctionFn
 
MachineFunctionMF
 
const TargetLoweringTLI
 
MachineRegisterInfoRegInfo
 
BranchProbabilityInfoBPI
 
const LegacyDivergenceAnalysisDA
 
bool CanLowerReturn
 CanLowerReturn - true iff the function's return value can be lowered to registers. More...
 
bool SplitCSR
 True if part of the CSRs will be handled via explicit copies. More...
 
Register DemoteRegister
 DemoteRegister - if CanLowerReturn is false, DemoteRegister is a vreg allocated to hold a pointer to the hidden sret parameter. More...
 
DenseMap< const BasicBlock *, MachineBasicBlock * > MBBMap
 MBBMap - A mapping from LLVM basic blocks to their machine code entry. More...
 
DenseMap< const Value *, RegisterValueMap
 ValueMap - Since we emit code for the function a basic block at a time, we must remember which virtual registers hold the values for cross-basic-block values. More...
 
DenseMap< Register, const Value * > VirtReg2Value
 VirtReg2Value map is needed by the Divergence Analysis driven instruction selection. More...
 
DenseMap< const Value *, RegisterCatchPadExceptionPointers
 Track virtual registers created for exception pointers. More...
 
DenseMap< const Instruction *, StatepointSpillMapTyStatepointRelocationMaps
 
DenseMap< const AllocaInst *, intStaticAllocaMap
 StaticAllocaMap - Keep track of frame indices for fixed sized allocas in the entry block. More...
 
DenseMap< const Argument *, intByValArgFrameIndexMap
 ByValArgFrameIndexMap - Keep track of frame indices for byval arguments. More...
 
SmallVector< MachineInstr *, 8 > ArgDbgValues
 ArgDbgValues - A list of DBG_VALUE instructions created during isel for function arguments that are inserted after scheduling is completed. More...
 
BitVector DescribedArgs
 Bitvector with a bit set if corresponding argument is described in ArgDbgValues. More...
 
DenseMap< Register, RegisterRegFixups
 RegFixups - Registers which need to be replaced after isel is done. More...
 
DenseSet< RegisterRegsWithFixups
 
SmallVector< unsigned, 50 > StatepointStackSlots
 StatepointStackSlots - A list of temporary stack slots (frame indices) used to spill values at a statepoint. More...
 
MachineBasicBlockMBB
 MBB - The current block. More...
 
MachineBasicBlock::iterator InsertPt
 MBB - The current insert position inside the current block. More...
 
DenseMap< const Value *, ISD::NodeTypePreferredExtendType
 Record the preferred extend type (ISD::SIGN_EXTEND or ISD::ZERO_EXTEND) for a value. More...
 
SmallPtrSet< const BasicBlock *, 4 > VisitedBBs
 VisitedBBs - The set of basic blocks visited thus far by instruction selection. More...
 
std::vector< std::pair< MachineInstr *, unsigned > > PHINodesToUpdate
 PHINodesToUpdate - A list of phi instructions whose operand list will be updated after processing the current basic block. More...
 
unsigned OrigNumPHINodesToUpdate
 
unsigned ExceptionPointerVirtReg
 If the current MBB is a landing pad, the exception pointer and exception selector registers are copied into these virtual registers by SelectionDAGISel::PrepareEHLandingPad(). More...
 
unsigned ExceptionSelectorVirtReg
 

Detailed Description

FunctionLoweringInfo - This contains information that is global to a function that is used when lowering a region of the function.

Definition at line 53 of file FunctionLoweringInfo.h.

Member Typedef Documentation

◆ StatepointSpillMapTy

Keep track of each value which was relocated and the strategy used to relocate that value.

This information is required when visiting gc.relocates which may appear in following blocks.

Definition at line 119 of file FunctionLoweringInfo.h.

Member Function Documentation

◆ AddLiveOutRegInfo()

void llvm::FunctionLoweringInfo::AddLiveOutRegInfo ( Register  Reg,
unsigned  NumSignBits,
const KnownBits Known 
)
inline

◆ clear()

void FunctionLoweringInfo::clear ( )

◆ ComputePHILiveOutRegInfo()

void FunctionLoweringInfo::ComputePHILiveOutRegInfo ( const PHINode PN)

◆ CreateReg()

Register FunctionLoweringInfo::CreateReg ( MVT  VT,
bool  isDivergent = false 
)

◆ CreateRegs() [1/2]

Register FunctionLoweringInfo::CreateRegs ( const Value V)

◆ CreateRegs() [2/2]

Register FunctionLoweringInfo::CreateRegs ( Type Ty,
bool  isDivergent = false 
)

CreateRegs - Allocate the appropriate number of virtual registers of the correctly promoted or expanded types.

Assign these registers consecutive vreg numbers and return the first assigned number.

In the case that the given value has struct or array type, this function will assign registers for each member or element.

Definition at line 386 of file FunctionLoweringInfo.cpp.

References llvm::ComputeValueVTs(), CreateReg(), llvm::numbers::e, llvm::Type::getContext(), llvm::MachineFunction::getDataLayout(), llvm::TargetLoweringBase::getNumRegisters(), llvm::TargetLoweringBase::getRegisterType(), llvm::MachineFunction::getSubtarget(), llvm::TargetSubtargetInfo::getTargetLowering(), i, MF, and TLI.

◆ getArgumentFrameIndex()

int FunctionLoweringInfo::getArgumentFrameIndex ( const Argument A)

getArgumentFrameIndex - Get frame index for the byval argument.

If the argument does not have any assigned frame index then 0 is returned.

Definition at line 532 of file FunctionLoweringInfo.cpp.

References ByValArgFrameIndexMap, llvm::dbgs(), I, and LLVM_DEBUG.

Referenced by processDbgDeclares().

◆ getCatchPadExceptionPointerVReg()

Register FunctionLoweringInfo::getCatchPadExceptionPointerVReg ( const Value CPI,
const TargetRegisterClass RC 
)

◆ GetLiveOutRegInfo() [1/2]

const LiveOutInfo* llvm::FunctionLoweringInfo::GetLiveOutRegInfo ( Register  Reg)
inline

GetLiveOutRegInfo - Gets LiveOutInfo for a register, returning NULL if the register is a PHI destination and the PHI's LiveOutInfo is not valid.

Definition at line 217 of file FunctionLoweringInfo.h.

References llvm::FunctionLoweringInfo::LiveOutInfo::IsValid, and Reg.

Referenced by ComputePHILiveOutRegInfo(), and llvm::RegsForValue::getCopyFromRegs().

◆ GetLiveOutRegInfo() [2/2]

const FunctionLoweringInfo::LiveOutInfo * FunctionLoweringInfo::GetLiveOutRegInfo ( Register  Reg,
unsigned  BitWidth 
)

GetLiveOutRegInfo - Gets LiveOutInfo for a register, returning NULL if the register is a PHI destination and the PHI's LiveOutInfo is not valid.

If the register's LiveOutInfo is for a smaller bit width, it is extended to the larger bit width by zero extension. The bit width must be no smaller than the LiveOutInfo's existing bit width.

Definition at line 417 of file FunctionLoweringInfo.cpp.

References llvm::KnownBits::anyext(), llvm::BitWidth, llvm::KnownBits::getBitWidth(), llvm::FunctionLoweringInfo::LiveOutInfo::IsValid, llvm::FunctionLoweringInfo::LiveOutInfo::Known, llvm::FunctionLoweringInfo::LiveOutInfo::NumSignBits, and Reg.

◆ getValueFromVirtualReg()

const Value * FunctionLoweringInfo::getValueFromVirtualReg ( Register  Vreg)

This method is called from TargetLowerinInfo::isSDNodeSourceOfDivergence to get the Value corresponding to the live-in virtual register.

Definition at line 552 of file FunctionLoweringInfo.cpp.

References llvm::SmallVectorImpl< T >::clear(), llvm::ComputeValueVTs(), llvm::numbers::e, Fn, llvm::Function::getContext(), llvm::Module::getDataLayout(), llvm::TargetLoweringBase::getNumRegisters(), llvm::GlobalValue::getParent(), i, P, Reg, TLI, and VirtReg2Value.

Referenced by llvm::SITargetLowering::isSDNodeSourceOfDivergence().

◆ InitializeRegForValue()

Register llvm::FunctionLoweringInfo::InitializeRegForValue ( const Value V)
inline

◆ InvalidatePHILiveOutRegInfo()

void llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo ( const PHINode PN)
inline

InvalidatePHILiveOutRegInfo - Invalidates a PHI's LiveOutInfo, to be called when a block is visited before all of its predecessors.

Definition at line 255 of file FunctionLoweringInfo.h.

References llvm::ValueMap< KeyT, ValueT, Config >::end(), llvm::ValueMap< KeyT, ValueT, Config >::find(), and Reg.

◆ isExportedInst()

bool llvm::FunctionLoweringInfo::isExportedInst ( const Value V) const
inline

isExportedInst - Return true if the specified value is an instruction exported from its block.

Definition at line 195 of file FunctionLoweringInfo.h.

References llvm::ValueMap< KeyT, ValueT, Config >::count().

Referenced by llvm::SelectionDAGBuilder::ExportFromCurrentBlock(), llvm::SelectionDAGBuilder::isExportableFromCurrentBlock(), and isFoldedOrDeadInstruction().

◆ set()

void FunctionLoweringInfo::set ( const Function Fn,
MachineFunction MF,
SelectionDAG DAG 
)

set - Initialize this FunctionLoweringInfo with the given Function and its associated MachineFunction.

Definition at line 82 of file FunctionLoweringInfo.cpp.

References Align, assert(), BB, llvm::BuildMI(), llvm::calculateClrEHStateNumbers(), llvm::calculateSEHStateNumbers(), llvm::calculateWasmEHInfo(), llvm::calculateWinCXXEHStateNumbers(), CanLowerReturn, llvm::TargetLowering::CanLowerReturn(), llvm::classifyEHPersonality(), llvm::CxxUnwindMapEntry::Cleanup, llvm::WinEHFuncInfo::ClrEHUnwindMap, llvm::TargetLowering::ComputeConstraintToUse(), llvm::ComputeValueVTs(), llvm::CoreCLR, llvm::MachineFrameInfo::CreateFixedObject(), llvm::MachineFunction::CreateMachineBasicBlock(), llvm::MachineFrameInfo::CreateStackObject(), llvm::MachineFrameInfo::CreateVariableSizedObject(), llvm::WinEHFuncInfo::CxxUnwindMap, DA, DL, llvm::DenseMapBase< DenseMap< KeyT, ValueT, DenseMapInfo< KeyT >, llvm::detail::DenseMapPair< KeyT, ValueT > >, KeyT, ValueT, DenseMapInfo< KeyT >, llvm::detail::DenseMapPair< KeyT, ValueT > >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, DenseMapInfo< KeyT >, llvm::detail::DenseMapPair< KeyT, ValueT > >, KeyT, ValueT, DenseMapInfo< KeyT >, llvm::detail::DenseMapPair< KeyT, ValueT > >::find(), Fn, llvm::ISD::FrameIndex, llvm::PointerUnion< PTs >::get(), llvm::Function::getAttributes(), llvm::Function::getCallingConv(), llvm::Function::getContext(), llvm::Module::getDataLayout(), llvm::MachineFunction::getDataLayout(), llvm::SelectionDAG::getDivergenceAnalysis(), llvm::MachineFunction::getFrameInfo(), llvm::TargetSubtargetInfo::getFrameLowering(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TypeSize::getKnownMinSize(), llvm::TargetLoweringBase::getNumRegisters(), llvm::GlobalValue::getParent(), llvm::Function::getPersonalityFn(), getPreferredExtendForValue(), llvm::DataLayout::getPrefTypeAlign(), llvm::TargetLowering::getRegForInlineAsmConstraint(), llvm::MachineFunction::getRegInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::GetReturnInfo(), llvm::Function::getReturnType(), llvm::TargetFrameLowering::getStackAlign(), llvm::TargetFrameLowering::getStackIDForScalableVectors(), llvm::TargetLoweringBase::getStackPointerRegisterToSaveRestore(), llvm::MachineFunction::getSubtarget(), llvm::TargetSubtargetInfo::getTargetLowering(), llvm::DataLayout::getTypeAllocSize(), llvm::MachineFunction::getWasmEHFuncInfo(), llvm::MachineFunction::getWinEHFuncInfo(), llvm::ConstantInt::getZExtValue(), H, llvm::SEHUnwindMapEntry::Handler, llvm::ClrEHUnwindMapEntry::Handler, llvm::WinEHTryBlockMapEntry::HandlerArray, llvm::Function::hasPersonalityFn(), i, I, InitializeRegForValue(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, DenseMapInfo< KeyT >, llvm::detail::DenseMapPair< KeyT, ValueT > >, KeyT, ValueT, DenseMapInfo< KeyT >, llvm::detail::DenseMapPair< KeyT, ValueT > >::insert(), llvm::isAsynchronousEHPersonality(), llvm::InlineAsm::isClobber, llvm::isFuncletEHPersonality(), llvm::TargetFrameLowering::isStackRealignable(), isUsedOutsideOfDefiningBlock(), llvm::Function::isVarArg(), llvm::max(), MBB, MBBMap, MF, llvm::min(), move, llvm::MSVC_CXX, llvm::TargetLoweringBase::needsFixedCatchObjects(), P, llvm::TargetLowering::ParseConstraints(), PreferredExtendType, llvm::MachineFunction::push_back(), RegInfo, llvm::WinEHFuncInfo::SEHUnwindMap, llvm::MachineBasicBlock::setHasAddressTaken(), llvm::MachineFunction::setHasEHFunclets(), llvm::MachineFunction::setHasEHScopes(), llvm::MachineFrameInfo::setHasMustTailInVarArgFunc(), llvm::MachineFrameInfo::setHasOpaqueSPAdjustment(), llvm::MachineFrameInfo::setHasVAStart(), llvm::MachineBasicBlock::setIsEHPad(), llvm::MachineFrameInfo::setObjectAlignment(), llvm::MachineFrameInfo::setStackID(), llvm::WasmEHFuncInfo::SrcToUnwindDest, StaticAllocaMap, TII, TLI, TRI, llvm::WinEHFuncInfo::TryBlockMap, llvm::WasmEHFuncInfo::UnwindDestToSrcs, and llvm::Wasm_CXX.

◆ setArgumentFrameIndex()

void FunctionLoweringInfo::setArgumentFrameIndex ( const Argument A,
int  FI 
)

setArgumentFrameIndex - Record frame index for the byval argument.

This overrides previous frame index entry for this argument, if any.

Definition at line 524 of file FunctionLoweringInfo.cpp.

References ByValArgFrameIndexMap.

Member Data Documentation

◆ ArgDbgValues

SmallVector<MachineInstr*, 8> llvm::FunctionLoweringInfo::ArgDbgValues

ArgDbgValues - A list of DBG_VALUE instructions created during isel for function arguments that are inserted after scheduling is completed.

Definition at line 132 of file FunctionLoweringInfo.h.

Referenced by clear().

◆ BPI

BranchProbabilityInfo* llvm::FunctionLoweringInfo::BPI

◆ ByValArgFrameIndexMap

DenseMap<const Argument*, int> llvm::FunctionLoweringInfo::ByValArgFrameIndexMap

ByValArgFrameIndexMap - Keep track of frame indices for byval arguments.

Definition at line 128 of file FunctionLoweringInfo.h.

Referenced by clear(), getArgumentFrameIndex(), and setArgumentFrameIndex().

◆ CanLowerReturn

bool llvm::FunctionLoweringInfo::CanLowerReturn

CanLowerReturn - true iff the function's return value can be lowered to registers.

Definition at line 63 of file FunctionLoweringInfo.h.

Referenced by llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerReturn(), llvm::IRTranslator::runOnMachineFunction(), and set().

◆ CatchPadExceptionPointers

DenseMap<const Value *, Register> llvm::FunctionLoweringInfo::CatchPadExceptionPointers

Track virtual registers created for exception pointers.

Definition at line 92 of file FunctionLoweringInfo.h.

Referenced by getCatchPadExceptionPointerVReg().

◆ DA

const LegacyDivergenceAnalysis* llvm::FunctionLoweringInfo::DA

Definition at line 60 of file FunctionLoweringInfo.h.

Referenced by CreateRegs(), and set().

◆ DemoteRegister

Register llvm::FunctionLoweringInfo::DemoteRegister

DemoteRegister - if CanLowerReturn is false, DemoteRegister is a vreg allocated to hold a pointer to the hidden sret parameter.

Definition at line 70 of file FunctionLoweringInfo.h.

Referenced by llvm::SITargetLowering::isSDNodeSourceOfDivergence(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::AMDGPUCallLowering::lowerReturn().

◆ DescribedArgs

BitVector llvm::FunctionLoweringInfo::DescribedArgs

Bitvector with a bit set if corresponding argument is described in ArgDbgValues.

Using arg numbers according to Argument numbering.

Definition at line 136 of file FunctionLoweringInfo.h.

Referenced by clear().

◆ ExceptionPointerVirtReg

unsigned llvm::FunctionLoweringInfo::ExceptionPointerVirtReg

If the current MBB is a landing pad, the exception pointer and exception selector registers are copied into these virtual registers by SelectionDAGISel::PrepareEHLandingPad().

Definition at line 181 of file FunctionLoweringInfo.h.

◆ ExceptionSelectorVirtReg

unsigned llvm::FunctionLoweringInfo::ExceptionSelectorVirtReg

Definition at line 181 of file FunctionLoweringInfo.h.

◆ Fn

const Function* llvm::FunctionLoweringInfo::Fn

◆ InsertPt

MachineBasicBlock::iterator llvm::FunctionLoweringInfo::InsertPt

◆ MBB

MachineBasicBlock* llvm::FunctionLoweringInfo::MBB

◆ MBBMap

DenseMap<const BasicBlock*, MachineBasicBlock *> llvm::FunctionLoweringInfo::MBBMap

MBBMap - A mapping from LLVM basic blocks to their machine code entry.

Definition at line 73 of file FunctionLoweringInfo.h.

Referenced by llvm::FastISel::canFoldAddIntoGEP(), clear(), findUnwindDestinations(), findWasmUnwindDestinations(), and set().

◆ MF

MachineFunction* llvm::FunctionLoweringInfo::MF

◆ OrigNumPHINodesToUpdate

unsigned llvm::FunctionLoweringInfo::OrigNumPHINodesToUpdate

Definition at line 176 of file FunctionLoweringInfo.h.

◆ PHINodesToUpdate

std::vector<std::pair<MachineInstr*, unsigned> > llvm::FunctionLoweringInfo::PHINodesToUpdate

PHINodesToUpdate - A list of phi instructions whose operand list will be updated after processing the current basic block.

TODO: This isn't per-function state, it's per-basic-block state. But there's no other convenient place for it to live right now.

Definition at line 175 of file FunctionLoweringInfo.h.

Referenced by isRegUsedByPhiNodes().

◆ PreferredExtendType

DenseMap<const Value *, ISD::NodeType> llvm::FunctionLoweringInfo::PreferredExtendType

Record the preferred extend type (ISD::SIGN_EXTEND or ISD::ZERO_EXTEND) for a value.

Definition at line 165 of file FunctionLoweringInfo.h.

Referenced by clear(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), and set().

◆ RegFixups

DenseMap<Register, Register> llvm::FunctionLoweringInfo::RegFixups

RegFixups - Registers which need to be replaced after isel is done.

Definition at line 139 of file FunctionLoweringInfo.h.

Referenced by clear().

◆ RegInfo

MachineRegisterInfo* llvm::FunctionLoweringInfo::RegInfo

Definition at line 58 of file FunctionLoweringInfo.h.

Referenced by CreateReg(), and set().

◆ RegsWithFixups

DenseSet<Register> llvm::FunctionLoweringInfo::RegsWithFixups

Definition at line 141 of file FunctionLoweringInfo.h.

Referenced by clear().

◆ SplitCSR

bool llvm::FunctionLoweringInfo::SplitCSR

True if part of the CSRs will be handled via explicit copies.

Definition at line 66 of file FunctionLoweringInfo.h.

◆ StatepointRelocationMaps

DenseMap<const Instruction *, StatepointSpillMapTy> llvm::FunctionLoweringInfo::StatepointRelocationMaps

Definition at line 120 of file FunctionLoweringInfo.h.

Referenced by clear(), and llvm::SelectionDAGBuilder::LowerAsSTATEPOINT().

◆ StatepointStackSlots

SmallVector<unsigned, 50> llvm::FunctionLoweringInfo::StatepointStackSlots

StatepointStackSlots - A list of temporary stack slots (frame indices) used to spill values at a statepoint.

We store them here to enable reuse of the same stack slots across different statepoints in different basic blocks.

Definition at line 147 of file FunctionLoweringInfo.h.

Referenced by clear().

◆ StaticAllocaMap

DenseMap<const AllocaInst*, int> llvm::FunctionLoweringInfo::StaticAllocaMap

StaticAllocaMap - Keep track of frame indices for fixed sized allocas in the entry block.

This allows the allocas to be efficiently referenced anywhere in the function.

Definition at line 125 of file FunctionLoweringInfo.h.

Referenced by clear(), findArgumentCopyElisionCandidates(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::SelectionDAGBuilder::handleDebugValue(), processDbgDeclares(), set(), and tryToElideArgumentCopy().

◆ TLI

const TargetLowering* llvm::FunctionLoweringInfo::TLI

◆ ValueMap

DenseMap<const Value *, Register> llvm::FunctionLoweringInfo::ValueMap

ValueMap - Since we emit code for the function a basic block at a time, we must remember which virtual registers hold the values for cross-basic-block values.

Definition at line 78 of file FunctionLoweringInfo.h.

Referenced by llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::SelectionDAGBuilder::getCopyFromRegs(), llvm::SelectionDAGBuilder::handleDebugValue(), and llvm::SelectionDAGBuilder::LowerStatepoint().

◆ VirtReg2Value

DenseMap<Register, const Value*> llvm::FunctionLoweringInfo::VirtReg2Value

VirtReg2Value map is needed by the Divergence Analysis driven instruction selection.

It is reverted ValueMap. It is computed in lazy style - on demand. It is used to get the Value corresponding to the live in virtual register and is called from the TargetLowerinInfo::isSDNodeSourceOfDivergence.

Definition at line 85 of file FunctionLoweringInfo.h.

Referenced by clear(), getValueFromVirtualReg(), and InitializeRegForValue().

◆ VisitedBBs

SmallPtrSet<const BasicBlock*, 4> llvm::FunctionLoweringInfo::VisitedBBs

VisitedBBs - The set of basic blocks visited thus far by instruction selection.

Definition at line 169 of file FunctionLoweringInfo.h.

Referenced by clear().


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