Start to clean things up to get into a state usable by others.
[cl-llvm.git] / src / typemaps.i
blob4f144676885cd1c9293cff1cc83acfb63f4cef98
2 // Put everything in a package
3 %insert("lisphead") %{
4 (in-package :llvm)%}
6 %typemap(cin) LLVMBool ":boolean";
7 %typemap(cout) LLVMBool ":boolean";
9 // These typemaps are a bit silly: all they do is provide
10 // documentation in the interfaces. All the actual types degenerate into
11 // :pointer, in any case, via defctype.
13 // For Core.h
14 %typemap(cin) LLVMContextRef "LLVMContextRef";
15 %typemap(cout) LLVMContextRef "LLVMContextRef";
16 %typemap(cin) LLVMModuleRef "LLVMModuleRef";
17 %typemap(cout) LLVMModuleRef "LLVMModuleRef";
18 %typemap(cin) LLVMTypeRef "LLVMTypeRef";
19 %typemap(cout) LLVMTypeRef "LLVMTypeRef";
20 %typemap(cin) LLVMTypeHandleRef "LLVMTypeHandleRef";
21 %typemap(cout) LLVMTypeHandleRef "LLVMTypeHandleRef";
22 %typemap(cin) LLVMValueRef "LLVMValueRef";
23 %typemap(cout) LLVMValueRef "LLVMValueRef";
24 %typemap(cin) LLVMBasicBlockRef "LLVMBasicBlockRef";
25 %typemap(cout) LLVMBasicBlockRef "LLVMBasicBlockRef";
26 %typemap(cin) LLVMBuilderRef "LLVMBuilderRef";
27 %typemap(cout) LLVMBuilderRef "LLVMBuilderRef";
28 %typemap(cin) LLVMModuleProviderRef "LLVMModuleProviderRef";
29 %typemap(cout) LLVMModuleProviderRef "LLVMModuleProviderRef";
30 %typemap(cin) LLVMMemoryBufferRef "LLVMMemoryBufferRef";
31 %typemap(cout) LLVMMemoryBufferRef "LLVMMemoryBufferRef";
32 %typemap(cin) LLVMPassManagerRef "LLVMPassManagerRef";
33 %typemap(cout) LLVMPassManagerRef "LLVMPassManagerRef";
34 %typemap(cin) LLVMUseIteratorRef "LLVMUseIteratorRef";
35 %typemap(cout) LLVMUseIteratorRef "LLVMUseIteratorRef";
37 // For ExecutionEngine.h
38 %typemap(cin) LLVMGenericValueRef "LLVMGenericValueRef";
39 %typemap(cout) LLVMGenericValueRef "LLVMGenericValueRef";
40 %typemap(cin) LLVMExecutionEngineRef "LLVMExecutionEngineRef";
41 %typemap(cout) LLVMExecutionEngineRef "LLVMExecutionEngineRef";
43 // For Target.h
44 %typemap(cin) LLVMTargetDataRef "LLVMTargetDataRef";
45 %typemap(cout) LLVMTargetDataRef "LLVMTargetDataRef";
46 %typemap(cin) LLVMStructLayoutRef "LLVMStructLayoutRef";
47 %typemap(cout) LLVMStructLayoutRef "LLVMStructLayoutRef";