summaryrefslogtreecommitdiff
path: root/src/compiler/clc/nir_clc_helpers.h
blob: 02a69ae5df437675e8557c4591ede80a10ec6eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright 2023 Intel Corporation
 * SPDX-License-Identifier: MIT
 */

#ifndef MESA_NIR_CLC_H
#define MESA_NIR_CLC_H

#include "nir.h"

#ifdef __cplusplus
extern "C" {
#endif

struct disk_cache;
struct spirv_to_nir_options;

bool nir_can_find_libclc(unsigned ptr_bit_size);

nir_shader *
nir_load_libclc_shader(unsigned ptr_bit_size,
                       struct disk_cache *disk_cache,
                       const struct spirv_to_nir_options *spirv_options,
                       const nir_shader_compiler_options *nir_options);

bool nir_lower_libclc(nir_shader *shader, const nir_shader *clc_shader);

#ifdef __cplusplus
}
#endif

#endif /* MESA_NIR_CLC_H */