|
LLVM
4.0.0
|
DWARF expression. More...
#include <DebugInfoMetadata.h>
Classes | |
| class | expr_op_iterator |
| An iterator for expression operands. More... | |
| class | ExprOperand |
| A lightweight wrapper around an expression operand. More... | |
| struct | FragmentInfo |
| Holds the characteristics of one fragment of a larger variable. More... | |
Public Types | |
| typedef ArrayRef< uint64_t > ::iterator | element_iterator |
Public Types inherited from llvm::MDNode | |
| typedef const MDOperand * | op_iterator |
| typedef iterator_range < op_iterator > | op_range |
Public Types inherited from llvm::Metadata | |
| enum | MetadataKind |
Static Public Member Functions | |
| static bool | classof (const Metadata *MD) |
| static Optional< FragmentInfo > | getFragmentInfo (expr_op_iterator Start, expr_op_iterator End) |
| Retrieve the details of this fragment expression. More... | |
Static Public Member Functions inherited from llvm::MDNode | |
| static MDTuple * | get (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
| static MDTuple * | getIfExists (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
| static MDTuple * | getDistinct (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
| static TempMDTuple | getTemporary (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
| static void | deleteTemporary (MDNode *N) |
| Deallocate a node created by getTemporary. More... | |
| template<class T > | |
| static std::enable_if < std::is_base_of< MDNode, T > ::value, T * >::type | replaceWithPermanent (std::unique_ptr< T, TempMDNodeDeleter > N) |
| Replace a temporary node with a permanent one. More... | |
| template<class T > | |
| static std::enable_if < std::is_base_of< MDNode, T > ::value, T * >::type | replaceWithUniqued (std::unique_ptr< T, TempMDNodeDeleter > N) |
| Replace a temporary node with a uniqued one. More... | |
| template<class T > | |
| static std::enable_if < std::is_base_of< MDNode, T > ::value, T * >::type | replaceWithDistinct (std::unique_ptr< T, TempMDNodeDeleter > N) |
| Replace a temporary node with a distinct one. More... | |
| static bool | classof (const Metadata *MD) |
| Methods for support type inquiry through isa, cast, and dyn_cast: More... | |
| static MDNode * | concatenate (MDNode *A, MDNode *B) |
| Methods for metadata merging. More... | |
| static MDNode * | intersect (MDNode *A, MDNode *B) |
| static MDNode * | getMostGenericTBAA (MDNode *A, MDNode *B) |
| static MDNode * | getMostGenericFPMath (MDNode *A, MDNode *B) |
| static MDNode * | getMostGenericRange (MDNode *A, MDNode *B) |
| static MDNode * | getMostGenericAliasScope (MDNode *A, MDNode *B) |
| static MDNode * | getMostGenericAlignmentOrDereferenceable (MDNode *A, MDNode *B) |
Friends | |
| class | LLVMContextImpl |
| class | MDNode |
Additional Inherited Members | |
Protected Types inherited from llvm::MDNode | |
| typedef iterator_range < MDOperand * > | mutable_op_range |
Protected Types inherited from llvm::Metadata | |
| enum | StorageType { Uniqued, Distinct, Temporary } |
| Active type of storage. More... | |
Protected Member Functions inherited from llvm::MDNode | |
| void * | operator new (size_t Size, unsigned NumOps) |
| void | operator delete (void *Mem) |
| void | operator delete (void *, unsigned) |
| Required by std, but never called. More... | |
| void | operator delete (void *, unsigned, bool) |
| Required by std, but never called. More... | |
| MDNode (LLVMContext &Context, unsigned ID, StorageType Storage, ArrayRef< Metadata * > Ops1, ArrayRef< Metadata * > Ops2=None) | |
| ~MDNode ()=default | |
| void | dropAllReferences () |
| MDOperand * | mutable_begin () |
| MDOperand * | mutable_end () |
| mutable_op_range | mutable_operands () |
| void | setOperand (unsigned I, Metadata *New) |
| Set an operand. More... | |
| void | storeDistinctInContext () |
Protected Member Functions inherited from llvm::Metadata | |
| Metadata (unsigned ID, StorageType Storage) | |
| ~Metadata ()=default | |
| void | handleChangedOperand (void *, Metadata *) |
| Default handling of a changed operand, which asserts. More... | |
Static Protected Member Functions inherited from llvm::MDNode | |
| template<class T , class StoreT > | |
| static T * | storeImpl (T *N, StorageType Storage, StoreT &Store) |
| template<class T > | |
| static T * | storeImpl (T *N, StorageType Storage) |
Protected Attributes inherited from llvm::Metadata | |
| unsigned char | Storage |
| Storage flag for non-uniqued, otherwise unowned, metadata. More... | |
| unsigned short | SubclassData16 |
| unsigned | SubclassData32 |
DWARF expression.
This is (almost) a DWARF expression that modifies the location of a variable, or the location of a single piece of a variable, or (when using DW_OP_stack_value) is the constant variable value.
FIXME: Instead of DW_OP_plus taking an argument, this should use DW_OP_const and have DW_OP_plus consume the topmost elements on the stack.
TODO: Co-allocate the expression elements. TODO: Separate from MDNode, or otherwise drop Distinct and Temporary storage types.
Definition at line 1967 of file DebugInfoMetadata.h.
| typedef ArrayRef<uint64_t>::iterator llvm::DIExpression::element_iterator |
Definition at line 2002 of file DebugInfoMetadata.h.
Definition at line 2094 of file DebugInfoMetadata.h.
References llvm::Metadata::getMetadataID().
|
inline |
Definition at line 1987 of file DebugInfoMetadata.h.
|
inline |
Definition at line 2003 of file DebugInfoMetadata.h.
References llvm::ArrayRef< T >::begin(), and getElements().
Referenced by BuildReplacementDIExpr(), and expr_op_begin().
|
inline |
Definition at line 2004 of file DebugInfoMetadata.h.
References llvm::ArrayRef< T >::end(), and getElements().
Referenced by BuildReplacementDIExpr(), and expr_op_end().
|
inline |
Visit the elements via ExprOperand wrappers.
These range iterators visit elements through ExprOperand wrappers. This is not guaranteed to be a valid range unless isValid() gives true.
true. Definition at line 2084 of file DebugInfoMetadata.h.
References elements_begin().
Referenced by llvm::DIExpressionCursor::DIExpressionCursor(), getFragmentInfo(), and isValid().
|
inline |
Definition at line 2087 of file DebugInfoMetadata.h.
References elements_end().
Referenced by llvm::DIExpressionCursor::DIExpressionCursor(), getFragmentInfo(), and isValid().
|
inline |
Definition at line 1994 of file DebugInfoMetadata.h.
References assert(), I, and llvm::ArrayRef< T >::size().
Referenced by emitDebugValueComment(), llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(), isConstant(), and startsWithDeref().
|
inline |
Definition at line 1991 of file DebugInfoMetadata.h.
Referenced by elements_begin(), elements_end(), and llvm::MDNodeKeyImpl< DIExpression >::isKeyOf().
|
static |
Retrieve the details of this fragment expression.
Definition at line 625 of file DebugInfoMetadata.cpp.
References llvm::dwarf::DW_OP_LLVM_fragment, llvm::WebAssembly::End, I, and llvm::None.
Referenced by llvm::DwarfExpression::addFragmentOffset(), emitDebugValueComment(), llvm::DebugHandlerBase::fragmentCmp(), llvm::operator<(), and sortGlobalExprs().
|
inline |
Retrieve the details of this fragment expression.
Definition at line 2114 of file DebugInfoMetadata.h.
References expr_op_begin(), and expr_op_end().
Referenced by llvm::DIExpressionCursor::getFragmentInfo(), and isFragment().
|
inline |
Definition at line 1993 of file DebugInfoMetadata.h.
References llvm::ArrayRef< T >::size().
Referenced by emitDebugValueComment(), isConstant(), and startsWithDeref().
| bool DIExpression::isConstant | ( | ) | const |
Determine whether this represents a standalone constant value.
Definition at line 634 of file DebugInfoMetadata.cpp.
References llvm::dwarf::DW_OP_LLVM_fragment, getElement(), and getNumElements().
Referenced by llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE().
|
inline |
Return whether this is a piece of an aggregate variable.
Definition at line 2119 of file DebugInfoMetadata.h.
References getFragmentInfo().
Referenced by llvm::DwarfExpression::addFragmentOffset(), llvm::DebugHandlerBase::fragmentsOverlap(), and llvm::DebugLocEntry::Value::isFragment().
| bool DIExpression::isValid | ( | ) | const |
Definition at line 592 of file DebugInfoMetadata.cpp.
References llvm::dwarf::DW_OP_LLVM_fragment, E, expr_op_begin(), expr_op_end(), and I.
Referenced by llvm::DbgVariable::initializeMMI().
|
inline |
Is the first element a DW_OP_deref?.
Definition at line 2099 of file DebugInfoMetadata.h.
References getElement(), and getNumElements().
|
friend |
Definition at line 1968 of file DebugInfoMetadata.h.
|
friend |
Definition at line 1969 of file DebugInfoMetadata.h.
1.8.6