[all-commits] [llvm/llvm-project] d9fe96: [OpaquePtr] Support opaque constant expression GEP

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jun 21 11:09:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9fe96fe264e72c0a5c58cdd40b4efa14d18f475
      https://github.com/llvm/llvm-project/commit/d9fe96fe264e72c0a5c58cdd40b4efa14d18f475
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
    M llvm/lib/IR/Constants.cpp
    M llvm/test/Assembler/opaque-ptr.ll

  Log Message:
  -----------
  [OpaquePtr] Support opaque constant expression GEP

Adjust assertions to use isOpaqueOrPointeeTypeMatches() and make
it return an opaque pointer result for an opaque base pointer. We
also need to enumerate the element type, as it is no longer
implicitly enumerated through the pointer type.

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




More information about the All-commits mailing list