~ubuntu-branches/ubuntu/utopic/golang/utopic

« back to all changes in this revision

Viewing changes to src/cmd/8g/opt.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
typedef struct  Reg     Reg;
48
48
typedef struct  Rgn     Rgn;
49
49
 
 
50
// A Reg is a wrapper around a single Prog (one instruction) that holds
 
51
// register optimization information while the optimizer runs.
 
52
// r->prog is the instruction.
 
53
// r->prog->regp points back to r.
50
54
struct  Reg
51
55
{
52
56
 
53
 
        Bits    set;
54
 
        Bits    use1;
55
 
        Bits    use2;
 
57
        Bits    set;            // variables written by this instruction.
 
58
        Bits    use1;           // variables read by prog->from.
 
59
        Bits    use2;           // variables read by prog->to.
56
60
 
57
61
        Bits    refbehind;
58
62
        Bits    refahead;
68
72
        uint16  loop;           // x5 for every loop
69
73
        uchar   refset;         // diagnostic generated
70
74
 
71
 
        Reg*    p1;
72
 
        Reg*    p2;
 
75
        Reg*    p1;             // predecessors of this instruction: p1,
 
76
        Reg*    p2;             // and then p2 linked though p2link.
73
77
        Reg*    p2link;
74
 
        Reg*    s1;
 
78
        Reg*    s1;             // successors of this instruction (at most two: s1 and s2).
75
79
        Reg*    s2;
76
 
        Reg*    link;
77
 
        Prog*   prog;
 
80
        Reg*    link;           // next instruction in function code
 
81
        Prog*   prog;           // actual instruction
78
82
};
79
83
#define R       ((Reg*)0)
80
84