fn acc(&mut self, ln: LiveNode, var: Variable, acc: u32) {
        debug!("{:?} accesses[{:x}] {:?}: {}", ln, acc, var, self.ln_str(ln));

        let idx = self.idx(ln, var);
        let mut rwu = self.rwu_table.get(idx);

        if (acc & ACC_WRITE) != 0 {
            rwu.reader = invalid_node();
            rwu.writer = ln;
        }

        // Important: if we both read/write, must do read second
        // or else the write will override.
        if (acc & ACC_READ) != 0 {
            rwu.reader = ln;
        }

        if (acc & ACC_USE) != 0 {
            rwu.used = true;
        }

        self.rwu_table.assign_unpacked(idx, rwu);
    }
// Either read, write, or both depending on the acc bitset
Either read, write, or both depending on the acc bitset
Either read write or both depending on the acc bitset
fn acc(&mut self, ln: LiveNode, var: Variable, acc: u32) {
        debug!("{:?} accesses[{:x}] {:?}: {}", ln, acc, var, self.ln_str(ln));
        let idx = self.idx(ln, var);
        let mut rwu = self.rwu_table.get(idx);
        if (acc & ACC_WRITE) != 0 {
            rwu.reader = invalid_node();
            rwu.writer = ln;
        }
        // Important: if we both read/write, must do read second
        // or else the write will override.
        if (acc & ACC_READ) != 0 {
            rwu.reader = ln;
        }
        if (acc & ACC_USE) != 0 {
            rwu.used = true;
        }
        self.rwu_table.assign_unpacked(idx, rwu);
    }
fn acc ( & mut self , ln : LiveNode , var : Variable , acc : u32 ) { debug ! ( " " ln acc var self ln_str ( ln ) ) ; let idx = self . idx ( ln , var ) ; let mut rwu = self . rwu_table . get ( idx ) ; if ( acc & ACC_WRITE ) != 0 { rwu . reader = invalid_node ( ) ; rwu . writer = ln ; } // Important: if we both read/write, must do read second // or else the write will override. if ( acc & ACC_READ ) != 0 { rwu . reader = ln ; } if ( acc & ACC_USE ) != 0 { rwu . used = true ; } self . rwu_table . assign_unpacked ( idx , rwu ) ; }
Either read, write, or both depending on the acc bitset
Either read write or both depending on the acc bitset
&mut self
ln
LiveNode
var
Variable
acc
u32
&mut self
ln
LiveNode
var
Variable
acc
u32