LLVM  6.0.0svn
Macros | Functions
AMDKernelCodeTInfo.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QNAME(name)   amd_kernel_code_t::name
 
#define FLD_T(name)   decltype(QNAME(name)), &QNAME(name)
 
#define FIELD2(sname, aname, name)   RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)
 
#define FIELD(name)   FIELD2(name, name, name)
 
#define PRINTCODEPROP(name)
 
#define PARSECODEPROP(name)
 
#define CODEPROP(name, shift)   RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))
 
#define PRINTCOMP(GetMacro, Shift)
 
#define PARSECOMP(SetMacro, Shift)
 
#define COMPPGM(name, aname, GetMacro, SetMacro, Shift)   RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
 
#define COMPPGM1(name, aname, AccMacro)   COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)
 
#define COMPPGM2(name, aname, AccMacro)   COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)
 
#define QNAME(name)   amd_kernel_code_t::name
 
#define FLD_T(name)   decltype(QNAME(name)), &QNAME(name)
 
#define FIELD2(sname, aname, name)   RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)
 
#define FIELD(name)   FIELD2(name, name, name)
 
#define PRINTCODEPROP(name)
 
#define PARSECODEPROP(name)
 
#define CODEPROP(name, shift)   RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))
 
#define PRINTCOMP(GetMacro, Shift)
 
#define PARSECOMP(SetMacro, Shift)
 
#define COMPPGM(name, aname, GetMacro, SetMacro, Shift)   RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
 
#define COMPPGM1(name, aname, AccMacro)   COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)
 
#define COMPPGM2(name, aname, AccMacro)   COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)
 
#define QNAME(name)   amd_kernel_code_t::name
 
#define FLD_T(name)   decltype(QNAME(name)), &QNAME(name)
 
#define FIELD2(sname, aname, name)   RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)
 
#define FIELD(name)   FIELD2(name, name, name)
 
#define PRINTCODEPROP(name)
 
#define PARSECODEPROP(name)
 
#define CODEPROP(name, shift)   RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))
 
#define PRINTCOMP(GetMacro, Shift)
 
#define PARSECOMP(SetMacro, Shift)
 
#define COMPPGM(name, aname, GetMacro, SetMacro, Shift)   RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
 
#define COMPPGM1(name, aname, AccMacro)   COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)
 
#define COMPPGM2(name, aname, AccMacro)   COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)
 
#define QNAME(name)   amd_kernel_code_t::name
 
#define FLD_T(name)   decltype(QNAME(name)), &QNAME(name)
 
#define FIELD2(sname, aname, name)   RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)
 
#define FIELD(name)   FIELD2(name, name, name)
 
#define PRINTCODEPROP(name)
 
#define PARSECODEPROP(name)
 
#define CODEPROP(name, shift)   RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))
 
#define PRINTCOMP(GetMacro, Shift)
 
#define PARSECOMP(SetMacro, Shift)
 
#define COMPPGM(name, aname, GetMacro, SetMacro, Shift)   RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
 
#define COMPPGM1(name, aname, AccMacro)   COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)
 
#define COMPPGM2(name, aname, AccMacro)   COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)
 
#define QNAME(name)   amd_kernel_code_t::name
 
#define FLD_T(name)   decltype(QNAME(name)), &QNAME(name)
 
#define FIELD2(sname, aname, name)   RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)
 
#define FIELD(name)   FIELD2(name, name, name)
 
#define PRINTCODEPROP(name)
 
#define PARSECODEPROP(name)
 
#define CODEPROP(name, shift)   RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))
 
#define PRINTCOMP(GetMacro, Shift)
 
#define PARSECOMP(SetMacro, Shift)
 
#define COMPPGM(name, aname, GetMacro, SetMacro, Shift)   RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
 
#define COMPPGM1(name, aname, AccMacro)   COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)
 
#define COMPPGM2(name, aname, AccMacro)   COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)
 

