aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_build.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-03-09 16:26:34 +0100
committerSamuel Pitoiset <[email protected]>2018-03-13 14:05:06 +0100
commit895632baefdbc4f89835a71d72f7620d71ad21b0 (patch)
treefd924ebd5c9ce7dc5f740c59468a0d2d4792ca0f /src/amd/common/ac_llvm_build.h
parentbf6368297b5dba11d2d3dfbc4486ac98112f4a6d (diff)
ac/nir: move cast_ptr() to ac_llvm_build.c
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.h')
-rw-r--r--src/amd/common/ac_llvm_build.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index 2587c94315c..33d39231571 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -395,6 +395,9 @@ LLVMValueRef ac_build_alloca(struct ac_llvm_context *ac, LLVMTypeRef type,
LLVMValueRef ac_build_alloca_undef(struct ac_llvm_context *ac, LLVMTypeRef type,
const char *name);
+LLVMValueRef ac_cast_ptr(struct ac_llvm_context *ctx, LLVMValueRef ptr,
+ LLVMTypeRef type);
+
#ifdef __cplusplus
}
#endif