LLVM 22.0.0git
llvm::CastInfoVPIRMetadata< DstTy, SrcTy > Struct Template Reference

Support casting from VPRecipeBase -> VPIRMetadata, by down-casting to the recipe types implementing VPIRMetadata. More...

#include "Transforms/Vectorize/VPlan.h"

Inheritance diagram for llvm::CastInfoVPIRMetadata< DstTy, SrcTy >:
[legend]

Public Types

using RetTy = DstTy *

Static Public Member Functions

static bool isPossible (SrcTy R)
static RetTy doCast (SrcTy R)
 doCast is used by cast<>.
static RetTy doCastIfPossible (SrcTy R)
 doCastIfPossible is used by dyn_cast<>.
Static Public Member Functions inherited from llvm::CastIsPossible< DstTy, SrcTy >
static bool isPossible (const SrcTy &f)

Detailed Description

template<typename DstTy, typename SrcTy>
struct llvm::CastInfoVPIRMetadata< DstTy, SrcTy >

Support casting from VPRecipeBase -> VPIRMetadata, by down-casting to the recipe types implementing VPIRMetadata.

Used by cast<>, dyn_cast<> & co.

Definition at line 3953 of file VPlan.h.

Member Typedef Documentation

◆ RetTy

template<typename DstTy, typename SrcTy>
using llvm::CastInfoVPIRMetadata< DstTy, SrcTy >::RetTy = DstTy *

Definition at line 3964 of file VPlan.h.

Member Function Documentation

◆ doCast()

template<typename DstTy, typename SrcTy>
RetTy llvm::CastInfoVPIRMetadata< DstTy, SrcTy >::doCast ( SrcTy R)
inlinestatic

doCast is used by cast<>.

Definition at line 3967 of file VPlan.h.

References llvm::detail::castToVPIRMetadata().

Referenced by doCastIfPossible().

◆ doCastIfPossible()

template<typename DstTy, typename SrcTy>
RetTy llvm::CastInfoVPIRMetadata< DstTy, SrcTy >::doCastIfPossible ( SrcTy R)
inlinestatic

doCastIfPossible is used by dyn_cast<>.

Definition at line 3972 of file VPlan.h.

References doCast(), and isPossible().

◆ isPossible()

template<typename DstTy, typename SrcTy>
bool llvm::CastInfoVPIRMetadata< DstTy, SrcTy >::isPossible ( SrcTy R)
inlinestatic

Definition at line 3954 of file VPlan.h.

References llvm::isa().

Referenced by doCastIfPossible().


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