Go to the documentation of this file.
28 #ifndef LLVM_SUPPORT_DEBUG_H
29 #define LLVM_SUPPORT_DEBUG_H
64 #define DEBUG_WITH_TYPE(TYPE, X) \
65 do { if (::llvm::DebugFlag && ::llvm::isCurrentDebugType(TYPE)) { X; } \
69 #define isCurrentDebugType(X) (false)
70 #define setCurrentDebugType(X) do { (void)(X); } while (false)
71 #define setCurrentDebugTypes(X, N) do { (void)(X); (void)(N); } while (false)
72 #define DEBUG_WITH_TYPE(TYPE, X) do { } while (false)
101 #define LLVM_DEBUG(X) DEBUG_WITH_TYPE(DEBUG_TYPE, X)
105 #endif // LLVM_SUPPORT_DEBUG_H
This is an optimization pass for GlobalISel generic memory operations.
bool EnableDebugBuffering
EnableDebugBuffering - This defaults to false.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
void setCurrentDebugType(const char *Type)
setCurrentDebugType - Set the current debug type, as if the -debug-only=X option were specified.
bool isCurrentDebugType(const char *Type)
isCurrentDebugType - Return true if the specified string is the debug type specified on the command l...
void setCurrentDebugTypes(const char **Types, unsigned Count)
setCurrentDebugTypes - Set the current debug type, as if the -debug-only=X,Y,Z option were specified.
bool DebugFlag
This boolean is set to true if the '-debug' command line option is specified.