LLVM API Documentation

ProgramInfo.cpp File Reference

#include "llvm/Debugger/ProgramInfo.h"
#include "llvm/Constants.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Intrinsics.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Debugger/SourceFile.h"
#include "llvm/Debugger/SourceLanguage.h"
#include "llvm/Support/SlowOperationInformer.h"
#include "llvm/Support/Streams.h"
#include "llvm/ADT/STLExtras.h"

Include dependency graph for ProgramInfo.cpp:

Go to the source code of this file.

Functions

static void getGlobalVariablesUsing (Value *V, std::vector< GlobalVariable * > &Found)
static const GlobalVariablegetNextStopPoint (const Value *V, unsigned &LineNo, unsigned &ColNo)


Function Documentation

static void getGlobalVariablesUsing ( Value V,
std::vector< GlobalVariable * > &  Found 
) [static]

getGlobalVariablesUsing - Return all of the global variables which have the specified value in their initializer somewhere.

Definition at line 32 of file ProgramInfo.cpp.

References llvm::CallingConv::C, E, getGlobalVariablesUsing(), GV, I, llvm::Value::use_begin(), and llvm::Value::use_end().

static const GlobalVariable* getNextStopPoint ( const Value V,
unsigned LineNo,
unsigned ColNo 
) [static]

getNextStopPoint - Follow the def-use chains of the specified LLVM value, traversing the use chains until we get to a stoppoint. When we do, return the source location of the stoppoint. If we don't find a stoppoint, return null.

Definition at line 46 of file ProgramInfo.cpp.

References CI, E, GV, Op, PHI, llvm::Value::use_begin(), and llvm::Value::use_end().

Referenced by llvm::SourceFunctionInfo::getSourceLocation().




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.