diff options
| author | Tobias Gysi <tobias.gysi@nextsilicon.com> | 2023-03-02 12:55:57 +0100 |
|---|---|---|
| committer | Tobias Gysi <tobias.gysi@nextsilicon.com> | 2023-03-02 13:00:57 +0100 |
| commit | 2ea6bb645eff7219c10eda83866bd27c1da462e1 (patch) | |
| tree | 86142fa2bed84ccdbe99b3c355a603dc29aee2d5 /mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp | |
| parent | 7b26dcae9eaf8cdcba7fef032fd83d060dffd4b4 (diff) | |
[mlir][llvm] Use interfaces in the translation to LLVMIR.
The revision consistently uses the AliasAnalysisOp and AccessGroupOp
interfaces in the translation from MLIR to LLVMIR. It thus drops the
last string based lookups of alias scope and access group attributes.
Depends on D144851
Reviewed By: Dinistro
Differential Revision: https://reviews.llvm.org/D145037
Diffstat (limited to 'mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp')
| -rw-r--r-- | mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp b/mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp index 4a535dcc3a8d..6abcf6964abe 100644 --- a/mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp @@ -278,8 +278,8 @@ LoopAnnotationTranslation::getAccessGroup(Operation *op, } llvm::MDNode * -LoopAnnotationTranslation::getAccessGroups(Operation *op, - ArrayAttr accessGroupRefs) const { +LoopAnnotationTranslation::getAccessGroups(AccessGroupOpInterface op) const { + ArrayAttr accessGroupRefs = op.getAccessGroupsOrNull(); if (!accessGroupRefs || accessGroupRefs.empty()) return nullptr; |
