aboutsummaryrefslogtreecommitdiffhomepage
path: root/llvm_zluda/src/lib.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-09-13 01:07:31 +0200
committerGitHub <[email protected]>2024-09-13 01:07:31 +0200
commit46def3e7e09dbf4d3e7287a72bfecb73e6e429c5 (patch)
tree6eebad3f9722ee9127c2640300ae20047d4acd9d /llvm_zluda/src/lib.rs
parent193eb29be825370449afb1fe2358f6a654aa0986 (diff)
downloadZLUDA-46def3e7e09dbf4d3e7287a72bfecb73e6e429c5.tar.gz
ZLUDA-46def3e7e09dbf4d3e7287a72bfecb73e6e429c5.zip
Connect new parser to LLVM bitcode backend (#269)
This is very incomplete. Just enough code to emit LLVM bitcode and continue further development
Diffstat (limited to 'llvm_zluda/src/lib.rs')
-rw-r--r--llvm_zluda/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm_zluda/src/lib.rs b/llvm_zluda/src/lib.rs
new file mode 100644
index 0000000..18072a8
--- /dev/null
+++ b/llvm_zluda/src/lib.rs
@@ -0,0 +1,10 @@
+use llvm_sys::prelude::*;
+pub use llvm_sys::*;
+extern "C" {
+ pub fn LLVMZludaBuildAlloca(
+ B: LLVMBuilderRef,
+ Ty: LLVMTypeRef,
+ AddrSpace: u32,
+ Name: *const i8,
+ ) -> LLVMValueRef;
+}