LLVM API Documentation
#include <DerivedTypes.h>
Public Member Functions | |
| void | refineAbstractTypeTo (const Type *NewType) |
| void | dump () const |
| Debugging support: print to stderr. | |
Static Public Member Functions | |
| static bool | classof (const DerivedType *) |
| static bool | classof (const Type *T) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
Protected Member Functions | |
| DerivedType (LLVMContext &C, TypeID id) | |
| void | notifyUsesThatTypeBecameConcrete () |
| void | dropAllTypeUses () |
| void | unlockedRefineAbstractTypeTo (const Type *NewType) |
Friends | |
| class | Type |
Definition at line 36 of file DerivedTypes.h.
| llvm::DerivedType::DerivedType | ( | LLVMContext & | C, | |
| TypeID | id | |||
| ) | [inline, explicit, protected] |
Definition at line 40 of file DerivedTypes.h.
| void DerivedType::notifyUsesThatTypeBecameConcrete | ( | ) | [protected] |
notifyUsesThatTypeBecameConcrete - Notify AbstractTypeUsers of this type that the current type has transitioned from being abstract to being concrete.
Definition at line 1109 of file Type.cpp.
References llvm::Type::AbstractTypeUsers, llvm::LLVMContextImpl::AbstractTypeUsersLock, llvm::sys::SmartMutex< mt_only >::acquire(), DOUT, llvm::Type::getContext(), llvm::LLVMContext::pImpl, and llvm::AbstractTypeUser::typeBecameConcrete().
| void DerivedType::dropAllTypeUses | ( | ) | [protected] |
dropAllTypeUses - When this (abstract) type is resolved to be equal to another (more concrete) type, we must eliminate all references to other types, to avoid some circular reference problems.
Definition at line 481 of file Type.cpp.
References llvm::Type::ContainedTys, llvm::OpaqueType::get(), llvm::Type::getContext(), llvm::Type::getInt32Ty(), llvm::llvm_acquire_global_lock(), llvm::llvm_is_multithreaded(), llvm::llvm_release_global_lock(), and llvm::sys::MemoryFence().
Referenced by unlockedRefineAbstractTypeTo().
| void DerivedType::unlockedRefineAbstractTypeTo | ( | const Type * | NewType | ) | [protected] |
unlockedRefineAbstractTypeTo - Internal version of refineAbstractTypeTo that performs no locking. Only used for internal recursion.
Definition at line 1029 of file Type.cpp.
References llvm::LLVMContextImpl::AbstractTypeDescriptions, llvm::Type::AbstractTypeUsers, llvm::LLVMContextImpl::AbstractTypeUsersLock, llvm::sys::SmartMutex< mt_only >::acquire(), llvm::Type::addRef(), llvm::TypePrinting::clear(), DOUT, dropAllTypeUses(), llvm::Type::ForwardType, llvm::PATypeHolder::get(), llvm::Type::getContext(), llvm::Type::isAbstract(), llvm::LLVMContext::pImpl, llvm::AbstractTypeUser::refineAbstractType(), and llvm::sys::SmartMutex< mt_only >::release().
Referenced by refineAbstractTypeTo().
| void DerivedType::refineAbstractTypeTo | ( | const Type * | NewType | ) |
refineAbstractTypeTo - This function is used to when it is discovered that the 'this' abstract type is actually equivalent to the NewType specified. This causes all users of 'this' to switch to reference the more concrete type NewType and for 'this' to be deleted.
Definition at line 1099 of file Type.cpp.
References llvm::Type::getContext(), L, llvm::LLVMContext::pImpl, llvm::LLVMContextImpl::TypeMapLock, and unlockedRefineAbstractTypeTo().
| void llvm::DerivedType::dump | ( | ) | const [inline, virtual] |
Debugging support: print to stderr.
Reimplemented from llvm::Type.
Definition at line 72 of file DerivedTypes.h.
References llvm::dump().
| static bool llvm::DerivedType::classof | ( | const DerivedType * | ) | [inline, static] |
Definition at line 75 of file DerivedTypes.h.
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::Type.
Reimplemented in llvm::IntegerType, llvm::FunctionType, llvm::CompositeType, llvm::StructType, llvm::SequentialType, llvm::ArrayType, llvm::VectorType, llvm::PointerType, and llvm::OpaqueType.
Definition at line 76 of file DerivedTypes.h.
References llvm::Type::isDerivedType().
friend class Type [friend] |
Definition at line 37 of file DerivedTypes.h.