rusticl/program: add LLVM functions to cache timestamp

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24386>
This commit is contained in:
Karol Herbst
2023-06-24 10:56:58 +02:00
committed by Marge Bot
parent 299f949775
commit 1e5bc00715
@@ -12,6 +12,7 @@ use mesa_rust::pipe::resource::*;
use mesa_rust::pipe::screen::ResourceType;
use mesa_rust::util::disk_cache::*;
use mesa_rust_gen::*;
use rusticl_llvm_gen::*;
use rusticl_opencl_gen::*;
use std::collections::HashMap;
@@ -43,6 +44,12 @@ fn get_disk_cache() -> &'static Option<DiskCache> {
let func_ptrs = [
// ourselves
get_disk_cache as _,
// LLVM
llvm_LLVMContext_LLVMContext as _,
// clang
clang_getClangFullVersion as _,
// SPIRV-LLVM-Translator
llvm_writeSpirv1 as _,
];
unsafe {
DISK_CACHE_ONCE.call_once(|| {