LLVM API Documentation
#include "llvm/IR/DIBuilder.h"
#include "llvm/ADT/STLExtras.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"
#include "llvm/Support/Dwarf.h"
Go to the source code of this file.
static MDNode* createFilePathPair | ( | LLVMContext & | VMContext, |
StringRef | Filename, | ||
StringRef | Directory | ||
) | [static] |
Definition at line 88 of file DIBuilder.cpp.
References llvm::StringRef::empty(), llvm::MDString::get(), and llvm::MDNode::get().
Referenced by llvm::DIBuilder::createCompileUnit(), and llvm::DIBuilder::createFile().
static DISubprogram createFunctionHelper | ( | LLVMContext & | VMContext, |
DIDescriptor | Context, | ||
StringRef | Name, | ||
StringRef | LinkageName, | ||
DIFile | File, | ||
unsigned | LineNo, | ||
DICompositeType | Ty, | ||
bool | isLocalToUnit, | ||
bool | isDefinition, | ||
unsigned | ScopeLine, | ||
unsigned | Flags, | ||
bool | isOptimized, | ||
Function * | Fn, | ||
MDNode * | TParams, | ||
MDNode * | Decl, | ||
std::function< MDNode *(ArrayRef< Value * >)> | CreateFunc | ||
) | [static] |
Definition at line 1174 of file DIBuilder.cpp.
References llvm::dwarf::DW_TAG_base_type, llvm::dwarf::DW_TAG_subprogram, llvm::dwarf::DW_TAG_subroutine_type, llvm::MDString::get(), llvm::ConstantInt::get(), llvm::DIFile::getFileNode(), llvm::Type::getInt1Ty(), llvm::Type::getInt32Ty(), getNonCompileUnitScope(), llvm::DIScope::getRef(), llvm::DIDescriptor::getTag(), GetTagConstant(), llvm::MDNode::getTemporary(), and llvm::DIDescriptor::isSubprogram().
Referenced by llvm::DIBuilder::createFunction(), and llvm::DIBuilder::createTempFunctionFwdDecl().
static DIImportedEntity createImportedModule | ( | LLVMContext & | C, |
dwarf::Tag | Tag, | ||
DIScope | Context, | ||
Value * | NS, | ||
unsigned | Line, | ||
StringRef | Name, | ||
SmallVectorImpl< TrackingVH< MDNode >> & | AllImportedModules | ||
) | [static] |
Definition at line 157 of file DIBuilder.cpp.
References llvm::StringRef::empty(), llvm::MDString::get(), llvm::ConstantInt::get(), llvm::MDNode::get(), llvm::Type::getInt32Ty(), GetTagConstant(), and llvm::DIImportedEntity::Verify().
static DIGlobalVariable createStaticVariableHelper | ( | LLVMContext & | VMContext, |
DIDescriptor | Context, | ||
StringRef | Name, | ||
StringRef | LinkageName, | ||
DIFile | F, | ||
unsigned | LineNumber, | ||
DITypeRef | Ty, | ||
bool | isLocalToUnit, | ||
Value * | Val, | ||
MDNode * | Decl, | ||
bool | isDefinition, | ||
std::function< MDNode *(ArrayRef< Value * >)> | CreateFunc | ||
) | [static] |
Definition at line 1016 of file DIBuilder.cpp.
References llvm::dwarf::DW_TAG_variable, F(), llvm::MDString::get(), llvm::ConstantInt::get(), llvm::Type::getInt32Ty(), getNonCompileUnitScope(), llvm::Constant::getNullValue(), and GetTagConstant().
Referenced by llvm::DIBuilder::createStaticVariable(), and llvm::DIBuilder::createTempStaticVariableFwdDecl().
static MDNode* getNonCompileUnitScope | ( | MDNode * | N | ) | [static] |
getNonCompileUnitScope - If N is compile unit return NULL otherwise return N.
Definition at line 82 of file DIBuilder.cpp.
Referenced by llvm::DIBuilder::createClassType(), llvm::DIBuilder::createComplexVariable(), llvm::DIBuilder::createEnumerationType(), llvm::DIBuilder::createForwardDecl(), createFunctionHelper(), llvm::DIBuilder::createLexicalBlock(), llvm::DIBuilder::createLocalVariable(), llvm::DIBuilder::createMemberType(), llvm::DIBuilder::createMethod(), llvm::DIBuilder::createNameSpace(), llvm::DIBuilder::createObjCIVar(), llvm::DIBuilder::createReplaceableForwardDecl(), llvm::DIBuilder::createStaticMemberType(), createStaticVariableHelper(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createTemplateTypeParameter(), llvm::DIBuilder::createTypedef(), and llvm::DIBuilder::createUnionType().
static Constant* GetTagConstant | ( | LLVMContext & | VMContext, |
unsigned | Tag | ||
) | [static] |
Definition at line 26 of file DIBuilder.cpp.
References llvm::ConstantInt::get(), llvm::Type::getInt32Ty(), llvm::LLVMDebugVersion, and llvm::LLVMDebugVersionMask.
Referenced by llvm::DIBuilder::createArrayType(), llvm::DIBuilder::createBasicType(), llvm::DIBuilder::createClassType(), llvm::DIBuilder::createCompileUnit(), llvm::DIBuilder::createComplexVariable(), llvm::DIBuilder::createEnumerationType(), llvm::DIBuilder::createEnumerator(), llvm::DIBuilder::createFile(), llvm::DIBuilder::createForwardDecl(), llvm::DIBuilder::createFriend(), createFunctionHelper(), llvm::DIBuilder::createGlobalVariable(), createImportedModule(), llvm::DIBuilder::createInheritance(), llvm::DIBuilder::createLexicalBlock(), llvm::DIBuilder::createLexicalBlockFile(), llvm::DIBuilder::createLocalVariable(), llvm::DIBuilder::createMemberPointerType(), llvm::DIBuilder::createMemberType(), llvm::DIBuilder::createMethod(), llvm::DIBuilder::createNameSpace(), llvm::DIBuilder::createObjCIVar(), llvm::DIBuilder::createObjCProperty(), llvm::DIBuilder::createPointerType(), llvm::DIBuilder::createQualifiedType(), llvm::DIBuilder::createReferenceType(), llvm::DIBuilder::createReplaceableForwardDecl(), llvm::DIBuilder::createStaticMemberType(), createStaticVariableHelper(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createSubroutineType(), llvm::DIBuilder::createTemplateTypeParameter(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createUnspecifiedType(), llvm::DIBuilder::createVectorType(), and llvm::DIBuilder::getOrCreateSubrange().