OpenASIP  2.0
Public Member Functions | Static Public Attributes | List of all members
InstructionPatternAnalyzer Struct Reference

#include <InstructionPatternAnalyzer.hh>

Inheritance diagram for InstructionPatternAnalyzer:
Inheritance graph
Collaboration diagram for InstructionPatternAnalyzer:
Collaboration graph

Public Member Functions

 InstructionPatternAnalyzer ()
 
virtual ~InstructionPatternAnalyzer ()
 
virtual bool runOnMachineFunction (llvm::MachineFunction &F)
 

Static Public Attributes

static char ID = 0
 

Detailed Description

Definition at line 46 of file InstructionPatternAnalyzer.hh.

Constructor & Destructor Documentation

◆ InstructionPatternAnalyzer()

InstructionPatternAnalyzer::InstructionPatternAnalyzer ( )
inline

Definition at line 48 of file InstructionPatternAnalyzer.hh.

48 : MachineFunctionPass(ID) {}

◆ ~InstructionPatternAnalyzer()

virtual InstructionPatternAnalyzer::~InstructionPatternAnalyzer ( )
inlinevirtual

Definition at line 49 of file InstructionPatternAnalyzer.hh.

49 {}

Member Function Documentation

◆ runOnMachineFunction()

bool InstructionPatternAnalyzer::runOnMachineFunction ( llvm::MachineFunction &  F)
virtual

Definition at line 44 of file InstructionPatternAnalyzer.cc.

44  {
45  MachineInstrDDG ddg(F);
46  ddg.setPrintOnlyCriticalPath(true);
47  ddg.writeToDotFile(F.getFunction().getName().str() + ".pre_ra.critical_path.dot");
48  ddg.setPrintOnlyCriticalPath(false);
49  ddg.computeOptimalSchedule();
50  ddg.writeToDotFile(F.getFunction().getName().str() + ".pre_ra.dot");
51  return false;
52 }

References MachineInstrDDG::computeOptimalSchedule(), MachineInstrDDG::setPrintOnlyCriticalPath(), and GraphBase< GraphNode, GraphEdge >::writeToDotFile().

Here is the call graph for this function:

Member Data Documentation

◆ ID

char InstructionPatternAnalyzer::ID = 0
static

Definition at line 47 of file InstructionPatternAnalyzer.hh.


The documentation for this struct was generated from the following files:
MachineInstrDDG
Definition: MachineInstrDDG.hh:140
InstructionPatternAnalyzer::ID
static char ID
Definition: InstructionPatternAnalyzer.hh:47