annotate python/ppci/core/context.py @ 104:ed230e947dc6

Added hexviewer
author windel
date Sun, 30 Dec 2012 22:31:55 +0100
parents 4a37d6992bd3
children 9e552d34bd60
rev   line source
104
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
1 from .llvmtype import IntegerType, llvmType, typeID, FunctionType
70
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
2
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
3 class Context:
104
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
4 """ Global context """
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
5 def __init__(self):
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
6 self.Int8Type = IntegerType(self, 8)
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
7 self.Int16Type = IntegerType(self, 16)
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
8 self.Int32Type = IntegerType(self, 32)
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
9 self.Int64Type = IntegerType(self, 64)
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
10 self.VoidType = llvmType(self, typeID.Void)
ed230e947dc6 Added hexviewer
windel
parents: 95
diff changeset
11 self.DoubleType = llvmType(self, typeID.Double)
70
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
12