[all-commits] [llvm/llvm-project] f0297a: Switch the intrinsic names to a string table (#118...

Chandler Carruth via All-commits all-commits at lists.llvm.org
Sat Dec 7 17:54:20 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0297ae552e1e5aacafc1ed43968041994dc8a6e
      https://github.com/llvm/llvm-project/commit/f0297ae552e1e5aacafc1ed43968041994dc8a6e
  Author: Chandler Carruth <chandlerc at gmail.com>
  Date:   2024-12-07 (Sat, 07 Dec 2024)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.h
    M llvm/lib/IR/Intrinsics.cpp
    M llvm/unittests/IR/IntrinsicsTest.cpp
    M llvm/utils/TableGen/IntrinsicEmitter.cpp

  Log Message:
  -----------
  Switch the intrinsic names to a string table (#118929)

This avoids the need to dynamically relocate each pointer in the table.

To make this work, this PR also moves the binary search of intrinsic
names to an internal function with an adjusted signature, and switches
the unittesting to test against actual intrinsics.



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