LLVM 20.0.0git
|
AMDHSA kernel descriptor definitions. More...
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | llvm::amdhsa::kernel_descriptor_t |
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
namespace | llvm::amdhsa |
Macros | |
#define | offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) |
#define | AMDHSA_BITS_ENUM_ENTRY(NAME, SHIFT, WIDTH) |
#define | AMDHSA_BITS_GET(SRC, MSK) ((SRC & MSK) >> MSK ## _SHIFT) |
#define | AMDHSA_BITS_SET(DST, MSK, VAL) |
#define | COMPUTE_PGM_RSRC1(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC1_GFX6_GFX8(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX6_GFX8_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC1_GFX6_GFX9(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX6_GFX9_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC1_GFX6_GFX11(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX6_GFX11_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC1_GFX9_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX9_PLUS_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC1_GFX10_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX10_PLUS_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC1_GFX12_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX12_PLUS_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC2(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC2_GFX6_GFX11(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_GFX6_GFX11_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC2_GFX12_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_GFX12_PLUS_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX90A(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX90A_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX10_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX10_PLUS_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX10(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX10_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX10_GFX11(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX10_GFX11_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX11_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX11_PLUS_ ## NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX11(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX11_##NAME, SHIFT, WIDTH) |
#define | COMPUTE_PGM_RSRC3_GFX12_PLUS(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX12_PLUS_##NAME, SHIFT, WIDTH) |
#define | KERNEL_CODE_PROPERTY(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(KERNEL_CODE_PROPERTY_ ## NAME, SHIFT, WIDTH) |
#define | KERNARG_PRELOAD_SPEC(NAME, SHIFT, WIDTH) AMDHSA_BITS_ENUM_ENTRY(KERNARG_PRELOAD_SPEC_##NAME, SHIFT, WIDTH) |
AMDHSA kernel descriptor definitions.
For more information, visit https://llvm.org/docs/AMDGPUUsage.html#kernel-descriptor
Definition in file AMDHSAKernelDescriptor.h.
#define AMDHSA_BITS_ENUM_ENTRY | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) |
Definition at line 36 of file AMDHSAKernelDescriptor.h.
#define AMDHSA_BITS_GET | ( | SRC, | |
MSK | |||
) | ((SRC & MSK) >> MSK ## _SHIFT) |
Definition at line 44 of file AMDHSAKernelDescriptor.h.
#define AMDHSA_BITS_SET | ( | DST, | |
MSK, | |||
VAL | |||
) |
Definition at line 49 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_ ## NAME, SHIFT, WIDTH) |
Definition at line 86 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1_GFX10_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX10_PLUS_ ## NAME, SHIFT, WIDTH) |
Definition at line 101 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1_GFX12_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX12_PLUS_##NAME, SHIFT, WIDTH) |
Definition at line 104 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1_GFX6_GFX11 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX6_GFX11_##NAME, SHIFT, WIDTH) |
Definition at line 95 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1_GFX6_GFX8 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX6_GFX8_ ## NAME, SHIFT, WIDTH) |
Definition at line 89 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1_GFX6_GFX9 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX6_GFX9_ ## NAME, SHIFT, WIDTH) |
Definition at line 92 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC1_GFX9_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_GFX9_PLUS_ ## NAME, SHIFT, WIDTH) |
Definition at line 98 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC2 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_ ## NAME, SHIFT, WIDTH) |
Definition at line 134 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC2_GFX12_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_GFX12_PLUS_##NAME, SHIFT, WIDTH) |
Definition at line 140 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC2_GFX6_GFX11 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_GFX6_GFX11_##NAME, SHIFT, WIDTH) |
Definition at line 137 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX10 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX10_##NAME, SHIFT, WIDTH) |
Definition at line 184 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX10_GFX11 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX10_GFX11_##NAME, SHIFT, WIDTH) |
Definition at line 187 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX10_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX10_PLUS_ ## NAME, SHIFT, WIDTH) |
Definition at line 181 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX11 | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX11_##NAME, SHIFT, WIDTH) |
Definition at line 193 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX11_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX11_PLUS_ ## NAME, SHIFT, WIDTH) |
Definition at line 190 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX12_PLUS | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX12_PLUS_##NAME, SHIFT, WIDTH) |
Definition at line 196 of file AMDHSAKernelDescriptor.h.
#define COMPUTE_PGM_RSRC3_GFX90A | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_GFX90A_ ## NAME, SHIFT, WIDTH) |
Definition at line 168 of file AMDHSAKernelDescriptor.h.
#define KERNARG_PRELOAD_SPEC | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(KERNARG_PRELOAD_SPEC_##NAME, SHIFT, WIDTH) |
Definition at line 234 of file AMDHSAKernelDescriptor.h.
#define KERNEL_CODE_PROPERTY | ( | NAME, | |
SHIFT, | |||
WIDTH | |||
) | AMDHSA_BITS_ENUM_ENTRY(KERNEL_CODE_PROPERTY_ ## NAME, SHIFT, WIDTH) |
Definition at line 216 of file AMDHSAKernelDescriptor.h.
#define offsetof | ( | TYPE, | |
MEMBER | |||
) | ((size_t)&((TYPE*)0)->MEMBER) |
Definition at line 30 of file AMDHSAKernelDescriptor.h.