[all-commits] [llvm/llvm-project] 8137c1: RuntimeLibcallsEmitter: Let a consumer's own libra...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Sep 8 04:33:36 PDT 2026


  Branch: refs/heads/users/arsenm/runtime-libcalls/schema-variant-beats-exclusion
  Home:   https://github.com/llvm/llvm-project
  Commit: 8137c1dc0b090147396f8d1067a0a5543364c51f
      https://github.com/llvm/llvm-project/commit/8137c1dc0b090147396f8d1067a0a5543364c51f
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    A llvm/test/TableGen/RuntimeLibcallEmitter-variant-beats-exclusion.td
    M llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp

  Log Message:
  -----------
  RuntimeLibcallsEmitter: Let a consumer's own library variant beat its exclusion

A target can pull a shared library via LibraryRef<Lib, [impls]> to drop some
impls, then re-add its own versions through a same-name library variant guarded
on that target. Previously the exclusion's setUnavailable calls were emitted at
the end of setAvailableLibFuncs_<name>, after every variant, so they clobbered
the target's own re-adds.

Defer emitting a variant until after the exclusions when it re-adds an impl its
own consumer excludes (same predicates), so the target's re-add wins while
the exclusion still suppresses every other variant's contribution.

This is yet unused infrastructure for future changes.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list