LLVM 24.0.0git
llvm::CastInfo< To, IRUnitRef > Struct Template Reference

Lets isa/cast/dyn_cast query which IR unit an IRUnitRef holds, naming the IR unit itself rather than a pointer to it: dyn_cast<Module>(IR). More...

#include "llvm/IR/IRUnitRef.h"

Inheritance diagram for llvm::CastInfo< To, IRUnitRef >:
[legend]

Public Types

using Self
using CastReturnType

Static Public Member Functions

static bool isPossible (IRUnitRef IR)
static const To * doCast (IRUnitRef IR)
static const To * castFailed ()
static const To * doCastIfPossible (IRUnitRef IR)
Static Public Member Functions inherited from llvm::CastIsPossible< To, From, Enable >
static bool isPossible (const From &f)

Detailed Description

template<typename To>
struct llvm::CastInfo< To, IRUnitRef >

Lets isa/cast/dyn_cast query which IR unit an IRUnitRef holds, naming the IR unit itself rather than a pointer to it: dyn_cast<Module>(IR).

Definition at line 82 of file IRUnitRef.h.

Member Typedef Documentation

◆ CastReturnType

using llvm::CastInfo< To, IRUnitRef, void >::CastReturnType

Definition at line 479 of file Casting.h.

◆ Self

using llvm::CastInfo< To, IRUnitRef, void >::Self

Definition at line 477 of file Casting.h.

Member Function Documentation

◆ castFailed()

template<typename To>
const To * llvm::CastInfo< To, IRUnitRef >::castFailed ( )
inlinestatic

Definition at line 91 of file IRUnitRef.h.

◆ doCast()

template<typename To>
const To * llvm::CastInfo< To, IRUnitRef >::doCast ( IRUnitRef IR)
inlinestatic

Definition at line 87 of file IRUnitRef.h.

References IR.

◆ doCastIfPossible()

◆ isPossible()

template<typename To>
bool llvm::CastInfo< To, IRUnitRef >::isPossible ( IRUnitRef IR)
inlinestatic

Definition at line 83 of file IRUnitRef.h.

References IR.


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