~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/hipe/flow/hipe_gen_cfg.erl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-module(hipe_gen_cfg).
2
2
 
3
 
-export([function/1,
4
 
         params/1,
5
 
         params_update/2,
6
 
         pp/2,
7
 
         linearize/1]).
8
 
 
9
 
%% To avoid warnings...
10
 
-export([find_new_label/2]).
 
3
-export([start_label/1,
 
4
         succ/2,
 
5
         pred/2,
 
6
         pred_map/1
 
7
        ]).
11
8
 
12
9
%%-define(DO_ASSERT, true).
 
10
-define(GEN_CFG,true).  % needed for cfg.inc below
 
11
 
13
12
-include("../main/hipe.hrl").
14
13
-include("../flow/cfg.inc").
15
14
 
16
 
 
17
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18
 
%
19
 
% Interface to generic code
20
 
%
21
 
 
22
 
init(_) ->
23
 
  ?error_msg("Can not create a generic CFG",[]),
24
 
  ?EXIT(dont_call_this_function).
25
 
 
26
 
is_label(_Instr) ->
27
 
   exit(nyi).
28
 
 
29
 
label_name(_Instr) ->
30
 
  exit(nyi).
31
 
 
32
 
label_annot(_Lbl) ->
33
 
    exit(nyi).
34
 
 
35
 
mk_label(_Name, _Annot) ->
36
 
  exit(nyi).
37
 
 
38
 
mk_goto(_Name) ->
39
 
  exit(nyi).
40
 
 
41
 
branch_successors(_Instr) ->
42
 
  exit(nyi).
43
 
is_comment(_Instr) ->
44
 
  exit(nyi).
45
 
is_goto(_Instr) ->
46
 
  exit(nyi).
47
 
is_branch(_Instr) ->
48
 
  exit(nyi).
49
 
redirect_jmp(_Jmp, _ToOld, _ToNew) ->
50
 
  exit(nyi).
51
 
redirect_ops(_,_CFG,_) -> 
52
 
  exit(nyi).
53
 
pp(_CFG) ->
54
 
  exit(nyi).
55
 
pp(_Dev, _CFG) ->
56
 
  exit(nyi).
57
 
linearize(_CFG) ->
58
 
  exit(nyi).
59
 
 
60
 
 
61