[all-commits] [llvm/llvm-project] 21adf8: [IR] llvm.reloc.none intrinsic for no-op symbol re...

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Thu Oct 16 14:42:38 PDT 2025


  Branch: refs/heads/users/mysterymath/modular-printf/reloc.none
  Home:   https://github.com/llvm/llvm-project
  Commit: 21adf888f0d5eb7391cfa6fb3c9508e74cb11658
      https://github.com/llvm/llvm-project/commit/21adf888f0d5eb7391cfa6fb3c9508e74cb11658
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/CodeGen/ISDOpcodes.h
    M llvm/include/llvm/CodeGen/SelectionDAGISel.h
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/include/llvm/Support/TargetOpcodes.def
    M llvm/include/llvm/Target/Target.td
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

  Log Message:
  -----------
  [IR] llvm.reloc.none intrinsic for no-op symbol references

This intrinsic emits a BFD_RELOC_NONE relocation at the point of call,
which allows optimizations and languages to explicitly pull in symbols
from static libraries without there being any code or data that has an
effectual relocation against such a symbol.

See issue #146159 for context.


  Commit: 58b3d5b05d43ff843e5760a3995a3f56f7abd6c5
      https://github.com/llvm/llvm-project/commit/58b3d5b05d43ff843e5760a3995a3f56f7abd6c5
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/docs/LangRef.rst

  Log Message:
  -----------
  fake.use -> reloc.none


  Commit: e568811eb6a160a87bd5dfc4890617724fdff4d1
      https://github.com/llvm/llvm-project/commit/e568811eb6a160a87bd5dfc4890617724fdff4d1
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

  Log Message:
  -----------
  Take symbol name by metadata arg rather than ptr to GlobalValue


  Commit: 01fcfbf0244b9703f60ccc353d8035324f28d9b3
      https://github.com/llvm/llvm-project/commit/01fcfbf0244b9703f60ccc353d8035324f28d9b3
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    A llvm/test/CodeGen/Generic/reloc_none.ll

  Log Message:
  -----------
  Add a generic reloc_none test


  Commit: 7895eac06e9da9364c49a89feba39cbe115c285d
      https://github.com/llvm/llvm-project/commit/7895eac06e9da9364c49a89feba39cbe115c285d
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/lib/IR/Verifier.cpp
    A llvm/test/Verifier/reloc_none.ll

  Log Message:
  -----------
  IR verifier check and test


  Commit: f128412cc21f69aee326d0a3d46dbc34f2e105f6
      https://github.com/llvm/llvm-project/commit/f128412cc21f69aee326d0a3d46dbc34f2e105f6
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

  Log Message:
  -----------
  Remove unneeded assertion from AsmPrinter


  Commit: 79035dbbbcf1b85fc2cab0de781fc31a384af8b1
      https://github.com/llvm/llvm-project/commit/79035dbbbcf1b85fc2cab0de781fc31a384af8b1
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/test/Verifier/reloc_none.ll

  Log Message:
  -----------
  Use llvm-as for test


  Commit: 63729a07aff0cf286acb7f404b65cb2151251ed9
      https://github.com/llvm/llvm-project/commit/63729a07aff0cf286acb7f404b65cb2151251ed9
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    A llvm/test/CodeGen/Generic/reloc-none.ll
    R llvm/test/CodeGen/Generic/reloc_none.ll

  Log Message:
  -----------
  Rename reloc_none.ll to reloc-none.ll


  Commit: 928b8bcb007911f2102b7f3eccb3ee0fd9f35465
      https://github.com/llvm/llvm-project/commit/928b8bcb007911f2102b7f3eccb3ee0fd9f35465
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    A llvm/test/CodeGen/X86/GlobalISel/reloc-none.ll

  Log Message:
  -----------
  Lower reloc.none in Global ISel


  Commit: 9d7f9e603971f84d6819fe777a9df9e06ec057e4
      https://github.com/llvm/llvm-project/commit/9d7f9e603971f84d6819fe777a9df9e06ec057e4
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

  Log Message:
  -----------
  Remove arg from emitRelocDirective call


  Commit: f9482ca55dbac9add9b2de2fd113cc08ed1535a1
      https://github.com/llvm/llvm-project/commit/f9482ca55dbac9add9b2de2fd113cc08ed1535a1
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-cxx.td

  Log Message:
  -----------
  Update tests


  Commit: d694d158787f9fe4bce073e1bf11890f5c80cf74
      https://github.com/llvm/llvm-project/commit/d694d158787f9fe4bce073e1bf11890f5c80cf74
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/test/CodeGen/Generic/reloc-none.ll
    M llvm/test/CodeGen/X86/GlobalISel/reloc-none.ll
    A llvm/test/Verifier/reloc-none.ll
    R llvm/test/Verifier/reloc_none.ll

  Log Message:
  -----------
  Take symbol name by GlobalValue again to avoid modifying Module


  Commit: 669917ce404b5eb914261e76d5b143fcef9a569f
      https://github.com/llvm/llvm-project/commit/669917ce404b5eb914261e76d5b143fcef9a569f
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/test/CodeGen/Generic/reloc-none.ll
    M llvm/test/CodeGen/X86/GlobalISel/reloc-none.ll
    M llvm/test/Verifier/reloc-none.ll

  Log Message:
  -----------
  Take argument once again as a metadata string.

This reverts commit b01bf98300b537bb0e5ccea42d7735ffd0c02e24.

However, this time, the metadata string is passed as a string directly
to the backend. This prevents the affected MachineFunction passes from
incorrectly modifying the IR.


  Commit: 347afcf8bcbc4f9d66883a79be481337927e56fd
      https://github.com/llvm/llvm-project/commit/347afcf8bcbc4f9d66883a79be481337927e56fd
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/test/CodeGen/Generic/reloc-none.ll

  Log Message:
  -----------
  Remove cargo cult attribute; test for no DCE at O2


  Commit: e23334acdc78bd09737c98970cd79d7a904f8e01
      https://github.com/llvm/llvm-project/commit/e23334acdc78bd09737c98970cd79d7a904f8e01
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

  Log Message:
  -----------
  Arsenm style suggestion


  Commit: 879eb0866ef04561207ab9d6fa18f3b2a171076d
      https://github.com/llvm/llvm-project/commit/879eb0866ef04561207ab9d6fa18f3b2a171076d
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/docs/LangRef.rst

  Log Message:
  -----------
  Fix langref formatting


  Commit: 822f240e57304b5e280e669364652eecf68fb31b
      https://github.com/llvm/llvm-project/commit/822f240e57304b5e280e669364652eecf68fb31b
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M llvm/test/CodeGen/MIR2Vec/Inputs/reference_x86_vocab_print.txt
    M llvm/test/CodeGen/MIR2Vec/Inputs/reference_x86_vocab_wo=0.5_print.txt
    M llvm/test/TableGen/get-named-operand-idx.td

  Log Message:
  -----------
  Update newly-broken tests


Compare: https://github.com/llvm/llvm-project/compare/8c308184715a...822f240e5730

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