MLIR
20.0.0git
|
A helper class that converts LoopAnnotationAttrs and AccessGroupAttrs into corresponding llvm::MDNodes. More...
#include "Target/LLVMIR/LoopAnnotationTranslation.h"
Public Member Functions | |
LoopAnnotationTranslation (ModuleTranslation &moduleTranslation, llvm::Module &llvmModule) | |
llvm::MDNode * | translateLoopAnnotation (LoopAnnotationAttr attr, Operation *op) |
llvm::MDNode * | getAccessGroup (AccessGroupAttr accessGroupAttr) |
Returns the LLVM metadata corresponding to an mlir LLVM dialect access group attribute. More... | |
llvm::MDNode * | getAccessGroups (AccessGroupOpInterface op) |
Returns the LLVM metadata corresponding to the access group attribute referenced by the AccessGroupOpInterface or null if there are none. More... | |
Public Attributes | |
ModuleTranslation & | moduleTranslation |
The ModuleTranslation owning this instance. More... | |
A helper class that converts LoopAnnotationAttrs and AccessGroupAttrs into corresponding llvm::MDNodes.
Definition at line 26 of file LoopAnnotationTranslation.h.
|
inline |
Definition at line 28 of file LoopAnnotationTranslation.h.
llvm::MDNode * LoopAnnotationTranslation::getAccessGroup | ( | AccessGroupAttr | accessGroupAttr | ) |
Returns the LLVM metadata corresponding to an mlir LLVM dialect access group attribute.
Definition at line 281 of file LoopAnnotationTranslation.cpp.
Referenced by getAccessGroups().
llvm::MDNode * LoopAnnotationTranslation::getAccessGroups | ( | AccessGroupOpInterface | op | ) |
Returns the LLVM metadata corresponding to the access group attribute referenced by the AccessGroupOpInterface or null if there are none.
Definition at line 290 of file LoopAnnotationTranslation.cpp.
References mlir::get(), and getAccessGroup().
llvm::MDNode * LoopAnnotationTranslation::translateLoopAnnotation | ( | LoopAnnotationAttr | attr, |
Operation * | op | ||
) |
Definition at line 262 of file LoopAnnotationTranslation.cpp.
ModuleTranslation& mlir::LLVM::detail::LoopAnnotationTranslation::moduleTranslation |
The ModuleTranslation owning this instance.
Definition at line 43 of file LoopAnnotationTranslation.h.