Functions

 FIELD2 (amd_code_version_major, kernel_code_version_major, amd_kernel_code_version_major)
 
 FIELD2 (amd_code_version_minor, kernel_code_version_minor, amd_kernel_code_version_minor)
 
 FIELD2 (amd_machine_kind, machine_kind, amd_machine_kind)
 
 FIELD2 (amd_machine_version_major, machine_version_major, amd_machine_version_major)
 
 FIELD2 (amd_machine_version_minor, machine_version_minor, amd_machine_version_minor)
 
 FIELD2 (amd_machine_version_stepping, machine_version_stepping, amd_machine_version_stepping)
 
 FIELD (kernel_code_entry_byte_offset)
 
 FIELD (kernel_code_prefetch_byte_size)
 
 FIELD (max_scratch_backing_memory_byte_size)
 
 COMPPGM1 (granulated_workitem_vgpr_count, compute_pgm_rsrc1_vgprs, VGPRS)
 
 COMPPGM1 (granulated_wavefront_sgpr_count, compute_pgm_rsrc1_sgprs, SGPRS)
 
 COMPPGM1 (priority, compute_pgm_rsrc1_priority, PRIORITY)
 
 COMPPGM1 (float_mode, compute_pgm_rsrc1_float_mode, FLOAT_MODE)
 
 COMPPGM1 (priv, compute_pgm_rsrc1_priv, PRIV)
 
 COMPPGM1 (enable_dx10_clamp, compute_pgm_rsrc1_dx10_clamp, DX10_CLAMP)
 
 COMPPGM1 (debug_mode, compute_pgm_rsrc1_debug_mode, DEBUG_MODE)
 
 COMPPGM1 (enable_ieee_mode, compute_pgm_rsrc1_ieee_mode, IEEE_MODE)
 
 COMPPGM2 (enable_sgpr_private_segment_wave_byte_offset, compute_pgm_rsrc2_scratch_en, SCRATCH_EN)
 
 COMPPGM2 (user_sgpr_count, compute_pgm_rsrc2_user_sgpr, USER_SGPR)
 
 COMPPGM2 (enable_trap_handler, compute_pgm_rsrc2_trap_handler, TRAP_HANDLER)
 
 COMPPGM2 (enable_sgpr_workgroup_id_x, compute_pgm_rsrc2_tgid_x_en, TGID_X_EN)
 
 COMPPGM2 (enable_sgpr_workgroup_id_y, compute_pgm_rsrc2_tgid_y_en, TGID_Y_EN)
 
 COMPPGM2 (enable_sgpr_workgroup_id_z, compute_pgm_rsrc2_tgid_z_en, TGID_Z_EN)
 
 COMPPGM2 (enable_sgpr_workgroup_info, compute_pgm_rsrc2_tg_size_en, TG_SIZE_EN)
 
 COMPPGM2 (enable_vgpr_workitem_id, compute_pgm_rsrc2_tidig_comp_cnt, TIDIG_COMP_CNT)
 
 COMPPGM2 (enable_exception_msb, compute_pgm_rsrc2_excp_en_msb, EXCP_EN_MSB)
 
 COMPPGM2 (granulated_lds_size, compute_pgm_rsrc2_lds_size, LDS_SIZE)
 
 COMPPGM2 (enable_exception, compute_pgm_rsrc2_excp_en, EXCP_EN)
 
 CODEPROP (enable_sgpr_private_segment_buffer, ENABLE_SGPR_PRIVATE_SEGMENT_BUFFER)
 
 CODEPROP (enable_sgpr_dispatch_ptr, ENABLE_SGPR_DISPATCH_PTR)
 
 CODEPROP (enable_sgpr_queue_ptr, ENABLE_SGPR_QUEUE_PTR)
 
 CODEPROP (enable_sgpr_kernarg_segment_ptr, ENABLE_SGPR_KERNARG_SEGMENT_PTR)
 
 CODEPROP (enable_sgpr_dispatch_id, ENABLE_SGPR_DISPATCH_ID)
 
 CODEPROP (enable_sgpr_flat_scratch_init, ENABLE_SGPR_FLAT_SCRATCH_INIT)
 
 CODEPROP (enable_sgpr_private_segment_size, ENABLE_SGPR_PRIVATE_SEGMENT_SIZE)
 
 CODEPROP (enable_sgpr_grid_workgroup_count_x, ENABLE_SGPR_GRID_WORKGROUP_COUNT_X)
 
 CODEPROP (enable_sgpr_grid_workgroup_count_y, ENABLE_SGPR_GRID_WORKGROUP_COUNT_Y)
 
 CODEPROP (enable_sgpr_grid_workgroup_count_z, ENABLE_SGPR_GRID_WORKGROUP_COUNT_Z)
 
 CODEPROP (enable_ordered_append_gds, ENABLE_ORDERED_APPEND_GDS)
 
 CODEPROP (private_element_size, PRIVATE_ELEMENT_SIZE)
 
 CODEPROP (is_ptr64, IS_PTR64)
 
 CODEPROP (is_dynamic_callstack, IS_DYNAMIC_CALLSTACK)
 
 CODEPROP (is_debug_enabled, IS_DEBUG_SUPPORTED)
 
 CODEPROP (is_xnack_enabled, IS_XNACK_SUPPORTED)
 
 FIELD (workitem_private_segment_byte_size)
 
 FIELD (workgroup_group_segment_byte_size)
 
 FIELD (gds_segment_byte_size)
 
 FIELD (kernarg_segment_byte_size)
 
 FIELD (workgroup_fbarrier_count)
 
 FIELD (wavefront_sgpr_count)
 
 FIELD (workitem_vgpr_count)
 
 FIELD (reserved_vgpr_first)
 
 FIELD (reserved_vgpr_count)
 
 FIELD (reserved_sgpr_first)
 
 FIELD (reserved_sgpr_count)
 
 FIELD (debug_wavefront_private_segment_offset_sgpr)
 
 FIELD (debug_private_segment_buffer_sgpr)
 
 FIELD (kernarg_segment_alignment)
 
 FIELD (group_segment_alignment)
 
 FIELD (private_segment_alignment)
 
 FIELD (wavefront_size)
 
 FIELD (call_convention)
 

