Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsTailCall (0.17 sec)

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

    	}
    	return c
    }
    
    // isLeaf reports whether f performs any calls.
    func isLeaf(f *Func) bool {
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			if v.Op.IsCall() && !v.Op.IsTailCall() {
    				// tail call is not counted as it does not save the return PC or need a frame
    				return false
    			}
    		}
    	}
    	return true
    }
    
    // needRegister reports whether v needs a register.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
Back to top