LLVM API Documentation
#include <Constants.h>


Public Member Functions | |
| virtual void | destroyConstant () |
| PointerType * | getType () const |
Static Public Member Functions | |
| static ConstantPointerNull * | get (PointerType *T) |
| get() - Static factory methods - Return objects of the specified value | |
| static bool | classof (const Value *V) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
Protected Member Functions | |
| ConstantPointerNull (PointerType *T) | |
| void * | operator new (size_t s) |
ConstantPointerNull - a constant pointer value that points to null
Definition at line 485 of file Constants.h.
| llvm::ConstantPointerNull::ConstantPointerNull | ( | PointerType * | T | ) | [inline, explicit, protected] |
Definition at line 489 of file Constants.h.
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::Constant.
Definition at line 512 of file Constants.h.
References llvm::Value::getValueID().
| void ConstantPointerNull::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 1325 of file Constants.cpp.
References llvm::LLVMContextImpl::CPNConstants, llvm::Constant::destroyConstantImpl(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::erase(), llvm::Value::getContext(), getType(), and llvm::LLVMContext::pImpl.
| ConstantPointerNull * ConstantPointerNull::get | ( | PointerType * | T | ) | [static] |
get() - Static factory methods - Return objects of the specified value
Definition at line 1315 of file Constants.cpp.
References llvm::LLVMContextImpl::CPNConstants, llvm::Type::getContext(), and llvm::LLVMContext::pImpl.
Referenced by llvm::ConstantFoldCastInstruction(), ConstantFoldGetElementPtrImpl(), FoldBitCast(), llvm::Constant::getNullValue(), LLVMConstPointerNull(), llvm::IntrinsicLowering::LowerIntrinsicCall(), and llvm::MapValue().
| PointerType* llvm::ConstantPointerNull::getType | ( | ) | const [inline] |
getType - Specialize the getType() method to always return an PointerType, which reduces the amount of casting needed in parts of the compiler.
Reimplemented from llvm::Value.
Definition at line 507 of file Constants.h.
References llvm::Value::getType().
Referenced by destroyConstant().
| void* llvm::ConstantPointerNull::operator new | ( | size_t | s | ) | [inline, protected] |
Reimplemented from llvm::User.
Definition at line 495 of file Constants.h.