[llvm] [AMDGPU][True16][MC] added VOPC realtrue/faketrue flag and fake16 instructions (PR #104739)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 02:18:29 PDT 2024


================
@@ -87,6 +87,17 @@ class VOPC_Profile<list<SchedReadWrite> sched, ValueType vt0, ValueType vt1 = vt
 multiclass VOPC_Profile_t16<list<SchedReadWrite> sched, ValueType vt0, ValueType vt1 = vt0> {
   def NAME : VOPC_Profile<sched, vt0, vt1>;
   def _t16 : VOPC_Profile<sched, vt0, vt1> {
+    let IsTrue16 = 1;
+    let IsRealTrue16 = 1;
+    let Src1RC32 = getVregSrcForVT<Src1VT, 1/*IsTrue16*/, 1/*IsFake16*/>.ret;
----------------
kosarev wrote:

I guess the `1/*IsFake*/` bits is what the description refers to explaining that the profiles are going to be updated later to use actual t16 operands?

https://github.com/llvm/llvm-project/pull/104739


More information about the llvm-commits mailing list