Macro Definition Documentation

◆ CODEPROP [1/5]

#define CODEPROP (   name,
  shift 
)    RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))

Definition at line 35 of file AMDKernelCodeTInfo.h.

◆ CODEPROP [2/5]

#define CODEPROP (   name,
  shift 
)    RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))

◆ CODEPROP [3/5]

#define CODEPROP (   name,
  shift 
)    RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))

◆ CODEPROP [4/5]

#define CODEPROP (   name,
  shift 
)    RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))

◆ CODEPROP [5/5]

#define CODEPROP (   name,
  shift 
)    RECORD(name, name, PRINTCODEPROP(shift), PARSECODEPROP(shift))

◆ COMPPGM [1/5]

#define COMPPGM (   name,
  aname,
  GetMacro,
  SetMacro,
  Shift 
)    RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))

Definition at line 53 of file AMDKernelCodeTInfo.h.

◆ COMPPGM [2/5]

#define COMPPGM (   name,
  aname,
  GetMacro,
  SetMacro,
  Shift 
)    RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))

◆ COMPPGM [3/5]

#define COMPPGM (   name,
  aname,
  GetMacro,
  SetMacro,
  Shift 
)    RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))

◆ COMPPGM [4/5]

#define COMPPGM (   name,
  aname,
  GetMacro,
  SetMacro,
  Shift 
)    RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))

◆ COMPPGM [5/5]

#define COMPPGM (   name,
  aname,
  GetMacro,
  SetMacro,
  Shift 
)    RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))

◆ COMPPGM1 [1/5]

#define COMPPGM1 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)

◆ COMPPGM1 [2/5]

