LLVM API Documentation
#include "llvm/CodeGen/MachineDebugInfo.h"#include "llvm/Constants.h"#include "llvm/CodeGen/MachineLocation.h"#include "llvm/DerivedTypes.h"#include "llvm/GlobalVariable.h"#include "llvm/Intrinsics.h"#include "llvm/Instructions.h"#include "llvm/Module.h"#include "llvm/Support/Dwarf.h"#include <iostream>Include dependency graph for MachineDebugInfo.cpp:

Go to the source code of this file.
Classes | |
| class | DICountVisitor |
| class | DIDeserializeVisitor |
| class | DISerializeVisitor |
| class | DIGetTypesVisitor |
| class | DIVerifyVisitor |
Functions | |
| static void | getGlobalVariablesUsing (Value *V, std::vector< GlobalVariable * > &Result) |
| static std::vector< GlobalVariable * > | getGlobalVariablesUsing (Module &M, const std::string &RootName) |
| static bool | isStringValue (Value *V) |
| static GlobalVariable * | getGlobalVariable (Value *V) |
| static bool | isGlobalVariable (Value *V) |
| static ConstantUInt * | getUIntOperand (GlobalVariable *GV, unsigned i) |
Variables | |
| RegisterPass< MachineDebugInfo > | X ("machinedebuginfo","Debug Information") |
| static GlobalVariable* getGlobalVariable | ( | Value * | V | ) | [static] |
getGlobalVariable - Return either a direct or cast Global value.
Definition at line 97 of file MachineDebugInfo.cpp.
Referenced by DIVerifyVisitor::Apply(), DIDeserializeVisitor::Apply(), llvm::DIDeserializer::Deserialize(), and llvm::DIVerifier::Verify().
| static std::vector<GlobalVariable*> getGlobalVariablesUsing | ( | Module & | M, | |
| const std::string & | RootName | |||
| ) | [static] |
getGlobalVariablesUsing - Return all of the GlobalVariables that use the named GlobalVariable.
Definition at line 52 of file MachineDebugInfo.cpp.
References llvm::Module::getGlobalVariable(), getGlobalVariablesUsing(), llvm::GlobalValue::hasLinkOnceLinkage(), and M.
| static void getGlobalVariablesUsing | ( | Value * | V, | |
| std::vector< GlobalVariable * > & | Result | |||
| ) | [static] |
getGlobalVariablesUsing - Return all of the GlobalVariables which have the specified value in their initializer somewhere.
Definition at line 36 of file MachineDebugInfo.cpp.
Referenced by llvm::MachineDebugInfo::getGlobalVariablesUsing(), getGlobalVariablesUsing(), llvm::ProgramInfo::getSourceFiles(), and llvm::ProgramInfo::getSourceFunctions().
| static ConstantUInt* getUIntOperand | ( | GlobalVariable * | GV, | |
| unsigned | i | |||
| ) | [static] |
getUIntOperand - Return ith operand if it is an unsigned integer.
Definition at line 123 of file MachineDebugInfo.cpp.
References llvm::User::getNumOperands(), llvm::Constant::getOperand(), and GV.
Referenced by llvm::DebugInfoDesc::TagFromGlobal(), and llvm::DebugInfoDesc::VersionFromGlobal().
| static bool isGlobalVariable | ( | Value * | V | ) | [static] |
isGlobalVariable - Return true if the given value can be coerced to a GlobalVariable.
Definition at line 110 of file MachineDebugInfo.cpp.
References V.
Referenced by DIVerifyVisitor::Apply().
| static bool isStringValue | ( | Value * | V | ) | [static] |
isStringValue - Return true if the given value can be coerced to a string.
Definition at line 73 of file MachineDebugInfo.cpp.
References C, GV, llvm::ConstantArray::isString(), and V.
Referenced by DIVerifyVisitor::Apply().
RegisterPass<MachineDebugInfo> X("machinedebuginfo","Debug Information") [static] |