[PATCH] D149254: [AMDGPU][MC] Clean up DPP bound_ctrl handling

Ivan Kosarev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 05:26:53 PDT 2023


kosarev added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.td:1276
 def bank_mask : NamedOperandU32<"BankMask", NamedMatchClass<"BankMask">>;
-def bound_ctrl : NamedIntOperand<i1, "bound_ctrl", "DppBoundCtrl", "ConvertDppBoundCtrl">;
+def bound_ctrl : CustomOperand<i1, 1, "DppBoundCtrl">;
 def FI : NamedOperandU32<"FI", NamedMatchClass<"FI">>;
----------------
Can we now just do `NamedIntOperand<i1, "bound_ctrl", "DppBoundCtrl", "[this](int64_t &BC) -> bool { return convertDppBoundCtrl(BC); }">;`?

It is still a `NamedIntOperand`, and there should be no need to make it look otherwise.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149254/new/

https://reviews.llvm.org/D149254



More information about the llvm-commits mailing list