#define COMPPGM1 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)

Definition at line 56 of file AMDKernelCodeTInfo.h.

◆ COMPPGM1 [3/5]

#define COMPPGM1 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)

◆ COMPPGM1 [4/5]

#define COMPPGM1 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)

◆ COMPPGM1 [5/5]

#define COMPPGM1 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B848_##AccMacro, S_00B848_##AccMacro, 0)

◆ COMPPGM2 [1/5]

#define COMPPGM2 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)

◆ COMPPGM2 [2/5]

#define COMPPGM2 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)

◆ COMPPGM2 [3/5]

#define COMPPGM2 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)

◆ COMPPGM2 [4/5]

#define COMPPGM2 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)

Definition at line 59 of file AMDKernelCodeTInfo.h.

◆ COMPPGM2 [5/5]

#define COMPPGM2 (   name,
  aname,
  AccMacro 
)    COMPPGM(name, aname, G_00B84C_##AccMacro, S_00B84C_##AccMacro, 32)

◆ FIELD [1/5]

#define FIELD (   name)    FIELD2(name, name, name)

◆ FIELD [2/5]

#define FIELD (   name)    FIELD2(name, name, name)

◆ FIELD [3/5]

#define FIELD (   name)    FIELD2(name, name, name)

Definition at line 22 of file AMDKernelCodeTInfo.h.

◆ FIELD [4/5]

#define FIELD (   name)    FIELD2(name, name, name)

◆ FIELD [5/5]

#define FIELD (   name)    FIELD2(name, name, name)

◆ FIELD2 [1/5]

#define FIELD2 (   sname,
  aname,
  name 
)    RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)

◆ FIELD2 [2/5]

#define FIELD2 (   sname,
  aname,
  name 
)    RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)

◆ FIELD2 [3/5]

#define FIELD2 (   sname,
  aname,
  name 
)    RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)

Definition at line 19 of file AMDKernelCodeTInfo.h.

◆ FIELD2 [4/5]

#define FIELD2 (   sname,
  aname,
  name 
)    RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)

◆ FIELD2 [5/5]

#define FIELD2 (   sname,
  aname,
  name 
)    RECORD(sname, aname, printField<FLD_T(name)>, parseField<FLD_T(name)>)

◆ FLD_T [1/5]

#define FLD_T (   name)    decltype(QNAME(name)), &QNAME(name)

◆ FLD_T [2/5]

#define FLD_T (   name)    decltype(QNAME(name)), &QNAME(name)

◆ FLD_T [3/5]

#define FLD_T (   name)    decltype(QNAME(name)), &QNAME(name)

◆ FLD_T [4/5]

#define FLD_T (   name)    decltype(QNAME(name)), &QNAME(name)

◆ FLD_T [5/5]

#define FLD_T (   name)    decltype(QNAME(name)), &QNAME(name)

Definition at line 17 of file AMDKernelCodeTInfo.h.

◆ PARSECODEPROP [1/5]

#define PARSECODEPROP (   name)
Value:
parseBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static bool parseBitField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err)
#define FLD_T(name)
static const char * name

◆ PARSECODEPROP [2/5]

#define PARSECODEPROP (   name)
Value:
parseBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static bool parseBitField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err)
#define FLD_T(name)
static const char * name

◆ PARSECODEPROP [3/5]

#define PARSECODEPROP (   name)
Value:
parseBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static bool parseBitField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err)
#define FLD_T(name)
static const char * name

◆ PARSECODEPROP [4/5]

#define PARSECODEPROP (   name)
Value:
parseBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static bool parseBitField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err)
#define FLD_T(name)
static const char * name

Definition at line 30 of file AMDKernelCodeTInfo.h.

◆ PARSECODEPROP [5/5]

#define PARSECODEPROP (   name)
Value:
parseBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static bool parseBitField(amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err)
#define FLD_T(name)
static const char * name

◆ PARSECOMP [1/5]

