Mercurial > lcfOS
comparison python/ir/context.py @ 147:4e79484a9d47
Moved core to ir folder
author | Windel Bouwman |
---|---|
date | Fri, 22 Feb 2013 10:33:48 +0100 |
parents | python/ppci/core/context.py@9e552d34bd60 |
children |
comparison
equal
deleted
inserted
replaced
146:91af0e40f868 | 147:4e79484a9d47 |
---|---|
1 from .llvmtype import IntegerType, llvmType, typeID, FunctionType | |
2 | |
3 class Context: | |
4 """ Global context """ | |
5 def __init__(self): | |
6 self.Int8Type = IntegerType(8) | |
7 self.Int16Type = IntegerType(16) | |
8 self.Int32Type = IntegerType(32) | |
9 self.Int64Type = IntegerType(64) | |
10 self.VoidType = llvmType(typeID.Void) | |
11 self.DoubleType = llvmType(typeID.Double) | |
12 |