OpenASIP
2.0
|
#include <PRegionMarkerAnalyzer.hh>
Public Member Functions | |
PRegionMarkerAnalyzer (const llvm::MachineFunction &MF_) | |
virtual | ~PRegionMarkerAnalyzer () |
bool | markersFound () const |
unsigned | pregion (const llvm::MachineInstr &I) const |
Private Member Functions | |
bool | isPregionEndMarker (const llvm::MachineInstr &I) const |
bool | isPregionStartMarker (const llvm::MachineInstr &I) const |
unsigned | parsePregionID (const llvm::MachineInstr &I) const |
void | findPregions () |
void | propagatePregionID (const llvm::MachineInstr &start, unsigned id) |
Private Attributes | |
const llvm::MachineFunction & | MF |
bool | markersFound_ |
std::map< const llvm::MachineInstr *, unsigned > | pregionIDs_ |
Definition at line 42 of file PRegionMarkerAnalyzer.hh.
PRegionMarkerAnalyzer::PRegionMarkerAnalyzer | ( | const llvm::MachineFunction & | MF_ | ) |
Definition at line 48 of file PRegionMarkerAnalyzer.cc.
References findPregions(), isPregionEndMarker(), isPregionStartMarker(), markersFound_, and MF.
|
inlinevirtual |
Definition at line 45 of file PRegionMarkerAnalyzer.hh.
|
private |
Finds the parallel region markers and propagates the parallel region ids to the instructions dominated by it.
Definition at line 107 of file PRegionMarkerAnalyzer.cc.
References isPregionStartMarker(), MF, parsePregionID(), and propagatePregionID().
Referenced by PRegionMarkerAnalyzer().
|
private |
Definition at line 128 of file PRegionMarkerAnalyzer.cc.
References TCEString::startsWith().
Referenced by PRegionMarkerAnalyzer(), and propagatePregionID().
|
private |
Definition at line 140 of file PRegionMarkerAnalyzer.cc.
References TCEString::startsWith().
Referenced by findPregions(), parsePregionID(), PRegionMarkerAnalyzer(), and propagatePregionID().
bool PRegionMarkerAnalyzer::markersFound | ( | ) | const |
Definition at line 123 of file PRegionMarkerAnalyzer.cc.
References markersFound_.
Referenced by llvm::LLVMTCEBuilder::addPointerAnnotations().
|
private |
Definition at line 152 of file PRegionMarkerAnalyzer.cc.
References isPregionStartMarker(), TCEString::split(), and Conversion::toUnsignedInt().
Referenced by findPregions().
unsigned PRegionMarkerAnalyzer::pregion | ( | const llvm::MachineInstr & | I | ) | const |
Definition at line 166 of file PRegionMarkerAnalyzer.cc.
References pregionIDs_.
Referenced by llvm::LLVMTCEBuilder::addPointerAnnotations().
|
private |
Definition at line 68 of file PRegionMarkerAnalyzer.cc.
References isPregionEndMarker(), isPregionStartMarker(), and pregionIDs_.
Referenced by findPregions().
|
private |
Definition at line 61 of file PRegionMarkerAnalyzer.hh.
Referenced by markersFound(), and PRegionMarkerAnalyzer().
|
private |
Definition at line 60 of file PRegionMarkerAnalyzer.hh.
Referenced by findPregions(), and PRegionMarkerAnalyzer().
|
private |
Definition at line 62 of file PRegionMarkerAnalyzer.hh.
Referenced by pregion(), and propagatePregionID().