xref: /aosp_15_r20/external/mesa3d/src/amd/vulkan/radv_llvm_helper.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2018 Red Hat.
3  *
4  * SPDX-License-Identifier: MIT
5  */
6 #ifndef RADV_SHADER_HELPER_H
7 #define RADV_SHADER_HELPER_H
8 
9 #include "ac_llvm_util.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 bool radv_init_llvm_compiler(struct ac_llvm_compiler *info, enum radeon_family family,
16                              enum ac_target_machine_options tm_options, unsigned wave_size);
17 
18 bool radv_compile_to_elf(struct ac_llvm_compiler *info, LLVMModuleRef module, char **pelf_buffer, size_t *pelf_size);
19 
20 #ifdef __cplusplus
21 }
22 #endif
23 
24 #endif /* RADV_LLVM_HELPER_H */
25