[all-commits] [llvm/llvm-project] 53717c: [IR] Remove -opaque-pointers option

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 14 00:07:27 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53717cabf837a589dd54a47dd8b4b3b9677f0b85
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

  Changed paths:
    M llvm/docs/OpaquePointers.rst
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/IR/LLVMContext.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/lib/IR/Type.cpp
    R llvm/test/Assembler/ptr-outside-opaque-pointers-mode.ll
    R llvm/test/Bitcode/opaque-ptr.ll
    R llvm/test/LTO/X86/Inputs/type-mapping-bug4_0.ll
    R llvm/test/LTO/X86/Inputs/type-mapping-bug4_1.ll
    R llvm/test/LTO/X86/type-mapping-bug4.ll
    R llvm/test/Linker/Inputs/type-unique-name.ll
    R llvm/test/Linker/type-unique-name.ll
    R llvm/test/Other/mixed-opaque-ptrs.ll

  Log Message:
  [IR] Remove -opaque-pointers option

The test migration to opaque pointers has finished, so we can finally
drop typed pointer support from LLVM \o/

This removes the ability to disable typed pointers, as well as the
-opaque-pointers option, but otherwise doesn't yet touch any API
surface. I'll leave deprecation/removal of compatibility APIs to
future changes.

This also drops a few tests: These are either testing errors that
only occur with typed pointers, or type linking behavior that, to
the best of my knowledge, only applies to typed pointers.

Note that this will break some tests in the experimental SPIRV
backend, because the maintainers have failed to update their tests
in a reasonable time-frame, despite multiple warnings. In accordance
with our experimental target policy, this is not a blocking concern.
This issue is tracked at https://github.com/llvm/llvm-project/issues/60133.

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

More information about the All-commits mailing list