LLVM API Documentation
#include <Constants.h>
Public Member Functions | |
| virtual bool | isNullValue () const |
| virtual void | destroyConstant () |
Static Public Member Functions | |
| static UndefValue * | get (const Type *T) |
| static bool | classof (const UndefValue *) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
| static bool | classof (const Value *V) |
Protected Member Functions | |
| UndefValue (const Type *T) | |
| void * | operator new (size_t s) |
Friends | |
| struct | ConstantCreator< UndefValue, Type, char > |
Definition at line 809 of file Constants.h.
| llvm::UndefValue::UndefValue | ( | const Type * | T | ) | [inline, explicit, protected] |
Definition at line 814 of file Constants.h.
| void* llvm::UndefValue::operator new | ( | size_t | s | ) | [inline, protected] |
Reimplemented from llvm::User.
Definition at line 817 of file Constants.h.
References operator new().
| UndefValue * UndefValue::get | ( | const Type * | T | ) | [static] |
get() - Static factory methods - Return an 'undef' object of the specified type.
Definition at line 1011 of file Constants.cpp.
References llvm::Type::getContext(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::UndefValueConstants.
Referenced by BuildSubAggregate(), ChangeToUnreachable(), llvm::CloneAndPruneFunctionInto(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldExtractValueInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldInsertValueInstruction(), llvm::ConstantFoldInstruction(), llvm::ConstantFoldLoadThroughGEPConstantExpr(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::ConvertConstant< UndefValue, Type >::convert(), llvm::IRBuilder< true, llvm::TargetFolder >::CreateAggregateRet(), llvm::DeleteDeadBlock(), llvm::FindInsertedValue(), llvm::FoldSingleEntryPHINodes(), llvm::ConstantVector::get(), getAggregateConstantElement(), GetVectorElement(), llvm::Constant::getVectorElements(), llvm::PHINode::hasConstantValue(), llvm::InlineFunction(), llvm::MergeBasicBlockIntoOnlyPred(), OptimizeGlobalAddressOfMalloc(), llvm::RecursivelyDeleteDeadPHINode(), llvm::PHINode::removeIncomingValue(), llvm::BasicBlock::removePredecessor(), llvm::SplitBlockPredecessors(), StripDebugInfo(), and llvm::UpgradeIntrinsicCall().
| virtual bool llvm::UndefValue::isNullValue | ( | ) | const [inline, virtual] |
isNullValue - Return true if this is the value that would be returned by getNullValue.
Implements llvm::Constant.
Definition at line 828 of file Constants.h.
| void UndefValue::destroyConstant | ( | ) | [virtual] |
destroyConstant - Called if some element of this constant is no longer valid. At this point only other constants may be on the use_list for this constant. Any constants on our Use list must also be destroy'd. The implementation must be sure to remove the constant from the list of available cached constants. Implementations should call destroyConstantImpl as the last thing they do, to destroy all users and delete this.
Reimplemented from llvm::Constant.
Definition at line 1018 of file Constants.cpp.
References llvm::Constant::destroyConstantImpl(), llvm::Type::getContext(), llvm::Value::getType(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::UndefValueConstants.
Referenced by llvm::ConvertConstant< UndefValue, Type >::convert().
| static bool llvm::UndefValue::classof | ( | const UndefValue * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 833 of file Constants.h.
Reimplemented from llvm::Constant.
Definition at line 834 of file Constants.h.
References llvm::Value::getValueID().
friend struct ConstantCreator< UndefValue, Type, char > [friend] |
Definition at line 810 of file Constants.h.