File: hipe_sparc.hrl

package info (click to toggle)
erlang 1%3A11.b.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 54,332 kB
  • ctags: 138,013
  • sloc: erlang: 566,932; ansic: 185,450; makefile: 14,148; java: 7,835; sh: 7,307; lisp: 5,249; pascal: 3,225; perl: 2,290; asm: 1,325; cpp: 306; tcl: 245; csh: 29; python: 21; sed: 9
file content (62 lines) | stat: -rw-r--r-- 2,501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%% -*- erlang-indent-level: 2 -*-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Copyright (c) 1997-2005 by the HiPE group.  All Rights Reserved 
%% ====================================================================
%%  Filename : 	hipe_sparc.hrl
%%  Module   :	hipe_sparc
%%  Purpose  :  Definition of SPARC three address instuction
%%  History  :	* 1997-04-01 Jan Sjdin (jans@csd.uu.se): Created.
%% ====================================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-record(sparc, {'fun', closure, arity, leaf, code, data, var_range, label_range}).
%% Arity is needed as a separate field since the arity in 'fun' is 
%% incorrect for closures.

-record(pseudo_enter, {target,args,type}).
-record(pseudo_return, {regs}).
-record(pseudo_spill, {source,dest}).
-record(pseudo_unspill, {source,dest}).
-record(pseudo_push, {reg}).
-record(pseudo_pop, {reg,index}).

-record(load_atom, {dst, atom}).
-record(load_address, {dst, address, type}).
-record(load_word_index, {dst,block,index}).

-record(label, {id}).
-record(nop, {}).
-record(block, {size}).
-record(align, {alignment=4}).
-record(comment, {text=""}).
-record(move, {dst, src}).
-record(multimove, {dst, src}).
-record(cmov_cc, {dst, src, cc}).
-record(cmov_r, {dst, src, reg, rcc}).
-record(alu, {dst, src1, op, src2}).
-record(alu_cc, {dst, src1, op, src2}).
-record(sethi, {dst, const}).
-record(load, {dst, type, src, off}).
-record(store, {dst, off, type, src}).
-record(b, {cc, true_label, false_label, pred, annul=na}).
-record(br, {reg, rcc, true_label, false_label, pred, annul=na}).
-record(goto, {label}).
-record(jmp_link, {target, off, link, args, continuation_label,
		   fail_label}).
-record(jmp, {target, off, args, fail_label, destinations=[]}).
-record(call_link, {target, link, dests, args, continuation_label,
		    fail_label, type, stack_descriptor}).
%% Floating point operations
-record(load_fp, {dst, align, type, src, off}).
-record(store_fp, {dst, off, type, align, src}).
-record(fb, {fcc, n=0, true_label, false_label, pred, annul=na}).
-record(fop, {dst, type, src1, fop, src2}).
-record(fcmp, {fccn, src1, type, src2, exception}).
-record(fmove, {dst, type, src, negate, abs}).
-record(conv_fp, {dst, dst_type, src, src_type}).

%%---------------------------------------------------------------------

-define(log2_wordsize, 2).

%%---------------------------------------------------------------------