2
Copyright (c) 1998-2004 by Jonas Maebe, member of the Free Pascal
5
This unit contains several types and constants necessary for the
6
optimizer to work on the sparc architecture
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
****************************************************************************
24
Unit aoptcpub; { Assembler OPTimizer CPU specific Base }
28
{ enable the following define if memory references can have both a base and }
29
{ index register in 1 operand }
31
{$define RefsHaveIndexReg}
33
{ enable the following define if memory references can have a scaled index }
35
{ define RefsHaveScale}
37
{ enable the following define if memory references can have a segment }
40
{ define RefsHaveSegment}
45
cpubase,aasmcpu,AOptBase;
49
{ type of a normal instruction }
53
{ ************************************************************************* }
54
{ **************************** TCondRegs ********************************** }
55
{ ************************************************************************* }
56
{ Info about the conditional registers }
62
{ ************************************************************************* }
63
{ **************************** TAoptBaseCpu ******************************* }
64
{ ************************************************************************* }
66
TAoptBaseCpu = class(TAoptBase)
70
{ ************************************************************************* }
71
{ ******************************* Constants ******************************* }
72
{ ************************************************************************* }
75
{ the maximum number of things (registers, memory, ...) a single instruction }
80
{ the maximum number of operands an instruction has }
84
{Oper index of operand that contains the source (reference) with a load }
89
{Oper index of operand that contains the destination (register) with a load }
94
{Oper index of operand that contains the source (register) with a store }
99
{Oper index of operand that contains the destination (reference) with a load }
104
aopt_uncondjmp = A_JMP;
105
aopt_condjmp = A_Jcc;
109
{ ************************************************************************* }
110
{ **************************** TCondRegs ********************************** }
111
{ ************************************************************************* }
112
Constructor TCondRegs.init;
116
Destructor TCondRegs.Done; {$ifdef inl} inline; {$endif inl}