#define PARSECOMP (   SetMacro,
  Shift 
)
Value:
[](amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) { \
int64_t Value = 0; \
if (!expectAbsExpression(MCParser, Value, Err)) \
return false; \
C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
return true; \
}
uint64_t CallInst * C
Generic assembler parser interface, for use by target specific assembly parsers.
Definition: MCAsmParser.h:110
AMD Kernel Code Object (amd_kernel_code_t).
static bool expectAbsExpression(MCAsmParser &MCParser, int64_t &Value, raw_ostream &Err)
LLVM Value Representation.
Definition: Value.h:73
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44

◆ PARSECOMP [2/5]

#define PARSECOMP (   SetMacro,
  Shift 
)
Value:
[](amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) { \
int64_t Value = 0; \
if (!expectAbsExpression(MCParser, Value, Err)) \
return false; \
C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
return true; \
}
uint64_t CallInst * C
AMD Kernel Code Object (amd_kernel_code_t).
static bool expectAbsExpression(MCAsmParser &MCParser, int64_t &Value, raw_ostream &Err)

Definition at line 44 of file AMDKernelCodeTInfo.h.

◆ PARSECOMP [3/5]

#define PARSECOMP (   SetMacro,
  Shift 
)
Value:
[](amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) { \
int64_t Value = 0; \
if (!expectAbsExpression(MCParser, Value, Err)) \
return false; \
C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
return true; \
}
uint64_t CallInst * C
Generic assembler parser interface, for use by target specific assembly parsers.
Definition: MCAsmParser.h:110
AMD Kernel Code Object (amd_kernel_code_t).
static bool expectAbsExpression(MCAsmParser &MCParser, int64_t &Value, raw_ostream &Err)
LLVM Value Representation.
Definition: Value.h:73
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44

◆ PARSECOMP [4/5]

#define PARSECOMP (   SetMacro,
  Shift 
)
Value:
[](amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) { \
int64_t Value = 0; \
if (!expectAbsExpression(MCParser, Value, Err)) \
return false; \
C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
return true; \
}
uint64_t CallInst * C
Generic assembler parser interface, for use by target specific assembly parsers.
Definition: MCAsmParser.h:110
AMD Kernel Code Object (amd_kernel_code_t).
static bool expectAbsExpression(MCAsmParser &MCParser, int64_t &Value, raw_ostream &Err)
LLVM Value Representation.
Definition: Value.h:73
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44

◆ PARSECOMP [5/5]

#define PARSECOMP (   SetMacro,
  Shift 
)
Value:
[](amd_kernel_code_t &C, MCAsmParser &MCParser, raw_ostream &Err) { \
int64_t Value = 0; \
if (!expectAbsExpression(MCParser, Value, Err)) \
return false; \
C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
return true; \
}
uint64_t CallInst * C
Generic assembler parser interface, for use by target specific assembly parsers.
Definition: MCAsmParser.h:110
AMD Kernel Code Object (amd_kernel_code_t).
static bool expectAbsExpression(MCAsmParser &MCParser, int64_t &Value, raw_ostream &Err)
LLVM Value Representation.
Definition: Value.h:73
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44

◆ PRINTCODEPROP [1/5]

#define PRINTCODEPROP (   name)
Value:
printBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static void printBitField(StringRef Name, const amd_kernel_code_t &c, raw_ostream &OS)
#define FLD_T(name)
static const char * name

◆ PRINTCODEPROP [2/5]

#define PRINTCODEPROP (   name)
Value:
printBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static void printBitField(StringRef Name, const amd_kernel_code_t &c, raw_ostream &OS)
#define FLD_T(name)
static const char * name

◆ PRINTCODEPROP [3/5]

#define PRINTCODEPROP (   name)
Value:
printBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static void printBitField(StringRef Name, const amd_kernel_code_t &c, raw_ostream &OS)
#define FLD_T(name)
static const char * name

◆ PRINTCODEPROP [4/5]

