LLVM: lib/Analysis/Trace.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

18#include "llvm/Config/llvm-config.h"

24

25using namespace llvm;

26

30

34

35

38 O << "; Trace from function " << F->getName() << ", blocks:\n";

40 O << "; ";

41 (*i)->printAsOperand(O, true, getModule());

42 O << "\n";

43 }

44 O << "; Trace parent function: \n" << *F;

45}

46

47#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

48

49

53#endif

#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.

Definition Trace.cpp:50

BasicBlockListType::const_iterator const_iterator

BasicBlock * getEntryBasicBlock() const

getEntryBasicBlock - Return the entry basic block (first block) of the trace.

Function * getFunction() const

getFunction - Return this trace's parent function.

Definition Trace.cpp:27

void print(raw_ostream &O) const

print - Write trace to output stream.

Definition Trace.cpp:36

Module * getModule() const

getModule - Return this Module that contains this trace's parent function.

Definition Trace.cpp:31

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.

LLVM_ABI raw_ostream & dbgs()

dbgs() - This returns a reference to a raw_ostream for debugging messages.