LLVM
8.0.1
|
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/IRBuilder.h"
#include "LLVMContextImpl.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
Go to the source code of this file.
Variables | |
cl::opt< bool > | UseDbgAddr ("use-dbg-addr", llvm::cl::desc("Use llvm.dbg.addr for all local variables"), cl::init(false), cl::Hidden) |
|
static |
Definition at line 631 of file DIBuilder.cpp.
References assert(), and getNonCompileUnitScope().
Referenced by llvm::DIBuilder::createGlobalVariableExpression(), and llvm::DIBuilder::createTempGlobalVariableFwdDecl().
|
static |
Definition at line 164 of file DIBuilder.cpp.
References assert(), llvm::SmallVectorImpl< T >::emplace_back(), llvm::MDNode::get(), and llvm::LLVMContext::pImpl.
Referenced by llvm::DIBuilder::createImportedDeclaration(), llvm::DIBuilder::createImportedModule(), LLVMDIBuilderCreateImportedModuleFromAlias(), LLVMDIBuilderCreateImportedModuleFromModule(), and LLVMDIBuilderCreateImportedModuleFromNamespace().
|
static |
Definition at line 670 of file DIBuilder.cpp.
References Context, and getNonCompileUnitScope().
Referenced by llvm::DIBuilder::createAutoVariable(), and llvm::DIBuilder::createParameterVariable().
|
static |
Definition at line 413 of file DIBuilder.cpp.
References assert(), and llvm::MDNode::get().
Referenced by llvm::DIBuilder::createTemplateParameterPack(), llvm::DIBuilder::createTemplateTemplateParameter(), and llvm::DIBuilder::createTemplateValueParameter().
|
static |
Definition at line 543 of file DIBuilder.cpp.
References llvm::DIType::cloneWithFlags(), llvm::DIType::getFlags(), and llvm::MDNode::replaceWithUniqued().
Referenced by llvm::DIBuilder::createArtificialType(), and llvm::DIBuilder::createObjectPointerType().
|
static |
Definition at line 345 of file DIBuilder.cpp.
References llvm::ConstantAsMetadata::get().
Referenced by llvm::DIBuilder::createStaticMemberType(), llvm::DIBuilder::createTemplateValueParameter(), and llvm::DIBuilder::createVariantMemberType().
|
static |
Definition at line 903 of file DIBuilder.cpp.
References assert(), llvm::MetadataAsValue::get(), and llvm::ValueAsMetadata::get().
Referenced by getDeclareIntrin().
Definition at line 908 of file DIBuilder.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, assert(), B, llvm::IRBuilder< T, Inserter >::CreateCall(), llvm::Intrinsic::dbg_addr, llvm::Intrinsic::dbg_declare, llvm::Intrinsic::dbg_label, llvm::Intrinsic::dbg_value, llvm::MetadataAsValue::get(), getDbgIntrinsicValueImpl(), llvm::Intrinsic::getDeclaration(), getIRBForDbgInsertion(), llvm::DILocalVariable::getScope(), llvm::DILabel::getScope(), llvm::DILocalScope::getSubprogram(), and UseDbgAddr.
|
static |
Return an IRBuilder for inserting dbg.declare and dbg.value intrinsics.
This abstracts over the various ways to specify an insert position.
Definition at line 891 of file DIBuilder.cpp.
References B, and llvm::MDNode::getContext().
Referenced by getDeclareIntrin().
If N is compile unit return NULL otherwise return N.
Definition at line 132 of file DIBuilder.cpp.
References N.
Referenced by checkGlobalVariableScope(), llvm::DIBuilder::createBitFieldMemberType(), llvm::DIBuilder::createClassType(), llvm::DIBuilder::createEnumerationType(), llvm::DIBuilder::createForwardDecl(), llvm::DIBuilder::createLabel(), llvm::DIBuilder::createLexicalBlock(), createLocalVariable(), llvm::DIBuilder::createMemberType(), llvm::DIBuilder::createMethod(), llvm::DIBuilder::createModule(), llvm::DIBuilder::createNameSpace(), llvm::DIBuilder::createObjCIVar(), llvm::DIBuilder::createReplaceableCompositeType(), llvm::DIBuilder::createStaticMemberType(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createTempFunctionFwdDecl(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createVariantMemberType(), and llvm::DIBuilder::createVariantPart().
|
static |
Definition at line 746 of file DIBuilder.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::MDNode::get(), and llvm::MDNode::getDistinct().
Referenced by llvm::Function::classof(), llvm::DIBuilder::createMethod(), llvm::DILocalScope::DILocalScope(), llvm::Function::isDebugInfoForProfiling(), and LLVMGetSubprogram().
cl::opt<bool> UseDbgAddr("use-dbg-addr", llvm::cl::desc("Use llvm.dbg.addr for all local variables"), cl::init(false), cl::Hidden) |
Referenced by getDeclareIntrin().