|
LLVM 23.0.0git
|
#include "llvm/IR/DebugInfoMetadata.h"#include "LLVMContextImpl.h"#include "MetadataImpl.h"#include "llvm/ADT/SetVector.h"#include "llvm/ADT/StringSwitch.h"#include "llvm/BinaryFormat/Dwarf.h"#include "llvm/IR/DebugProgramInstruction.h"#include "llvm/IR/Function.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Type.h"#include "llvm/IR/Value.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/Compiler.h"#include <numeric>#include <optional>#include "llvm/IR/DebugInfoFlags.def"Go to the source code of this file.
Classes | |
| struct | EqualScopesMatcher |
| struct | ScopeLocationsMatcher |
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
Macros | |
| #define | HANDLE_DI_FLAG(ID, NAME) |
| #define | HANDLE_DI_FLAG(ID, NAME) |
| #define | HANDLE_DI_FLAG(ID, NAME) |
| #define | UNWRAP_ARGS_IMPL(...) |
| #define | UNWRAP_ARGS(ARGS) |
| #define | DEFINE_GETIMPL_LOOKUP(CLASS, ARGS) |
| #define | DEFINE_GETIMPL_STORE(CLASS, ARGS, OPS) |
| #define | DEFINE_GETIMPL_STORE_NO_OPS(CLASS, ARGS) |
| #define | DEFINE_GETIMPL_STORE_NO_CONSTRUCTOR_ARGS(CLASS, OPS) |
| #define | DEFINE_GETIMPL_STORE_N(CLASS, ARGS, OPS, NUM_OPS) |
| #define | HANDLE_DISP_FLAG(ID, NAME) |
| #define | HANDLE_DISP_FLAG(ID, NAME) |
| #define | HANDLE_DISP_FLAG(ID, NAME) |
Typedefs | |
| using | LineColumn = std::pair<unsigned , unsigned > |
Functions | |
| cl::opt< bool > | llvm::EnableFSDiscriminator ("enable-fs-discriminator", cl::Hidden, cl::desc("Enable adding flow sensitive discriminators")) |
| LLVM_ABI cl::opt< bool > | llvm::PickMergedSourceLocations ("pick-merged-source-locations", cl::init(false), cl::Hidden, cl::desc("Preserve line and column number when merging locations.")) |
| static void | adjustColumn (unsigned &Column) |
| static DILexicalBlockBase * | cloneAndReplaceParentScope (DILexicalBlockBase *LBB, DIScope *NewParent) |
| static LineColumn | getLocalScopeLocationOr (DIScope *S, LineColumn Default) |
| Returns the location of DILocalScope, if present, or a default value. | |
| template<typename MatcherT> | |
| static std::pair< DIScope *, LineColumn > | getNearestMatchingScope (const DILocation *L1, const DILocation *L2) |
| static bool | isCanonical (const MDString *S) |
| static ConstantAsMetadata * | extractConstantMetadata (Metadata *ExtraData) |
| template<typename ScopeT, typename NodeT> | |
| static ScopeT | getRawRetainedNodeScopeInternal (NodeT *N) |
Variables | |
| static const char * | ChecksumKindName [DIFile::CSK_Last] |
| #define DEFINE_GETIMPL_LOOKUP | ( | CLASS, | |
| ARGS ) |
Definition at line 591 of file DebugInfoMetadata.cpp.
Referenced by llvm::DIBasicType::getImpl().
| #define DEFINE_GETIMPL_STORE | ( | CLASS, | |
| ARGS, | |||
| OPS ) |
Definition at line 604 of file DebugInfoMetadata.cpp.
Referenced by llvm::DIBasicType::getImpl().
| #define DEFINE_GETIMPL_STORE_N | ( | CLASS, | |
| ARGS, | |||
| OPS, | |||
| NUM_OPS ) |
Definition at line 615 of file DebugInfoMetadata.cpp.
| #define DEFINE_GETIMPL_STORE_NO_CONSTRUCTOR_ARGS | ( | CLASS, | |
| OPS ) |
Definition at line 612 of file DebugInfoMetadata.cpp.
| #define DEFINE_GETIMPL_STORE_NO_OPS | ( | CLASS, | |
| ARGS ) |
Definition at line 608 of file DebugInfoMetadata.cpp.
| #define HANDLE_DI_FLAG | ( | ID, | |
| NAME ) |
| #define HANDLE_DI_FLAG | ( | ID, | |
| NAME ) |
| #define HANDLE_DI_FLAG | ( | ID, | |
| NAME ) |
| #define HANDLE_DISP_FLAG | ( | ID, | |
| NAME ) |
| #define HANDLE_DISP_FLAG | ( | ID, | |
| NAME ) |
| #define HANDLE_DISP_FLAG | ( | ID, | |
| NAME ) |
| #define UNWRAP_ARGS | ( | ARGS | ) |
Definition at line 590 of file DebugInfoMetadata.cpp.
| #define UNWRAP_ARGS_IMPL | ( | ... | ) |
Definition at line 589 of file DebugInfoMetadata.cpp.
| using LineColumn = std::pair<unsigned , unsigned > |
Definition at line 139 of file DebugInfoMetadata.cpp.
|
static |
Definition at line 81 of file DebugInfoMetadata.cpp.
|
static |
Definition at line 131 of file DebugInfoMetadata.cpp.
References llvm::cast(), llvm::MDNode::clone(), and llvm::MDNode::replaceWithUniqued().
Referenced by llvm::DILocalScope::cloneScopeForSubprogram(), and llvm::DILocation::getMergedLocation().
|
static |
Definition at line 971 of file DebugInfoMetadata.cpp.
References llvm::cast_or_null(), and llvm::dyn_cast_or_null().
Referenced by llvm::DIDerivedType::getConstant(), llvm::DIDerivedType::getDiscriminantValue(), llvm::DIDerivedType::getStorageOffsetInBits(), and llvm::DIDerivedType::getVBPtrOffset().
|
static |
Returns the location of DILocalScope, if present, or a default value.
Definition at line 142 of file DebugInfoMetadata.cpp.
References assert(), Default, llvm::dyn_cast(), llvm::isa(), and llvm_unreachable.
Referenced by getNearestMatchingScope().
|
static |
Definition at line 158 of file DebugInfoMetadata.cpp.
References getLocalScopeLocationOr(), llvm::DIScope::getScope(), llvm::isa(), and S1.
Referenced by llvm::DILocation::getMergedLocation().
|
static |
Definition at line 1449 of file DebugInfoMetadata.cpp.
References N.
Referenced by llvm::DISubprogram::getRawRetainedNodeScope(), and llvm::DISubprogram::getRawRetainedNodeScope().
Definition at line 555 of file DebugInfoMetadata.cpp.
References llvm::StringRef::empty(), and llvm::MDString::getString().
Referenced by llvm::DIBasicType::getImpl().
Definition at line 1168 of file DebugInfoMetadata.cpp.