#define PRINTCODEPROP (   name)
Value:
printBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
static void printBitField(StringRef Name, const amd_kernel_code_t &c, raw_ostream &OS)
#define FLD_T(name)
static const char * name

◆ PRINTCODEPROP [5/5]

#define PRINTCODEPROP (   name)
Value:
printBitField<FLD_T(code_properties),\
AMD_CODE_PROPERTY_##name##_SHIFT,\
AMD_CODE_PROPERTY_##name##_WIDTH>
#define FLD_T(name)
static void printBitField(StringRef Name, const amd_kernel_code_t &c, raw_ostream &OS)
static const char * name

Definition at line 25 of file AMDKernelCodeTInfo.h.

◆ PRINTCOMP [1/5]

#define PRINTCOMP (   GetMacro,
  Shift 
)
Value:
printName(OS, Name) << \
(int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
}
uint64_t CallInst * C
AMD Kernel Code Object (amd_kernel_code_t).
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49

◆ PRINTCOMP [2/5]

#define PRINTCOMP (   GetMacro,
  Shift 
)
Value:
[](StringRef Name, const amd_kernel_code_t &C, raw_ostream &OS) { \
printName(OS, Name) << \
(int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
}
uint64_t CallInst * C
AMD Kernel Code Object (amd_kernel_code_t).

Definition at line 39 of file AMDKernelCodeTInfo.h.

◆ PRINTCOMP [3/5]

#define PRINTCOMP (   GetMacro,
  Shift 
)
Value:
printName(OS, Name) << \
(int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
}
uint64_t CallInst * C
AMD Kernel Code Object (amd_kernel_code_t).
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49

◆ PRINTCOMP [4/5]

#define PRINTCOMP (   GetMacro,
  Shift 
)
Value:
printName(OS, Name) << \
(int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
}
uint64_t CallInst * C
AMD Kernel Code Object (amd_kernel_code_t).
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49

◆ PRINTCOMP [5/5]

#define PRINTCOMP (   GetMacro,
  Shift 
)
Value:
printName(OS, Name) << \
(int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
}
uint64_t CallInst * C
AMD Kernel Code Object (amd_kernel_code_t).
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49

◆ QNAME [1/5]

#define QNAME (   name)    amd_kernel_code_t::name

◆ QNAME [2/5]

#define QNAME (   name)    amd_kernel_code_t::name

Definition at line 16 of file AMDKernelCodeTInfo.h.

◆ QNAME [3/5]

#define QNAME (   name)    amd_kernel_code_t::name

◆ QNAME [4/5]

#define QNAME (   name)    amd_kernel_code_t::name

◆ QNAME [5/5]

#define QNAME (   name)    amd_kernel_code_t::name

Function Documentation

◆ CODEPROP() [1/16]

CODEPROP ( enable_sgpr_private_segment_buffer  ,
ENABLE_SGPR_PRIVATE_SEGMENT_BUFFER   
)

◆ CODEPROP() [2/16]

CODEPROP ( enable_sgpr_dispatch_ptr  ,
ENABLE_SGPR_DISPATCH_PTR   
)

◆ CODEPROP() [3/16]

CODEPROP ( enable_sgpr_queue_ptr  ,
ENABLE_SGPR_QUEUE_PTR   
)

◆ CODEPROP() [4/16]

CODEPROP ( enable_sgpr_kernarg_segment_ptr  ,
ENABLE_SGPR_KERNARG_SEGMENT_PTR   
)

◆ CODEPROP() [5/16]

CODEPROP ( enable_sgpr_dispatch_id  ,
ENABLE_SGPR_DISPATCH_ID   
)

◆ CODEPROP() [6/16]

CODEPROP ( enable_sgpr_flat_scratch_init  ,
ENABLE_SGPR_FLAT_SCRATCH_INIT   
)

◆ CODEPROP() [7/16]

CODEPROP ( enable_sgpr_private_segment_size  ,
ENABLE_SGPR_PRIVATE_SEGMENT_SIZE   
)

