|
LLVM 24.0.0git
|
#include "llvm/UBAwareInterpreter/Value.h"
Public Member Functions | |
| 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 |
Static Public Member Functions | |
| 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) |
|
inline |
Definition at line 349 of file Value.h.
References llvm::ubi::None.
Referenced by AnyValue(), AnyValue(), boolean(), get(), getNullValue(), getPoisonValue(), getVectorSplat(), llvm::ubi::MaterializedConstant::MaterializedConstant(), operator=(), operator=(), and poison().
|
inlineexplicit |
Definition at line 350 of file Value.h.
References llvm::ubi::Poison.
|
inline |
Definition at line 351 of file Value.h.
References llvm::ubi::Integer, IntVal, and llvm::move().
|
inline |
Definition at line 352 of file Value.h.
References llvm::ubi::Float, FloatVal, and llvm::move().
|
inline |
Definition at line 353 of file Value.h.
References llvm::move(), and PtrVal.
|
inline |
Definition at line 354 of file Value.h.
References ByteVal, and llvm::move().
|
inline |
Definition at line 355 of file Value.h.
References llvm::ubi::Aggregate, AggVal, and llvm::move().
Definition at line 167 of file Value.cpp.
References AnyValue(), and llvm::Other.
| llvm::ubi::AnyValue::AnyValue | ( | AnyValue && | Other | ) |
Definition at line 189 of file Value.cpp.
References AnyValue(), and llvm::Other.
|
inline |
Definition at line 433 of file Value.h.
References llvm::ubi::Aggregate, AggVal, and assert().
Definition at line 427 of file Value.h.
References llvm::ubi::Aggregate, AggVal, and assert().
Referenced by llvm::ubi::Context::computeGEP(), llvm::ubi::InstExecutor::computeSelect(), llvm::ubi::Context::freeze(), llvm::ubi::Context::toBytes(), llvm::ubi::InstExecutor::visitExtractValueInst(), and llvm::ubi::InstExecutor::visitInsertValueInst().
|
inline |
Definition at line 447 of file Value.h.
References asInteger(), llvm::ubi::False, isPoison(), llvm::ubi::Poison, and llvm::ubi::True.
Referenced by llvm::ubi::InstExecutor::computeSelect().
Definition at line 417 of file Value.h.
References assert(), llvm::ubi::Byte, and ByteVal.
Referenced by llvm::ubi::Context::toBytes().
Definition at line 407 of file Value.h.
References assert(), llvm::ubi::Float, and FloatVal.
Referenced by llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::InstExecutor::callVectorReduction(), and llvm::ubi::InstExecutor::visitFPToIntInst().
Definition at line 402 of file Value.h.
References assert(), llvm::ubi::Integer, and IntVal.
Referenced by asBoolean(), llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::Context::computeScaledPtrAdd(), llvm::ubi::ExecutorBase::executeMemSet(), and llvm::ubi::InstExecutor::visitIntToFPInst().
|
inline |
Definition at line 422 of file Value.h.
References assert(), llvm::ubi::Byte, and ByteVal.
Referenced by llvm::ubi::Context::freeze().
Definition at line 412 of file Value.h.
References assert(), llvm::ubi::Pointer, and PtrVal.
Referenced by llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::Context::computePtrAdd(), llvm::ubi::InstExecutor::enterCall(), llvm::ubi::ExecutorBase::executeMemSet(), llvm::ubi::ExecutorBase::executeMemTransfer(), llvm::ubi::ExecutorBase::load(), llvm::ubi::ByteValue::print(), and llvm::ubi::ExecutorBase::store().
Definition at line 367 of file Value.h.
References AnyValue().
Referenced by llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::InstExecutor::visitFCmpInst(), and llvm::ubi::InstExecutor::visitICmpInst().
Definition at line 440 of file Value.h.
References llvm::ubi::Aggregate, AggVal, AnyValue(), assert(), and I.
Definition at line 295 of file Value.cpp.
References AnyValue(), llvm::dyn_cast(), E(), getNullValue(), llvm::APFloat::getZero(), llvm::APInt::getZero(), I, llvm_unreachable, llvm::ubi::Pointer::null(), uint64_t, and llvm::ubi::ByteValue::zero().
Referenced by getNullValue().
Definition at line 270 of file Value.cpp.
References AnyValue(), llvm::dyn_cast(), E(), getPoisonValue(), I, llvm_unreachable, poison(), llvm::ubi::ByteValue::poison(), and uint64_t.
Referenced by llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::InstExecutor::computeSelect(), getPoisonValue(), llvm::ubi::ExecutorBase::load(), llvm::ubi::InstExecutor::visitBitExtractInst(), llvm::ubi::InstExecutor::visitBitInsertInst(), llvm::ubi::InstExecutor::visitExtractElementInst(), llvm::ubi::InstExecutor::visitInsertElementInst(), and llvm::ubi::InstExecutor::visitShuffleVectorInst().
Definition at line 325 of file Value.cpp.
References AnyValue(), and assert().
Referenced by llvm::ubi::Context::computeGEP().
|
inline |
Definition at line 379 of file Value.h.
References llvm::ubi::Aggregate.
Referenced by llvm::ubi::Context::computeGEP(), llvm::ubi::InstExecutor::computeSelect(), and llvm::ubi::Context::freeze().
|
inline |
Definition at line 378 of file Value.h.
References llvm::ubi::Byte.
Referenced by llvm::ubi::Context::freeze().
Definition at line 381 of file Value.h.
References llvm::ubi::Aggregate, llvm::ubi::Byte, llvm::ubi::Float, llvm::ubi::Integer, llvm_unreachable, llvm::ubi::None, llvm::ubi::Pointer, and llvm::ubi::Poison.
|
inline |
Definition at line 376 of file Value.h.
References llvm::ubi::Float.
|
inline |
Definition at line 375 of file Value.h.
References llvm::ubi::Integer.
|
inline |
Definition at line 373 of file Value.h.
References llvm::ubi::None.
Referenced by llvm::ubi::Context::getConstantValue(), and llvm::ubi::InstExecutor::runMainLoop().
|
inline |
Definition at line 377 of file Value.h.
References llvm::ubi::Pointer.
Referenced by llvm::ubi::Context::computeScaledPtrAdd(), and llvm::ubi::ByteValue::print().
|
inline |
Definition at line 374 of file Value.h.
References llvm::ubi::Poison.
Referenced by asBoolean(), llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::InstExecutor::callVectorReduction(), llvm::ubi::Context::computePtrAdd(), llvm::ubi::Context::computeScaledPtrAdd(), llvm::ubi::InstExecutor::enterCall(), llvm::ubi::ExecutorBase::executeMemSet(), llvm::ubi::ExecutorBase::executeMemTransfer(), llvm::ubi::Context::freeze(), llvm::ubi::ExecutorBase::load(), llvm::ubi::ExecutorBase::store(), llvm::ubi::InstExecutor::visitFPConvInst(), llvm::ubi::InstExecutor::visitFPToIntInst(), and llvm::ubi::InstExecutor::visitIntToFPInst().
Definition at line 241 of file Value.cpp.
References llvm::ubi::Aggregate, AggVal, AnyValue(), llvm::ubi::Byte, ByteVal, llvm::ubi::Float, FloatVal, llvm::ubi::Integer, IntVal, llvm::ubi::None, llvm::Other, llvm::ubi::Pointer, llvm::ubi::Poison, and PtrVal.
Definition at line 212 of file Value.cpp.
References llvm::ubi::Aggregate, AggVal, AnyValue(), llvm::ubi::Byte, ByteVal, llvm::ubi::Float, FloatVal, llvm::ubi::Integer, IntVal, llvm::ubi::None, llvm::Other, llvm::ubi::Pointer, llvm::ubi::Poison, and PtrVal.
|
inlinestatic |
Use getPoisonValue unless you know the scalar type is integer/fp/ptr!
Definition at line 366 of file Value.h.
References AnyValue().
Referenced by llvm::ubi::addNoWrap(), llvm::ubi::applyAlignAttr(), llvm::ubi::applyNoFPClassAttr(), llvm::ubi::applyNonNullAttr(), llvm::ubi::applyRangeAttr(), llvm::ubi::InstExecutor::callIntrinsic(), llvm::ubi::InstExecutor::callVectorReduction(), llvm::ubi::Context::canonicalizeIndex(), llvm::ubi::InstExecutor::computeDivRem(), llvm::ubi::Context::computePtrAdd(), llvm::ubi::Context::computeScaledPtrAdd(), llvm::ubi::InstExecutor::countTrailingZeroElements(), llvm::ubi::Library::executeLibcall(), getPoisonValue(), llvm::ubi::InstExecutor::handleMetadata(), llvm::ubi::mulNoWrap(), llvm::ubi::subNoWrap(), llvm::ubi::InstExecutor::visitAShr(), llvm::ubi::InstExecutor::visitFCmpInst(), llvm::ubi::InstExecutor::visitFPConvInst(), llvm::ubi::InstExecutor::visitFPToIntInst(), llvm::ubi::InstExecutor::visitICmpInst(), llvm::ubi::InstExecutor::visitIntToFPInst(), llvm::ubi::InstExecutor::visitIntToPtr(), llvm::ubi::InstExecutor::visitLShr(), llvm::ubi::InstExecutor::visitOr(), llvm::ubi::InstExecutor::visitPtrToAddr(), llvm::ubi::InstExecutor::visitPtrToInt(), llvm::ubi::InstExecutor::visitShl(), llvm::ubi::InstExecutor::visitTruncInst(), and llvm::ubi::InstExecutor::visitZExtInst().
| void llvm::ubi::AnyValue::print | ( | Context & | Ctx, |
| raw_ostream & | OS ) const |
Definition at line 64 of file Value.cpp.
References llvm::ubi::Aggregate, AggVal, llvm::ubi::Byte, ByteVal, llvm::divideCeil(), E(), llvm::ubi::Float, FloatVal, I, llvm::ubi::Integer, IntVal, llvm_unreachable, llvm::ubi::None, llvm::ubi::Pointer, llvm::ubi::Poison, PtrVal, llvm::APFloatBase::S_BFloat, llvm::APFloatBase::S_IEEEdouble, llvm::APFloatBase::S_IEEEhalf, llvm::APFloatBase::S_IEEEquad, llvm::APFloatBase::S_IEEEsingle, llvm::APFloatBase::S_PPCDoubleDouble, llvm::APFloatBase::S_x87DoubleExtended, and llvm::APFloatBase::SemanticsToEnum().
| std::vector<AnyValue> llvm::ubi::AnyValue::AggVal |
Definition at line 342 of file Value.h.
Referenced by AnyValue(), asAggregate(), asAggregate(), get(), operator=(), operator=(), and print().
| ByteValue llvm::ubi::AnyValue::ByteVal |
Definition at line 341 of file Value.h.
Referenced by AnyValue(), asByte(), asMutableByte(), operator=(), operator=(), and print().
| APFloat llvm::ubi::AnyValue::FloatVal |
Definition at line 339 of file Value.h.
Referenced by AnyValue(), asFloat(), operator=(), operator=(), and print().
| APInt llvm::ubi::AnyValue::IntVal |
Definition at line 338 of file Value.h.
Referenced by AnyValue(), asInteger(), operator=(), operator=(), and print().
| Pointer llvm::ubi::AnyValue::PtrVal |
Definition at line 340 of file Value.h.
Referenced by AnyValue(), asPointer(), operator=(), operator=(), and print().