This is an archive of the discontinued LLVM Phabricator instance.

[IR][OpaquePointers] Properly print cmpxchg with pointer operands.
ClosedPublic

Authored by dantrushin on Jul 7 2022, 4:31 AM.

Details

Summary

With opaque pointers address of pointer variable and its value have
same type (ptr). As a result, cmpxchg is printed without values
types in LLVM assembly and cannot be read back. Add AtomicCmpXchg
to the list of instructions which always have operand types printed.

Diff Detail

Event Timeline

dantrushin created this revision.Jul 7 2022, 4:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2022, 4:31 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
dantrushin requested review of this revision.Jul 7 2022, 4:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2022, 4:31 AM
nikic accepted this revision.Jul 7 2022, 5:30 AM

LG

This revision is now accepted and ready to land.Jul 7 2022, 5:30 AM
This revision was landed with ongoing or failed builds.Jul 7 2022, 7:19 AM
This revision was automatically updated to reflect the committed changes.