[PATCH] D104655: [OpaquePtr] Support opaque constant expression GEP

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 21 09:41:03 PDT 2021


nikic created this revision.
nikic added reviewers: aeubanks, dblaikie.
Herald added subscribers: dexonsmith, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104655

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104655.353399.patch
Type: text/x-patch
Size: 4908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/eb59eedb/attachment.bin>


More information about the llvm-commits mailing list