28#ifndef LLVM_SUPPORT_DEBUG_H
29#define LLVM_SUPPORT_DEBUG_H
77#define DEBUG_WITH_TYPE(TYPE, ...) \
79 if (::llvm::DebugFlag && ::llvm::isCurrentDebugType(TYPE, 1)) { \
85#define isCurrentDebugType(X) (false)
86#define setCurrentDebugType(X) do { (void)(X); } while (false)
87#define setCurrentDebugTypes(X, N) do { (void)(X); (void)(N); } while (false)
88#define DEBUG_WITH_TYPE(TYPE, ...) \
119#define LLVM_DEBUG(...) DEBUG_WITH_TYPE(DEBUG_TYPE, __VA_ARGS__)
The instances of the Type class are immutable: once they are created, they are never changed.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI bool EnableDebugBuffering
EnableDebugBuffering - This defaults to false.
LLVM_ABI bool isCurrentDebugType(const char *Type, int Level=0)
isCurrentDebugType - Return true if the specified string is the debug type specified on the command l...
LLVM_ABI bool DebugFlag
This boolean is set to true if the '-debug' command line option is specified.
LLVM_ABI void setCurrentDebugTypes(const char **Types, unsigned Count)
setCurrentDebugTypes - Set the current debug type, as if the -debug-only=X,Y,Z option were specified.
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
LLVM_ABI void setCurrentDebugType(const char *Type)
setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified.