This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add an AccessGroup attribute to load/store LLVM dialect ops and generate the access_group LLVM metadata.
ClosedPublic

Authored by arpith-jacob on Mar 4 2021, 6:27 AM.

Details

Summary

This also includes LLVM dialect ops created from intrinsics.

Diff Detail

Event Timeline

arpith-jacob created this revision.Mar 4 2021, 6:27 AM
arpith-jacob requested review of this revision.Mar 4 2021, 6:27 AM
ftynse accepted this revision.Mar 4 2021, 7:44 AM
ftynse added inline comments.
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
252

Nit: bit instead of int

mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
131

Nit: /// Sets

mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp
195

Please fix the linter error

This revision is now accepted and ready to land.Mar 4 2021, 7:44 AM
arpith-jacob marked 3 inline comments as done.

Thank you for the reviews! Addressed comments.

arpith-jacob added inline comments.Mar 4 2021, 9:13 AM
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
252

Thanks, I didn't realize there was a bit type.

This revision was landed with ongoing or failed builds.Mar 4 2021, 9:17 AM
This revision was automatically updated to reflect the committed changes.