This is an archive of the discontinued LLVM Phabricator instance.

[mlir][LLVMIR] Allow !llvm.ptr<ptr> operands in atomicrmw xchg op.
ClosedPublic

Authored by ingomueller-net on Jun 26 2023, 1:25 AM.

Details

Summary

Previously, llvm.atomicrmw only allowed operands that are pointers to
LLVM floats or integers. However, according to the LLVM IR Language
Reference, that op allows pointer to pointer operands in its xchg
mode. This patch allows those operands also in MLIR's LLVM dialect and
adapts the tests accordingly.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
ingomueller-net requested review of this revision.Jun 26 2023, 1:25 AM
gysit accepted this revision.Jun 26 2023, 1:32 AM

Thanks for fixing.

LGTM!

This revision is now accepted and ready to land.Jun 26 2023, 1:32 AM