[llvm] a80116e - [AMDGPU][MC][GFX11] Add a helper function for identification of VOPD instructions
Dmitry Preobrazhensky via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 02:42:50 PDT 2022
Author: Dmitry Preobrazhensky
Date: 2022-09-13T12:41:39+03:00
New Revision: a80116efecef3ad52b30b2917bd33947e8d0981d
URL: https://github.com/llvm/llvm-project/commit/a80116efecef3ad52b30b2917bd33947e8d0981d
DIFF: https://github.com/llvm/llvm-project/commit/a80116efecef3ad52b30b2917bd33947e8d0981d.diff
LOG: [AMDGPU][MC][GFX11] Add a helper function for identification of VOPD instructions
Differential Revision: https://reviews.llvm.org/D133608
Added:
Modified:
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
index b5fb390c08e16..c482eb7efe651 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -427,6 +427,8 @@ unsigned getVOPDOpcode(unsigned Opc) {
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;
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
index 51cf1678207c7..ceb1fcb031369 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
@@ -496,6 +496,9 @@ unsigned getVOPDOpcode(unsigned Opc);
LLVM_READONLY
int getVOPDFull(unsigned OpX, unsigned OpY);
+LLVM_READONLY
+bool isVOPD(unsigned Opc);
+
LLVM_READONLY
unsigned mapWMMA2AddrTo3AddrOpcode(unsigned Opc);
More information about the llvm-commits
mailing list