Subversion Repositories Open64

[/] [trunk/] [osprey/] [be/] [cg/] [SL/] [cgdriver_arch.h] - Blame information for rev 2694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2694 shenruifen
/********************************************************************\
2
|*                                                                  *|
3
|*  Copyright (c) 2006 by SimpLight Nanoelectronics.                *|
4
|*  All rights reserved                                             *|
5
|*                                                                  *|
6
|*  This program is free software; you can redistribute it and/or   *|
7
|*  modify it under the terms of the GNU General Public License as  *|
8
|*  published by the Free Software Foundation; either version 2,    *|
9
|*  or (at your option) any later version.                          *|
10
|*                                                                  *|
11
\********************************************************************/
12 1950 laijx
 
13
/* ====================================================================
14
 * ====================================================================
15
 *
16
 *  CG driver declarations which include target dependencies.
17
 *
18
 *  THIS FILE IS ONLY TO BE INCLUDE BY ../cgdriver.cxx!!!!
19
 *
20
 * ====================================================================
21
 * ====================================================================
22
 */
23
 
24
inline BOOL Enable_Prefetch_Ahead_For_Target(void)
25
{
26
  return TRUE;
27
}
28
 
29
inline BOOL Target_Has_Prefetch(void)
30
{
31
  return TRUE;
32
}
33
 
34
inline BOOL Enable_Prefetch_For_Target(void)
35
{
36
  return TRUE;
37
}
38
 
39
inline BOOL Enable_Idiv_In_FPU_For_Target(void)
40
{
41
  return FALSE;
42
}
43
 
44
inline BOOL Target_Has_Cmoves(void)
45
{
46
  return FALSE;
47
}
48
 
49
inline BOOL Enable_Spec_Idiv_For_Target(void)
50
{
51
  return FALSE;
52
}
53
 
54
inline BOOL Enable_Fold_Expanded_daddiu_For_Target(void)
55
{
56
  return FALSE;
57
}
58
 
59
inline BOOL Enable_LOH_For_Target(void)
60
{
61
  return FALSE;
62
}
63
 
64
inline BOOL Enable_Fill_Delay_Slots_For_Target(void)
65
{
66
  if (Is_Target_Sb1())
67
    return TRUE;
68
  else
69
    // SGI assembler does not accept something like
70
    //     bne $2,$0,.Lt_0_1+4
71
    // It expects something like
72
    //     bne $2,$0,.+76
73
    // Because, we can not generate absolute addresses (Inline assembly),
74
    // we do not enable Fill_Delay_Slot optimization for R10k.
75
    return FALSE;
76
}
77
 
78
#ifdef PAIRS
79
inline BOOL Enable_SWP_Memory_Pairs(void)
80
{
81
  return FALSE;
82
}
83
#endif /* PAIRS */
84
 
85
inline BOOL Enable_SWP_Optimistic_II_Search(void)
86
{
87
  return TRUE;
88
}