================ @@ -0,0 +1,80 @@ +//===-- amdhsa_abi.h - AMDHSA ABI definition utilities --------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __AMDHSA_ABI_H +#define __AMDHSA_ABI_H + +#include <stddef.h> +#include <stdint.h> + +typedef struct __attribute__((aligned(8))) amdhsa_implicit_kernarg_v5 { + uint32_t block_count[3]; + uint16_t group_size[3]; + uint16_t remainder[3]; + char reserved0[16]; + uint64_t global_offset[3]; + uint16_t grid_dims; + char reserved1[14]; + __attribute__((opencl_global)) void *hostcall_buffer; ---------------- jhuber6 wrote:
```suggestion void __attribute__((opencl_global)) *hostcall_buffer; ``` The AS attributes are supposed to go on the type but the old style is permissive. https://github.com/llvm/llvm-project/pull/181993 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
