Mercurial > lcfOS
comparison python/ppci/core/context.py @ 111:d3068efdf045
merge
author | Windel Bouwman |
---|---|
date | Fri, 04 Jan 2013 15:26:59 +0100 |
parents | 9e552d34bd60 |
children |
comparison
equal
deleted
inserted
replaced
109:ad14c7c52589 | 111:d3068efdf045 |
---|---|
1 from .llvmtype import IntegerType, llvmType, typeID, FunctionType | 1 from .llvmtype import IntegerType, llvmType, typeID, FunctionType |
2 | 2 |
3 class Context: | 3 class Context: |
4 """ Global context """ | 4 """ Global context """ |
5 def __init__(self): | 5 def __init__(self): |
6 self.Int8Type = IntegerType(self, 8) | 6 self.Int8Type = IntegerType(8) |
7 self.Int16Type = IntegerType(self, 16) | 7 self.Int16Type = IntegerType(16) |
8 self.Int32Type = IntegerType(self, 32) | 8 self.Int32Type = IntegerType(32) |
9 self.Int64Type = IntegerType(self, 64) | 9 self.Int64Type = IntegerType(64) |
10 self.VoidType = llvmType(self, typeID.Void) | 10 self.VoidType = llvmType(typeID.Void) |
11 self.DoubleType = llvmType(self, typeID.Double) | 11 self.DoubleType = llvmType(typeID.Double) |
12 | 12 |