Lines Matching refs:Header
58 AMDGPUTargetAsmStreamer::EmitAMDKernelCodeT(const amd_kernel_code_t &Header) {
59 uint64_t ComputePgmRsrc2 = (Header.compute_pgm_resource_registers >> 32);
60 bool EnableSGPRPrivateSegmentBuffer = (Header.code_properties &
62 bool EnableSGPRDispatchPtr = (Header.code_properties &
64 bool EnableSGPRQueuePtr = (Header.code_properties &
66 bool EnableSGPRKernargSegmentPtr = (Header.code_properties &
68 bool EnableSGPRDispatchID = (Header.code_properties &
70 bool EnableSGPRFlatScratchInit = (Header.code_properties &
72 bool EnableSGPRPrivateSegmentSize = (Header.code_properties &
74 bool EnableSGPRGridWorkgroupCountX = (Header.code_properties &
76 bool EnableSGPRGridWorkgroupCountY = (Header.code_properties &
78 bool EnableSGPRGridWorkgroupCountZ = (Header.code_properties &
80 bool EnableOrderedAppendGDS = (Header.code_properties &
82 uint32_t PrivateElementSize = (Header.code_properties &
85 bool IsPtr64 = (Header.code_properties & AMD_CODE_PROPERTY_IS_PTR64);
86 bool IsDynamicCallstack = (Header.code_properties &
88 bool IsDebugEnabled = (Header.code_properties &
90 bool IsXNackEnabled = (Header.code_properties &
95 Header.amd_kernel_code_version_major << '\n' <<
97 Header.amd_kernel_code_version_minor << '\n' <<
99 Header.amd_machine_kind << '\n' <<
101 Header.amd_machine_version_major << '\n' <<
103 Header.amd_machine_version_minor << '\n' <<
105 Header.amd_machine_version_stepping << '\n' <<
107 Header.kernel_code_entry_byte_offset << '\n' <<
109 Header.kernel_code_prefetch_byte_size << '\n' <<
111 Header.max_scratch_backing_memory_byte_size << '\n' <<
113 G_00B848_VGPRS(Header.compute_pgm_resource_registers) << '\n' <<
115 G_00B848_SGPRS(Header.compute_pgm_resource_registers) << '\n' <<
117 G_00B848_PRIORITY(Header.compute_pgm_resource_registers) << '\n' <<
119 G_00B848_FLOAT_MODE(Header.compute_pgm_resource_registers) << '\n' <<
121 G_00B848_PRIV(Header.compute_pgm_resource_registers) << '\n' <<
123 G_00B848_DX10_CLAMP(Header.compute_pgm_resource_registers) << '\n' <<
125 G_00B848_DEBUG_MODE(Header.compute_pgm_resource_registers) << '\n' <<
127 G_00B848_IEEE_MODE(Header.compute_pgm_resource_registers) << '\n' <<
182 Header.workitem_private_segment_byte_size << '\n' <<
184 Header.workgroup_group_segment_byte_size << '\n' <<
186 Header.gds_segment_byte_size << '\n' <<
188 Header.kernarg_segment_byte_size << '\n' <<
190 Header.workgroup_fbarrier_count << '\n' <<
192 Header.wavefront_sgpr_count << '\n' <<
194 Header.workitem_vgpr_count << '\n' <<
196 Header.reserved_vgpr_first << '\n' <<
198 Header.reserved_vgpr_count << '\n' <<
200 Header.reserved_sgpr_first << '\n' <<
202 Header.reserved_sgpr_count << '\n' <<
204 Header.debug_wavefront_private_segment_offset_sgpr << '\n' <<
206 Header.debug_private_segment_buffer_sgpr << '\n' <<
208 (uint32_t)Header.kernarg_segment_alignment << '\n' <<
210 (uint32_t)Header.group_segment_alignment << '\n' <<
212 (uint32_t)Header.private_segment_alignment << '\n' <<
214 (uint32_t)Header.wavefront_size << '\n' <<
216 Header.call_convention << '\n' <<
218 Header.runtime_loader_kernel_symbol << '\n' <<
311 AMDGPUTargetELFStreamer::EmitAMDKernelCodeT(const amd_kernel_code_t &Header) {
315 OS.EmitBytes(StringRef((const char*)&Header, sizeof(Header)));