summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_build.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-12-11 12:54:47 +1100
committerTimothy Arceri <[email protected]>2018-01-05 11:58:55 +1100
commitb99ebaa4fd7ab1f4b1f3ff5b965d422f67a8cb40 (patch)
treee6b1a1cef02a226c1b2c26ea3494000363f92db7 /src/amd/common/ac_llvm_build.h
parent2deb82207572d47ab1b35fc47768536ad34a875e (diff)
ac: move some helpers to ac_llvm_build.c
We will call these from the radeonsi NIR backend. Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.h')
-rw-r--r--src/amd/common/ac_llvm_build.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index 6427d5315ae..3c81e2d43d3 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -83,6 +83,14 @@ void
ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context,
enum chip_class chip_class, enum radeon_family family);
+int
+ac_get_llvm_num_components(LLVMValueRef value);
+
+LLVMValueRef
+ac_llvm_extract_elem(struct ac_llvm_context *ac,
+ LLVMValueRef value,
+ int index);
+
unsigned ac_get_type_size(LLVMTypeRef type);
LLVMTypeRef ac_to_integer_type(struct ac_llvm_context *ctx, LLVMTypeRef t);