annotate python/ppci/core/context.py @ 105:6a303f835c6d
Removed compilers directory
author |
Windel Bouwman |
date |
Mon, 31 Dec 2012 17:35:17 +0100 |
parents |
ed230e947dc6 |
children |
9e552d34bd60 |
rev |
line source |
104
|
1 from .llvmtype import IntegerType, llvmType, typeID, FunctionType
|
70
|
2
|
|
3 class Context:
|
104
|
4 """ Global context """
|
|
5 def __init__(self):
|
|
6 self.Int8Type = IntegerType(self, 8)
|
|
7 self.Int16Type = IntegerType(self, 16)
|
|
8 self.Int32Type = IntegerType(self, 32)
|
|
9 self.Int64Type = IntegerType(self, 64)
|
|
10 self.VoidType = llvmType(self, typeID.Void)
|
|
11 self.DoubleType = llvmType(self, typeID.Double)
|
70
|
12
|