A derived class from InstMapEntry for custom instruction.
More...
#include <CGRAInstMap.hpp>
|
| ModuleAnalysisManager & | MAM |
| |
A derived class from InstMapEntry for custom instruction.
◆ CustomInstMapEntry() [1/2]
| CGRAOmp::CustomInstMapEntry::CustomInstMapEntry |
( |
StringRef |
func_name, |
|
|
ModuleAnalysisManager & |
MAM |
|
) |
| |
|
inline |
Construct a new CustomIns MapEntry object.
- Parameters
-
| func_name | a function name correspoinding to the custom instruction |
| MAM | ModuleAnalysisManager |
◆ CustomInstMapEntry() [2/2]
| CGRAOmp::CustomInstMapEntry::CustomInstMapEntry |
( |
StringRef |
func_name, |
|
|
ModuleAnalysisManager & |
MAM, |
|
|
MapCondition * |
map_cond |
|
) |
| |
|
inline |
Construct a new CustomInstMapEntry object with an initial MapCondition instance.
- Parameters
-
| func_name | a function name correspoinding to the custom instruction |
| MAM | ModuleAnalysisManager |
| cond | mapping condition |
◆ classof()
| static bool CGRAOmp::CustomInstMapEntry::classof |
( |
const InstMapEntry * |
imap | ) |
|
|
inlinestatic |
◆ isCustomOpFunc()
| bool CustomInstMapEntry::isCustomOpFunc |
( |
Function * |
F | ) |
|
|
private |
◆ match()
| bool CustomInstMapEntry::match |
( |
Instruction * |
I | ) |
|
|
virtual |
Derived function from InstMapEntry::match specilized for custom instruction.
the function corresponding to the custom instruction must satisfy the following conditions
- the function name is the same as the opcode of the custom instruction
- the function is annotated with "cgra_custom_inst"
The following declaration is an example to annotate a function:
__attribute__((annotate("cgra_custom_inst"))) int func(int x, int y);
Implements CGRAOmp::InstMapEntry.
◆ CustomOp
◆ MAM
| ModuleAnalysisManager& CGRAOmp::CustomInstMapEntry::MAM |
|
private |
The documentation for this class was generated from the following files: