LLVM  15.0.0git
Namespaces | Functions | Variables
Debug.cpp File Reference
#include "llvm/Support/Debug.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/circular_raw_ostream.h"
#include "llvm/Support/raw_ostream.h"
#include "DebugOptions.h"
Include dependency graph for Debug.cpp:

Go to the source code of this file.


 This is an optimization pass for GlobalISel generic memory operations.


bool llvm::isCurrentDebugType (const char *Type)
 isCurrentDebugType - Return true if the specified string is the debug type specified on the command line, or if none was specified on the command line with the -debug-only=X option. More...
void llvm::setCurrentDebugTypes (const char **Types, unsigned Count)
 setCurrentDebugTypes - Set the current debug type, as if the -debug-only=X,Y,Z option were specified. More...
void llvm::setCurrentDebugType (const char *Type)
 setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified. More...
static void debug_user_sig_handler (void *Cookie)


static ManagedStatic< std::vector< std::string > > llvm::CurrentDebugType
static ManagedStatic< cl::opt< bool, true >, CreateDebug > Debug
static ManagedStatic< cl::opt< unsigned >, CreateDebugBufferSize > DebugBufferSize
static DebugOnlyOpt DebugOnlyOptLoc
static ManagedStatic< cl::opt< DebugOnlyOpt, true, cl::parser< std::string > >, CreateDebugOnly > DebugOnly

Function Documentation

◆ debug_user_sig_handler()

static void debug_user_sig_handler ( void *  Cookie)

Definition at line 152 of file Debug.cpp.

References llvm::dbgs(), and llvm::circular_raw_ostream::flushBufferWithBanner().

Referenced by llvm::dbgs().

Variable Documentation

◆ Debug

ManagedStatic<cl::opt<bool, true>, CreateDebug> Debug

Definition at line 108 of file Debug.cpp.

◆ DebugBufferSize

ManagedStatic<cl::opt<unsigned>, CreateDebugBufferSize> DebugBufferSize

Definition at line 109 of file Debug.cpp.

Referenced by llvm::dbgs(), and llvm::initDebugOptions().

◆ DebugOnly

ManagedStatic<cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >, CreateDebugOnly> DebugOnly

Definition at line 143 of file Debug.cpp.

Referenced by llvm::initDebugOptions().

◆ DebugOnlyOptLoc

DebugOnlyOpt DebugOnlyOptLoc

Definition at line 126 of file Debug.cpp.