[llvm] [AMDGPU] Encode op_sel_hi as zero for the V_PK 64-bit instructions (PR #230662)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 12:50:06 PDT 2026
================
@@ -534,6 +534,11 @@ bool isVOPC64DPP(unsigned Opc);
LLVM_READONLY
bool isVOPCAsmOnly(unsigned Opc);
+/// Returns true if this VOP3P opcode reserves the op_sel_hi bits, which must
+/// then be encoded as zero instead of defaulting to one.
+LLVM_READONLY
+bool zeroesOutOpSelHi(unsigned Opc);
----------------
shiltian wrote:
This function doesn't conform with LLVM standard. A function needs to start with a verb, and it seems like this tries to use "zero" as a verb, which might be right from English perspective, but it doesn't align with the intention of the function.
https://github.com/llvm/llvm-project/pull/230662
More information about the llvm-commits
mailing list