[PATCH] D133608: [AMDGPU][MC][GFX11] Add a helper function for identification of VOPD instructions
Dmitry Preobrazhensky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 02:43:00 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa80116efecef: [AMDGPU][MC][GFX11] Add a helper function for identification of VOPD… (authored by dp).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133608/new/
https://reviews.llvm.org/D133608
Files:
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
Index: llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
===================================================================
--- llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
+++ llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
@@ -496,6 +496,9 @@
LLVM_READONLY
int getVOPDFull(unsigned OpX, unsigned OpY);
+LLVM_READONLY
+bool isVOPD(unsigned Opc);
+
LLVM_READONLY
unsigned mapWMMA2AddrTo3AddrOpcode(unsigned Opc);
Index: llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -427,6 +427,8 @@
return Info ? Info->VOPDOp : ~0u;
}
+bool isVOPD(unsigned Opc) { return getVOPDOpcodeHelper(Opc); }
+
unsigned mapWMMA2AddrTo3AddrOpcode(unsigned Opc) {
const WMMAOpcodeMappingInfo *Info = getWMMAMappingInfoFrom2AddrOpcode(Opc);
return Info ? Info->Opcode3Addr : ~0u;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133608.459694.patch
Type: text/x-patch
Size: 945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220913/45330e87/attachment.bin>
More information about the llvm-commits
mailing list