LLVM 24.0.0git
llvm::FunctionLoweringInfo::StatepointDirectLeaf Struct Reference

A directly-lowered statepoint value (see willLowerDirectly): a leaf that can be rebuilt at a gc.relocate in another block. More...

#include "llvm/CodeGen/FunctionLoweringInfo.h"

Public Types

enum  LeafKind { FrameIndex , Constant , Undef }

Public Member Functions

LLVM_ABI StatepointDirectLeaf (SDValue V)
 Capture the leaf V, which must be a directly-lowered value.
LLVM_ABI SDValue rematerialize (SelectionDAG &DAG, const SDLoc &DL, EVT VT) const
 Rebuild the captured leaf as a fresh SDValue of type VT.

Public Attributes

LeafKind Kind
APInt IntValue
int FrameIndexValue

Detailed Description

A directly-lowered statepoint value (see willLowerDirectly): a leaf that can be rebuilt at a gc.relocate in another block.

Definition at line 105 of file FunctionLoweringInfo.h.

Member Enumeration Documentation

◆ LeafKind

Enumerator
FrameIndex 
Constant 
Undef 

Definition at line 106 of file FunctionLoweringInfo.h.

Constructor & Destructor Documentation

◆ StatepointDirectLeaf()

FunctionLoweringInfo::StatepointDirectLeaf::StatepointDirectLeaf ( SDValue V)
explicit

Capture the leaf V, which must be a directly-lowered value.

Definition at line 267 of file StatepointLowering.cpp.

References assert(), llvm::cast(), Constant, llvm::dyn_cast(), FrameIndex, FrameIndexValue, IntValue, Kind, Undef, and willLowerDirectly().

Member Function Documentation

◆ rematerialize()

SDValue FunctionLoweringInfo::StatepointDirectLeaf::rematerialize ( SelectionDAG & DAG,
const SDLoc & DL,
EVT VT ) const

Member Data Documentation

◆ FrameIndexValue

int llvm::FunctionLoweringInfo::StatepointDirectLeaf::FrameIndexValue

Definition at line 109 of file FunctionLoweringInfo.h.

Referenced by rematerialize(), and StatepointDirectLeaf().

◆ IntValue

APInt llvm::FunctionLoweringInfo::StatepointDirectLeaf::IntValue

Definition at line 108 of file FunctionLoweringInfo.h.

Referenced by rematerialize(), and StatepointDirectLeaf().

◆ Kind

LeafKind llvm::FunctionLoweringInfo::StatepointDirectLeaf::Kind

Definition at line 107 of file FunctionLoweringInfo.h.

Referenced by rematerialize(), and StatepointDirectLeaf().


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