[PATCH] D94341: [AMDGPU] Add _e64 suffix to VOP3 Insts

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 07:08:52 PST 2021


foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.

Looks OK to me. Does this enable any immediate simplifications? Or is it just to help with future work?



================
Comment at: llvm/lib/Target/AMDGPU/VOP3Instructions.td:122
 
-class VOP3Inst<string OpName, VOPProfile P, SDPatternOperator node = null_frag, bit VOP3Only = 0> :
+// consistently gives instructions a _e64 suffix
+multiclass VOP3Inst_Pseudo_Wrapper<string opName, VOPProfile P, list<dag> pattern = [], bit VOP3Only = 0> {
----------------
Comments generally have a capital letter and full stop.


================
Comment at: llvm/lib/Target/AMDGPU/VOP3Instructions.td:124
+multiclass VOP3Inst_Pseudo_Wrapper<string opName, VOPProfile P, list<dag> pattern = [], bit VOP3Only = 0> {
+    def _e64 : VOP3_Pseudo<opName, P, pattern, VOP3Only>;
+}
----------------
Two space indent.


================
Comment at: llvm/lib/Target/AMDGPU/VOP3Instructions.td:386-387
 let SchedRW = [WriteDoubleAdd], FPDPRounding = 1 in {
-def V_DIV_FIXUP_F64 : VOP3Inst <"v_div_fixup_f64", VOP3_Profile<VOP_F64_F64_F64_F64>, AMDGPUdiv_fixup>;
-def V_LDEXP_F64 : VOP3Inst <"v_ldexp_f64", VOP3_Profile<VOP_F64_F64_I32>, AMDGPUldexp, 1>;
+defm V_DIV_FIXUP_F64 : VOP3Inst <"v_div_fixup_f64", VOP3_Profile<VOP_F64_F64_F64_F64>, AMDGPUdiv_fixup>;
+defm V_LDEXP_F64 : VOP3Inst <"v_ldexp_f64", VOP3_Profile<VOP_F64_F64_I32>, AMDGPUldexp, 1>;
 } // End SchedRW = [WriteDoubleAdd], FPDPRounding = 1
----------------
Indent?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94341



More information about the llvm-commits mailing list