LLVM 24.0.0git
llvm::ubi::MaterializedConstant Class Reference

#include "llvm/UBAwareInterpreter/Context.h"

Inheritance diagram for llvm::ubi::MaterializedConstant:
[legend]

Public Member Functions

 MaterializedConstant (std::nullopt_t)
 MaterializedConstant (AnyValue V, bool Cacheable)
bool isCacheable () const
Public Member Functions inherited from llvm::ubi::AnyValue
 AnyValue ()
 AnyValue (PoisonTag)
 AnyValue (APInt Val)
 AnyValue (APFloat Val)
 AnyValue (Pointer Val)
 AnyValue (ByteValue Val)
 AnyValue (std::vector< AnyValue > Val)
LLVM_ABI AnyValue (const AnyValue &Other)
LLVM_ABI AnyValue (AnyValue &&Other)
LLVM_ABI AnyValue & operator= (const AnyValue &)
LLVM_ABI AnyValue & operator= (AnyValue &&)
 ~AnyValue ()
LLVM_ABI void print (Context &Ctx, raw_ostream &OS) const
bool isNone () const
bool isPoison () const
bool isInteger () const
bool isFloat () const
bool isPointer () const
bool isByte () const
bool isAggregate () const
bool isCompatibleWith (Type *Ty) const
const APInt & asInteger () const
const APFloat & asFloat () const
const Pointer & asPointer () const
const ByteValue & asByte () const
ByteValue & asMutableByte ()
const std::vector< AnyValue > & asAggregate () const
std::vector< AnyValue > & asAggregate ()
template<size_t I>
const AnyValue & get () const
BooleanKind asBoolean () const

Additional Inherited Members

Static Public Member Functions inherited from llvm::ubi::AnyValue
static AnyValue poison ()
 Use getPoisonValue unless you know the scalar type is integer/fp/ptr!
static AnyValue boolean (bool Val)
static LLVM_ABI AnyValue getPoisonValue (Context &Ctx, Type *Ty)
static LLVM_ABI AnyValue getNullValue (Context &Ctx, Type *Ty)
static LLVM_ABI AnyValue getVectorSplat (const AnyValue &Scalar, size_t NumElements)

Detailed Description

Definition at line 213 of file Context.h.

Constructor & Destructor Documentation

◆ MaterializedConstant() [1/2]

llvm::ubi::MaterializedConstant::MaterializedConstant ( std::nullopt_t )
inline

Definition at line 217 of file Context.h.

◆ MaterializedConstant() [2/2]

llvm::ubi::MaterializedConstant::MaterializedConstant ( AnyValue V,
bool Cacheable )
inline

Definition at line 218 of file Context.h.

References llvm::ubi::AnyValue::AnyValue(), llvm::move(), and V.

Member Function Documentation

◆ isCacheable()

bool llvm::ubi::MaterializedConstant::isCacheable ( ) const
inline

Definition at line 221 of file Context.h.

Referenced by llvm::ubi::Context::getConstantValue().


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