Collect all instructions into instruction groups.

This commit is contained in:
Jakob Stoklund Olesen
2016-04-05 14:35:50 -07:00
parent d32d78d16c
commit 6f083a310a
3 changed files with 52 additions and 1 deletions

View File

@@ -3,10 +3,12 @@ Cretonne base instruction set.
This module defines the basic Cretonne instruction set that all targets support.
"""
from . import TypeVar, Operand, Instruction
from . import TypeVar, Operand, Instruction, InstructionGroup
from types import i8, f32, f64
from immediates import imm64, ieee32, ieee64, immvector
instructions = InstructionGroup("base", "Shared base instruction set")
Int = TypeVar('Int', 'A scalar or vector integer type')
iB = TypeVar('iB', 'A scalar integer type')
TxN = TypeVar('%Tx%N', 'A SIMD vector type')
@@ -321,3 +323,5 @@ popcnt = Instruction('popcnt', r"""
Count the number of one bits in ``x``.
""",
ins=x, outs=a)
instructions.close()