LLVM API Documentation
#include <Constants.h>
Public Member Functions | |
void | destroyConstant () override |
Constant * | getSequentialElement () const |
Constant * | getStructElement (unsigned Elt) const |
Constant * | getElementValue (Constant *C) const |
Constant * | getElementValue (unsigned Idx) const |
Static Public Member Functions | |
static ConstantAggregateZero * | get (Type *Ty) |
static bool | classof (const Value *V) |
Protected Member Functions | |
ConstantAggregateZero (Type *ty) | |
void * | operator new (size_t s) |
ConstantAggregateZero - All zero aggregate value
Definition at line 293 of file Constants.h.
llvm::ConstantAggregateZero::ConstantAggregateZero | ( | Type * | ty | ) | [inline, explicit, protected] |
Definition at line 297 of file Constants.h.
static bool llvm::ConstantAggregateZero::classof | ( | const Value * | V | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::Constant.
Definition at line 327 of file Constants.h.
References llvm::Value::ConstantAggregateZeroVal, and llvm::Value::getValueID().
void ConstantAggregateZero::destroyConstant | ( | ) | [override, virtual] |
destroyConstant - Remove the constant from the constant table.
Reimplemented from llvm::Constant.
Definition at line 1343 of file Constants.cpp.
References llvm::LLVMContextImpl::CAZConstants, llvm::Constant::destroyConstantImpl(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::erase(), llvm::Value::getContext(), llvm::Value::getType(), and llvm::LLVMContext::pImpl.
ConstantAggregateZero * ConstantAggregateZero::get | ( | Type * | Ty | ) | [static] |
Definition at line 1330 of file Constants.cpp.
References llvm::LLVMContextImpl::CAZConstants, llvm::Type::getContext(), llvm::Type::isArrayTy(), llvm::Type::isStructTy(), llvm::Type::isVectorTy(), and llvm::LLVMContext::pImpl.
Referenced by llvm::IRBuilder< true, TargetFolder >::CreateVectorSplat(), llvm::ConstantDataSequential::getImpl(), llvm::Constant::getNullValue(), llvm::MapValue(), llvm::ConstantArray::replaceUsesOfWithOnConstant(), llvm::ConstantStruct::replaceUsesOfWithOnConstant(), and llvm::InstCombiner::visitCallInst().
Constant * ConstantAggregateZero::getElementValue | ( | Constant * | C | ) | const |
getElementValue - Return a zero of the right value for the specified GEP index.
getElementValue - Return a zero of the right value for the specified GEP index if we can, otherwise return null (e.g. if C is a ConstantExpr).
Definition at line 755 of file Constants.cpp.
References getSequentialElement(), getStructElement(), and llvm::Value::getType().
Constant * ConstantAggregateZero::getElementValue | ( | unsigned | Idx | ) | const |
getElementValue - Return a zero of the right value for the specified GEP index.
Definition at line 763 of file Constants.cpp.
References getSequentialElement(), getStructElement(), and llvm::Value::getType().
Constant * ConstantAggregateZero::getSequentialElement | ( | ) | const |
getSequentialElement - If this CAZ has array or vector type, return a zero with the right element type.
Definition at line 743 of file Constants.cpp.
References llvm::Constant::getNullValue(), and llvm::Value::getType().
Referenced by getElementValue().
Constant * ConstantAggregateZero::getStructElement | ( | unsigned | Elt | ) | const |
getStructElement - If this CAZ has struct type, return a zero with the right element type for the specified element.
Definition at line 749 of file Constants.cpp.
References llvm::Constant::getNullValue(), and llvm::Value::getType().
Referenced by getElementValue().
void* llvm::ConstantAggregateZero::operator new | ( | size_t | s | ) | [inline, protected] |
Reimplemented from llvm::User.
Definition at line 301 of file Constants.h.