[mlir][llvm] Fuse access_group & loop export (NFC)
authorChristian Ulmann <christian.ulmann@nextsilicon.com>
Fri, 17 Feb 2023 14:31:06 +0000 (15:31 +0100)
committerChristian Ulmann <christian.ulmann@nextsilicon.com>
Fri, 17 Feb 2023 14:31:21 +0000 (15:31 +0100)
commit87a0479538fe4fad1cbbf729ee6e1ee35326f093
tree7f3e79f69b83bb62cbce2ce353c0ed0711fdfdde
parentcf4df61688385af46de58562890dae335f96694b
[mlir][llvm] Fuse access_group & loop export (NFC)

This commit moves the access group translation into the
LoopAnnotationTranslation class as these two metadata kinds only appear
together.

Drops the access group cleanup from `ModuleTranslation::forgetMapping`
as this is only used on function regions. Access groups only appear in the
region of a global metadata operation and will thus not be cleaned here.

Analogous to https://reviews.llvm.org/D143577

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D144253
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp
mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.h
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp