[all-commits] [llvm/llvm-project] 90ad3e: [IR] Allow available_externally GlobalAlias

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Nov 7 09:03:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90ad3e3c02e92cabfc7cf1f0b552ddca73d54cc8
      https://github.com/llvm/llvm-project/commit/90ad3e3c02e92cabfc7cf1f0b552ddca73d54cc8
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/IR/GlobalAlias.h
    M llvm/lib/IR/Verifier.cpp
    M llvm/test/Verifier/alias.ll

  Log Message:
  -----------
  [IR] Allow available_externally GlobalAlias

GlobalVariable and Function can be available_externally. GlobalAlias is used
similarly. Allowing available_externally is a natural extension and helps
ThinLTO discard GlobalAlias in a non-prevailing COMDAT (see D135427).

For now, available_externally GlobalAlias must point to an
available_externally GlobalValue (not ConstantExpr).

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




More information about the All-commits mailing list