diff options
author | Andrzej Janik <[email protected]> | 2024-09-13 01:07:31 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-13 01:07:31 +0200 |
commit | 46def3e7e09dbf4d3e7287a72bfecb73e6e429c5 (patch) | |
tree | 6eebad3f9722ee9127c2640300ae20047d4acd9d /llvm_zluda/src/lib.rs | |
parent | 193eb29be825370449afb1fe2358f6a654aa0986 (diff) | |
download | ZLUDA-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.rs | 10 |
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;
+}
|