◆ CODEPROP() [8/16]

CODEPROP ( enable_sgpr_grid_workgroup_count_x  ,
ENABLE_SGPR_GRID_WORKGROUP_COUNT_X   
)

◆ CODEPROP() [9/16]

CODEPROP ( enable_sgpr_grid_workgroup_count_y  ,
ENABLE_SGPR_GRID_WORKGROUP_COUNT_Y   
)

◆ CODEPROP() [10/16]

CODEPROP ( enable_sgpr_grid_workgroup_count_z  ,
ENABLE_SGPR_GRID_WORKGROUP_COUNT_Z   
)

◆ CODEPROP() [11/16]

CODEPROP ( enable_ordered_append_gds  ,
ENABLE_ORDERED_APPEND_GDS   
)

◆ CODEPROP() [12/16]

CODEPROP ( private_element_size  ,
PRIVATE_ELEMENT_SIZE   
)

◆ CODEPROP() [13/16]

CODEPROP ( is_ptr64  ,
IS_PTR64   
)

◆ CODEPROP() [14/16]

CODEPROP ( is_dynamic_callstack  ,
IS_DYNAMIC_CALLSTACK   
)

◆ CODEPROP() [15/16]

CODEPROP ( is_debug_enabled  ,
IS_DEBUG_SUPPORTED   
)

◆ CODEPROP() [16/16]

CODEPROP ( is_xnack_enabled  ,
IS_XNACK_SUPPORTED   
)

◆ COMPPGM1() [1/8]

COMPPGM1 ( granulated_workitem_vgpr_count  ,
compute_pgm_rsrc1_vgprs  ,
VGPRS   
)

◆ COMPPGM1() [2/8]

COMPPGM1 ( granulated_wavefront_sgpr_count  ,
compute_pgm_rsrc1_sgprs  ,
SGPRS   
)

◆ COMPPGM1() [3/8]

COMPPGM1 ( priority  ,
compute_pgm_rsrc1_priority  ,
PRIORITY   
)

◆ COMPPGM1() [4/8]

COMPPGM1 ( float_mode  ,
compute_pgm_rsrc1_float_mode  ,
FLOAT_MODE   
)

◆ COMPPGM1() [5/8]

COMPPGM1 ( priv  ,
compute_pgm_rsrc1_priv  ,
PRIV   
)

◆ COMPPGM1() [6/8]

COMPPGM1 ( enable_dx10_clamp  ,
compute_pgm_rsrc1_dx10_clamp  ,
DX10_CLAMP   
)

◆ COMPPGM1() [7/8]

COMPPGM1 ( debug_mode  ,
compute_pgm_rsrc1_debug_mode  ,
DEBUG_MODE   
)

◆ COMPPGM1() [8/8]

COMPPGM1 ( enable_ieee_mode  ,
compute_pgm_rsrc1_ieee_mode  ,
IEEE_MODE   
)

◆ COMPPGM2() [1/11]

COMPPGM2 ( enable_sgpr_private_segment_wave_byte_offset  ,
compute_pgm_rsrc2_scratch_en  ,
SCRATCH_EN   
)

◆ COMPPGM2() [2/11]

COMPPGM2 ( user_sgpr_count  ,
compute_pgm_rsrc2_user_sgpr  ,
USER_SGPR   
)

◆ COMPPGM2() [3/11]

COMPPGM2 ( enable_trap_handler  ,
compute_pgm_rsrc2_trap_handler  ,
TRAP_HANDLER   
)

◆ COMPPGM2() [4/11]

COMPPGM2 ( enable_sgpr_workgroup_id_x  ,
compute_pgm_rsrc2_tgid_x_en  ,
TGID_X_EN   
)

◆ COMPPGM2() [5/11]

COMPPGM2 ( enable_sgpr_workgroup_id_y  ,
compute_pgm_rsrc2_tgid_y_en  ,
TGID_Y_EN   
)

