Initial revision.
[cl-llvm.git] / Target.i
blobe300d7e273080f65e386afea960db77286b6138c
1 // Target is annoying, handle it manually. :(
2 %{
3 #include "/usr/include/llvm-c/Target.h"
4 %}
6 LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep);
8 void LLVMAddTargetData(LLVMTargetDataRef, LLVMPassManagerRef);
9 char *LLVMCopyStringRepOfTargetData(LLVMTargetDataRef);
10 LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef);
11 unsigned LLVMPointerSize(LLVMTargetDataRef);
12 LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef);
13 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef, LLVMTypeRef);
14 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef, LLVMTypeRef);
15 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef, LLVMTypeRef);
16 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef);
17 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef);
18 unsigned LLVMPreferredAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef);
19 unsigned LLVMPreferredAlignmentOfGlobal(LLVMTargetDataRef,
20 LLVMValueRef GlobalVar);
21 unsigned LLVMElementAtOffset(LLVMTargetDataRef, LLVMTypeRef StructTy,
22 unsigned long long Offset);
23 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef, LLVMTypeRef StructTy,
24 unsigned Element);
25 void LLVMInvalidateStructLayout(LLVMTargetDataRef, LLVMTypeRef StructTy);
26 void LLVMDisposeTargetData(LLVMTargetDataRef);