|
CGRAOmp
0.1
|
A set of information regarding OpenMP target kernel. More...
#include <CGRAOmpPass.hpp>
Classes | |
| struct | OffloadMetadata_t |
Public Types | |
| using | MetadataList = SmallVector< OffloadMetadata_t > |
| using | md_iterator = MetadataList::iterator |
| using | FunctionList = SmallVector< Function * > |
| using | func_iterator = FunctionList::iterator |
Public Member Functions | |
| template<typename IRUnitT , typename InvT > | |
| bool | invalidate (IRUnitT &IR, const PreservedAnalyses &PA, InvT &Inv) |
| implemented for enabling getCacheResult from inner modules More... | |
| md_iterator | md_begin () |
| md_iterator | md_end () |
| iterator_range< md_iterator > | metadata () |
| func_iterator | kernel_begin () |
| func_iterator | kernel_end () |
| iterator_range< func_iterator > | kernels () |
| void | add_kernel (Function *offload, Function *kernel) |
| add kernel function as an entry More... | |
| Function * | getOffloadFunction (Function *kernel) |
| Get the Offload Function pointer from the kernel function. More... | |
| md_iterator | getMetadata (Function *offload) |
| get metadata about the kernel function More... | |
| void | setOffloadMetadata (Module &M) |
| parse metadata from Module and save it More... | |
| int | getKernelLine (Function *kernel) |
| get the line number where the kernel starts More... | |
Private Attributes | |
| MetadataList | md_list |
| FunctionList | kernel_list |
| FunctionList | offload_func_list |
A set of information regarding OpenMP target kernel.
| using CGRAOmp::OmpKernelInfo::func_iterator = FunctionList::iterator |
| using CGRAOmp::OmpKernelInfo::FunctionList = SmallVector<Function*> |
| using CGRAOmp::OmpKernelInfo::md_iterator = MetadataList::iterator |
| using CGRAOmp::OmpKernelInfo::MetadataList = SmallVector<OffloadMetadata_t> |
|
inline |
add kernel function as an entry
| offload | Offloading function corresponding to the target region |
| kernel | Outlined function for the kernel |
| int OmpKernelInfo::getKernelLine | ( | Function * | kernel | ) |
get the line number where the kernel starts
| kernel | kernel function |
| OmpKernelInfo::md_iterator OmpKernelInfo::getMetadata | ( | Function * | offload | ) |
get metadata about the kernel function
| offload | offloading function |
|
inline |
Get the Offload Function pointer from the kernel function.
| kernel | kernel function |
| bool OmpKernelInfo::invalidate | ( | IRUnitT & | IR, |
| const PreservedAnalyses & | PA, | ||
| InvT & | Inv | ||
| ) |
implemented for enabling getCacheResult from inner modules
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void OmpKernelInfo::setOffloadMetadata | ( | Module & | M | ) |
parse metadata from Module and save it
| M | Module |
|
private |
|
private |
|
private |
1.8.17