|
CGRAOmp
0.1
|
An abstract class for an entry to replace IR instruction to targeting CGRA instruction. More...
#include <CGRAInstMap.hpp>
Public Types | |
| enum | InstMapKind { InstMapKind::BinaryOp, InstMapKind::CompOp, InstMapKind::MemOp, InstMapKind::CustomOp, InstMapKind::OtherOp } |
Public Member Functions | |
| InstMapEntry (StringRef opcode, InstMapKind Kind) | |
| Construct a new InstMapEntry object. More... | |
| InstMapEntry (StringRef opcode, InstMapKind Kind, MapCondition *cond) | |
| Construct a new InstMapEntry object with an initial MapCondition instance. More... | |
| ~InstMapEntry () | |
| void | addMapping (MapCondition *cond) |
| set a mapping condition More... | |
| virtual bool | match (Instruction *I)=0 |
| an abstract method to check the condition is met More... | |
| virtual bool | match (StringRef opcode) |
| check this entry is for the specified instruction This will not check the mapping condition. More... | |
| virtual std::string | getMapName () |
| get the map name of this entry More... | |
| void | print (raw_ostream &OS) |
| void | dump () |
| InstMapKind | getKind () const |
Protected Attributes | |
| MapCondition * | map_cond |
| std::string | opcode_str |
Private Attributes | |
| InstMapKind | Kind |
An abstract class for an entry to replace IR instruction to targeting CGRA instruction.
|
strong |
|
inline |
Construct a new InstMapEntry object.
| opcode | string of the instruction opcode |
| Kind | Kind of the actual map entry |
|
inline |
Construct a new InstMapEntry object with an initial MapCondition instance.
| opcode | string of the instruction opcode |
| Kind | Kind of the actual map entry |
| cond | mapping condition |
|
inline |
|
inline |
set a mapping condition
| cond | mapping condition |
|
inline |
|
inline |
|
inlinevirtual |
get the map name of this entry
|
pure virtual |
an abstract method to check the condition is met
| I | an instruction |
Implemented in CGRAOmp::OtherOpMapEntry, CGRAOmp::CustomInstMapEntry, CGRAOmp::MemoryOpMapEntry, CGRAOmp::CompOpMapEntry, and CGRAOmp::BinaryOpMapEntry.
|
inlinevirtual |
check this entry is for the specified instruction This will not check the mapping condition.
| I | an instruction |
| void InstMapEntry::print | ( | raw_ostream & | OS | ) |
|
private |
|
protected |
|
protected |
1.8.17