LLVM
17.0.0git
|
Go to the source code of this file.
Namespaces | |
llvm | |
This is an optimization pass for GlobalISel generic memory operations. | |
Macros | |
#define | DEBUG_WITH_TYPE(TYPE, X) |
DEBUG_WITH_TYPE macro - This macro should be used by passes to emit debug information. More... | |
#define | LLVM_DEBUG(X) DEBUG_WITH_TYPE(DEBUG_TYPE, X) |
Functions | |
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::setCurrentDebugType (const char *Type) |
setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified. 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... | |
raw_ostream & | llvm::dbgs () |
dbgs() - This returns a reference to a raw_ostream for debugging messages. More... | |
Variables | |
bool | llvm::DebugFlag = false |
This boolean is set to true if the '-debug' command line option is specified. More... | |
bool | llvm::EnableDebugBuffering = false |
EnableDebugBuffering - This defaults to false. More... | |
#define DEBUG_WITH_TYPE | ( | TYPE, | |
X | |||
) |
DEBUG_WITH_TYPE macro - This macro should be used by passes to emit debug information.
In the '-debug' option is specified on the commandline, and if this is a debug build, then the code specified as the option to the macro will be executed. Otherwise it will not be. Example:
DEBUG_WITH_TYPE("bitset", dbgs() << "Bitset contains: " << Bitset << "\n");
This will emit the debug information if -debug is present, and -debug-only is not specified, or is specified as "bitset".
#define LLVM_DEBUG | ( | X | ) | DEBUG_WITH_TYPE(DEBUG_TYPE, X) |