Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SplitStruct (0.17 sec)

  1. src/cmd/compile/internal/ssa/decompose.go

    func decomposeUserStructInto(f *Func, name *LocalSlot, slots []*LocalSlot) []*LocalSlot {
    	fnames := []*LocalSlot{} // slots for struct in name
    	t := name.Type
    	n := t.NumFields()
    
    	for i := 0; i < n; i++ {
    		fs := f.SplitStruct(name, i)
    		fnames = append(fnames, fs)
    		// arrays and structs will be decomposed further, so
    		// there's no need to record a name
    		if !fs.Type.IsArray() && !fs.Type.IsStruct() {
    			slots = maybeAppend(f, slots, fs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/func.go

    	}
    	return f.SplitSlot(name, ".hi", t.Size(), t), f.SplitSlot(name, ".lo", 0, types.Types[types.TUINT32])
    }
    
    func (f *Func) SplitStruct(name *LocalSlot, i int) *LocalSlot {
    	st := name.Type
    	return f.SplitSlot(name, st.FieldName(i), st.FieldOff(i), st.FieldType(i))
    }
    func (f *Func) SplitArray(name *LocalSlot) *LocalSlot {
    	n := name.N
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top