◆ COMPPGM2() [6/11]

COMPPGM2 ( enable_sgpr_workgroup_id_z  ,
compute_pgm_rsrc2_tgid_z_en  ,
TGID_Z_EN   
)

◆ COMPPGM2() [7/11]

COMPPGM2 ( enable_sgpr_workgroup_info  ,
compute_pgm_rsrc2_tg_size_en  ,
TG_SIZE_EN   
)

◆ COMPPGM2() [8/11]

COMPPGM2 ( enable_vgpr_workitem_id  ,
compute_pgm_rsrc2_tidig_comp_cnt  ,
TIDIG_COMP_CNT   
)

◆ COMPPGM2() [9/11]

COMPPGM2 ( enable_exception_msb  ,
compute_pgm_rsrc2_excp_en_msb  ,
EXCP_EN_MSB   
)

◆ COMPPGM2() [10/11]

COMPPGM2 ( granulated_lds_size  ,
compute_pgm_rsrc2_lds_size  ,
LDS_SIZE   
)

◆ COMPPGM2() [11/11]

COMPPGM2 ( enable_exception  ,
compute_pgm_rsrc2_excp_en  ,
EXCP_EN   
)

◆ FIELD() [1/21]

FIELD ( kernel_code_entry_byte_offset  )

◆ FIELD() [2/21]

FIELD ( kernel_code_prefetch_byte_size  )

◆ FIELD() [3/21]

FIELD ( max_scratch_backing_memory_byte_size  )

◆ FIELD() [4/21]

FIELD ( workitem_private_segment_byte_size  )

◆ FIELD() [5/21]

FIELD ( workgroup_group_segment_byte_size  )

◆ FIELD() [6/21]

FIELD ( gds_segment_byte_size  )

◆ FIELD() [7/21]

FIELD ( kernarg_segment_byte_size  )

◆ FIELD() [8/21]

FIELD ( workgroup_fbarrier_count  )

◆ FIELD() [9/21]

FIELD ( wavefront_sgpr_count  )

◆ FIELD() [10/21]

FIELD ( workitem_vgpr_count  )

◆ FIELD() [11/21]

FIELD ( reserved_vgpr_first  )

◆ FIELD() [12/21]

FIELD ( reserved_vgpr_count  )

◆ FIELD() [13/21]

FIELD ( reserved_sgpr_first  )

◆ FIELD() [14/21]

FIELD ( reserved_sgpr_count  )

◆ FIELD() [15/21]

FIELD ( debug_wavefront_private_segment_offset_sgpr  )

◆ FIELD() [16/21]

FIELD ( debug_private_segment_buffer_sgpr  )

◆ FIELD() [17/21]

FIELD ( kernarg_segment_alignment  )

◆ FIELD() [18/21]

FIELD ( group_segment_alignment  )

◆ FIELD() [19/21]

FIELD ( private_segment_alignment  )

◆ FIELD() [20/21]

FIELD ( wavefront_size  )

◆ FIELD() [21/21]

FIELD ( call_convention  )

◆ FIELD2() [1/6]

FIELD2 ( amd_code_version_major  ,
kernel_code_version_major  ,
amd_kernel_code_version_major   
)

◆ FIELD2() [2/6]

FIELD2 ( amd_code_version_minor  ,
kernel_code_version_minor  ,
amd_kernel_code_version_minor   
)

◆ FIELD2() [3/6]

FIELD2 ( amd_machine_kind  ,
machine_kind  ,
amd_machine_kind   
)

◆ FIELD2() [4/6]

FIELD2 ( amd_machine_version_major  ,
machine_version_major  ,
amd_machine_version_major   
)

◆ FIELD2() [5/6]

FIELD2 ( amd_machine_version_minor  ,
machine_version_minor  ,
amd_machine_version_minor   
)

◆ FIELD2() [6/6]

FIELD2 ( amd_machine_version_stepping  ,
machine_version_stepping  ,
amd_machine_version_stepping   
)