[all-commits] [llvm/llvm-project] 0738f7: [Intrinsics] Add Intrinsic::getFnAttributes() (NFC...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Mar 20 01:21:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0738f706151b41063d09b2dc349cabd471b2476e
      https://github.com/llvm/llvm-project/commit/0738f706151b41063d09b2dc349cabd471b2476e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-03-20 (Thu, 20 Mar 2025)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.h
    M llvm/lib/CodeGen/ExpandVectorPredication.cpp
    M llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
    M llvm/lib/CodeGen/MachineVerifier.cpp
    M llvm/lib/IR/Intrinsics.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/TableGen/intrinsic-attrs.td
    M llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp

  Log Message:
  -----------
  [Intrinsics] Add Intrinsic::getFnAttributes() (NFC) (#132029)

Most places that call Intrinsic::getAttributes() are only interested in
the function attributes, so add a separate function for that.

The motivation for this is that I'd like to add the ability to specify
range attributes on intrinsics, which requires knowing the function
type. This avoids needing to know the type for most attribute queries.



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