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
Paths
| Differential D145037
[mlir][llvm] Use interfaces in the translation to LLVMIR. ClosedPublic Authored by gysit on Feb 28 2023, 11:56 PM.
Details Summary The revision consistently uses the AliasAnalysisOp and AccessGroupOp Depends on D144851
Diff Detail
Event TimelineComment Actions LGTM module minor comment. Note: Can this be considered an NFC? It does change behaviour for operations that do not implement these interfaces but have the attribute attached.
This revision is now accepted and ready to land.Mar 1 2023, 4:05 AM gysit retitled this revision from [mlir][llvm] Use interfaces in the translation to LLVMIR (NFC). to [mlir][llvm] Use interfaces in the translation to LLVMIR..Mar 2 2023, 1:03 AM Comment Actions Rebase.
Closed by commit rG2ea6bb645eff: [mlir][llvm] Use interfaces in the translation to LLVMIR. (authored by gysit). · Explain WhyMar 2 2023, 4:02 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 501387 mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.h
mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
|
Are there any remaining usages of LLVMDialect::getAccessGroupsAttrName left after this revision? If not, we should consider dropping it to ensure downstream projects will be aware of this change.