[all-commits] [llvm/llvm-project] 46cfbe: [LLVMContext] Replace enableOpaquePointers() with ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Apr 5 03:03:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46cfbe561bfd3b35984b3e1662bd2bca4eb9e96d
      https://github.com/llvm/llvm-project/commit/46cfbe561bfd3b35984b3e1662bd2bca4eb9e96d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M clang/lib/CodeGen/CodeGenAction.cpp
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/lib/AsmParser/LLLexer.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/IR/LLVMContext.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/unittests/IR/ConstantsTest.cpp
    M llvm/unittests/IR/TypesTest.cpp

  Log Message:
  -----------
  [LLVMContext] Replace enableOpaquePointers() with setOpaquePointers()

This allows both explicitly enabling and explicitly disabling
opaque pointers, in anticipation of the default switching at some
point.

This also slightly changes the rules by allowing calls if either
the opaque pointer mode has not yet been set (explicitly or
implicitly) or if the value remains unchanged.




More information about the All-commits mailing list