[PATCH] D134234: [llvm] Support forward-referenced globals with dso_local_equivalent

Leonard Chan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 19 16:08:03 PDT 2022


leonardchan created this revision.
leonardchan added reviewers: phosek, MaskRay.
leonardchan added a project: LLVM.
Herald added subscribers: StephenFan, pengfei, hiraditya.
Herald added a project: All.
leonardchan requested review of this revision.

See https://github.com/llvm/llvm-project/issues/57815.

`dso_local_equivalent` would fail with an assertion on forward-referenced globals. This is an issue that only comes up in textual IR, which is why we've never seen this assertion with clang.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134234

Files:
  llvm/include/llvm/AsmParser/LLParser.h
  llvm/lib/AsmParser/LLParser.cpp
  llvm/test/CodeGen/X86/dso_local_equivalent.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134234.461400.patch
Type: text/x-patch
Size: 6460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220919/f8caf134/attachment-0001.bin>


More information about the llvm-commits mailing list