[all-commits] [llvm/llvm-project] 50be45: [TableGen] Add check for number of intrinsic retur...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Thu Sep 5 14:52:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50be455ab88b17872cd620698156b4058dc92f58
      https://github.com/llvm/llvm-project/commit/50be455ab88b17872cd620698156b4058dc92f58
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M llvm/test/TableGen/intrinsic-struct.td
    M llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
    M llvm/utils/TableGen/Basic/CodeGenIntrinsics.h

  Log Message:
  -----------
  [TableGen] Add check for number of intrinsic return values (#107326)

Fail if we see an intrinsic that returns more than the supported number
of return values.

Intrinsics can return only upto a certain nyumber of values, as defined
by the `IIT_RetNumbers` list in `Intrinsics.td`. Currently, if we define
an intrinsic that exceeds the limit, llvm-tblgen crashes. Instead, read
this limit and fail if it's exceeded with a proper error message.



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