Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Target.ooc.

  • Loading branch information...
commit 5680b39cb4170ee5727b869c21104484a95ecfdf 1 parent 41878f9
@tsion authored
Showing with 50 additions and 1 deletion.
  1. +1 −1  llvm.use
  2. +49 −0 llvm/Target.ooc
View
2  llvm.use
@@ -1,5 +1,5 @@
Name: LLVM
Description: Low Level Virtual Machine
Libs: -L/usr/lib/llvm -lpthread -lffi -ldl -lm -lLLVMCore -lLLVMSupport -lLLVMSystem
-Includes: llvm-c/Core.h, llvm-c/ExecutionEngine.h
+Includes: llvm-c/Core.h, llvm-c/ExecutionEngine.h, llvm-c/Target.h
SourcePath: .
View
49 llvm/Target.ooc
@@ -0,0 +1,49 @@
+use llvm
+import llvm/Core
+
+Target: cover from LLVMTargetDataRef {
+ initializeAllInfos: extern(LLVMInitializeAllTargetInfos) static func
+
+ initializeAll: extern(LLVMInitializeAllTargets) static func
+
+ initializeNative: extern(LLVMInitializeNativeTarget) static func
+
+ new: extern(LLVMCreateTargetData) static func (String) -> This
+
+// addToPassManager: extern(LLVMAddTargetData) static func (PassManager)
+
+ toString: extern(LLVMCopyStringRepOfTargetData) func -> String
+
+ byteOrder: extern(LLVMByteOrder) func -> ByteOrdering
+
+ pointerSize: extern(LLVMPointerSize) func -> UInt
+
+ intPointerType: extern(LLVMIntPtrType) func -> Type
+
+ sizeOfTypeInBits: extern(LLVMSizeOfTypeInBits) func (Type) -> ULLong
+
+ storeSizeOfType: extern(LLVMStoreSizeOfType) func (Type) -> ULLong
+
+ abiSizeOfType: extern(LLVMABISizeOfType) func (Type) -> ULLong
+
+ abiAlignmentOfType: extern(LLVMABIAlignmentOfType) func (Type) -> UInt
+
+ callFrameAlignmentOfType: extern(LLVMCallFrameAlignmentOfType) func (Type) -> UInt
+
+ preferredAlignmentOfType: extern(LLVMPreferredAlignmentOfType) func (Type) -> UInt
+
+ preferredAlignmentOfGlobal: extern(LLVMPreferredAlignmentOfGlobal) func (Value) -> UInt
+
+ elementAtOffset: extern(LLVMElementAtOffset) func (Type, ULLong) -> UInt
+
+ offsetOfElement: extern(LLVMOffsetOfElement) func (Type, UInt) -> ULLong
+
+ invalidateStructLayout: extern(LLVMInvalidateStructLayout) func (Type)
+
+ dispose: extern(LLVMDisposeTargetData) func
+}
+
+ByteOrdering: enum { /* extern(enum LLVMByteOrdering) */
+ bigEndian: extern(LLVMBigEndian)
+ littleEndian: extern(LLVMLittleEndian)
+}
Please sign in to comment.
Something went wrong with that request. Please try again.