Add ImmediateType for declaring immediate operands.

This commit is contained in:
Jakob Stoklund Olesen
2016-03-30 11:36:23 -07:00
parent 29481a5851
commit 10903503c4
4 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
"""
The cretonne.immdiates module predefines all the Cretonne immediate operand
types.
"""
from . import ImmediateType
#: A 64-bit immediate integer operand.
#:
#: This type of immediate integer can interact with SSA values with any
#: :py:class:`cretonne.IntType` type.
imm64 = ImmediateType('imm64', 'A 64-bit immediate integer.')