~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/amd/llvm/ac_llvm_util.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright 2016 Bas Nieuwenhuizen
3
3
 *
4
 
 * Permission is hereby granted, free of charge, to any person obtaining a
5
 
 * copy of this software and associated documentation files (the
6
 
 * "Software"), to deal in the Software without restriction, including
7
 
 * without limitation the rights to use, copy, modify, merge, publish,
8
 
 * distribute, sub license, and/or sell copies of the Software, and to
9
 
 * permit persons to whom the Software is furnished to do so, subject to
10
 
 * the following conditions:
11
 
 *
12
 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
 
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
 
 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
15
 
 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
16
 
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
17
 
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
 
 * USE OR OTHER DEALINGS IN THE SOFTWARE.
19
 
 *
20
 
 * The above copyright notice and this permission notice (including the
21
 
 * next paragraph) shall be included in all copies or substantial portions
22
 
 * of the Software.
23
 
 *
 
4
 * SPDX-License-Identifier: MIT
24
5
 */
25
6
 
26
7
#ifndef AC_LLVM_UTIL_H
80
61
const char *ac_get_llvm_processor_name(enum radeon_family family);
81
62
void ac_llvm_run_atexit_for_destructors(void);
82
63
bool ac_is_llvm_processor_supported(LLVMTargetMachineRef tm, const char *processor);
83
 
void ac_reset_llvm_all_options_occurences();
 
64
void ac_reset_llvm_all_options_occurrences();
84
65
void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes);
85
66
void ac_add_attr_alignment(LLVMValueRef val, uint64_t bytes);
86
67
bool ac_is_sgpr_param(LLVMValueRef param);
95
76
 
96
77
void ac_llvm_add_target_dep_function_attr(LLVMValueRef F, const char *name, unsigned value);
97
78
void ac_llvm_set_workgroup_size(LLVMValueRef F, unsigned size);
98
 
void ac_llvm_set_target_features(LLVMValueRef F, struct ac_llvm_context *ctx);
 
79
void ac_llvm_set_target_features(LLVMValueRef F, struct ac_llvm_context *ctx, bool wgp_mode);
99
80
 
100
81
LLVMTargetLibraryInfoRef ac_create_target_library_info(const char *triple);
101
82
void ac_dispose_target_library_info(LLVMTargetLibraryInfoRef library_info);