|
3 | 3 | use libc::{c_char, c_uint};
|
4 | 4 |
|
5 | 5 | use super::Bool;
|
6 |
| -use super::ffi::{Attribute, BasicBlock, Builder, Metadata, Module, Type, Value}; |
| 6 | +use super::ffi::{Attribute, BasicBlock, Metadata, Module, Type, Value}; |
7 | 7 | extern "C" {
|
8 | 8 | // Enzyme
|
9 |
| - pub fn LLVMRustHasMetadata(I: &Value, KindID: c_uint) -> Bool; |
| 9 | + pub fn LLVMRustHasMetadata(I: &Value, KindID: c_uint) -> bool; |
10 | 10 | pub fn LLVMRustEraseInstBefore(BB: &BasicBlock, I: &Value);
|
11 | 11 | pub fn LLVMRustGetLastInstruction<'a>(BB: &BasicBlock) -> Option<&'a Value>;
|
12 | 12 | pub fn LLVMRustDIGetInstMetadata(I: &Value) -> Option<&Metadata>;
|
13 | 13 | pub fn LLVMRustEraseInstFromParent(V: &Value);
|
14 | 14 | pub fn LLVMRustGetTerminator<'a>(B: &BasicBlock) -> &'a Value;
|
15 |
| - pub fn LLVMGetFunctionCallConv(F: &Value) -> c_uint; |
16 | 15 |
|
| 16 | + pub fn LLVMGetFunctionCallConv(F: &Value) -> c_uint; |
17 | 17 | pub fn LLVMGetReturnType(T: &Type) -> &Type;
|
18 | 18 | pub fn LLVMDumpModule(M: &Module);
|
19 | 19 | pub fn LLVMCountStructElementTypes(T: &Type) -> c_uint;
|
20 | 20 | pub fn LLVMVerifyFunction(V: &Value, action: LLVMVerifierFailureAction) -> Bool;
|
21 | 21 | pub fn LLVMGetParams(Fnc: &Value, parms: *mut &Value);
|
22 |
| - pub fn LLVMBuildCall2<'a>( |
23 |
| - arg1: &Builder<'a>, |
24 |
| - ty: &Type, |
25 |
| - func: &Value, |
26 |
| - args: *const &Value, |
27 |
| - num_args: usize, |
28 |
| - name: *const c_char, |
29 |
| - ) -> &'a Value; |
30 | 22 | pub fn LLVMGetNamedFunction(M: &Module, Name: *const c_char) -> Option<&Value>;
|
31 | 23 | pub fn LLVMIsEnumAttribute(A: &Attribute) -> Bool;
|
32 | 24 | pub fn LLVMIsStringAttribute(A: &Attribute) -> Bool;
|
|
0 commit comments