18#include "llvm/Config/llvm-config.h"
38 O <<
"; Trace from function " <<
F->getName() <<
", blocks:\n";
41 (*i)->printAsOperand(O,
true,
getModule());
44 O <<
"; Trace parent function: \n" << *
F;
47#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
const Function * getParent() const
Return the enclosing method, or null if none.
Module * getParent()
Get the module that this global value is contained inside of...
A Module instance is used to store all the information related to an LLVM module.
void dump() const
dump - Debugger convenience method; writes trace to standard error output stream.
BasicBlock * getEntryBasicBlock() const
getEntryBasicBlock - Return the entry basic block (first block) of the trace.
Function * getFunction() const
getFunction - Return this trace's parent function.
void print(raw_ostream &O) const
print - Write trace to output stream.
Module * getModule() const
getModule - Return this Module that contains this trace's parent function.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.