[all-commits] [llvm/llvm-project] 26f369: [IR][OpaquePointers] Properly print cmpxchg with p...

dantrushin via All-commits all-commits at lists.llvm.org
Thu Jul 7 07:19:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26f369393d4e60c78d872c4cafcbf3fd929b9004
      https://github.com/llvm/llvm-project/commit/26f369393d4e60c78d872c4cafcbf3fd929b9004
  Author: Denis Antrushin <dantrushin at gmail.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/test/Assembler/opaque-ptr.ll

  Log Message:
  -----------
  [IR][OpaquePointers] Properly print cmpxchg with pointer operands.

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.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D129276




More information about the All-commits mailing list