Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for zerorange (0.13 sec)

  1. src/cmd/compile/internal/loong64/galign.go

    	"cmd/compile/internal/ssagen"
    	"cmd/internal/obj/loong64"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &loong64.Linkloong64
    	arch.REGSP = loong64.REGSP
    	arch.MAXWIDTH = 1 << 50
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    	arch.SSAGenValue = ssaGenValue
    	arch.SSAGenBlock = ssaGenBlock
    	arch.LoadRegResult = loadRegResult
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:04:16 UTC 2023
    - 649 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/arm64/galign.go

    	"cmd/internal/obj/arm64"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &arm64.Linkarm64
    	arch.REGSP = arm64.REGSP
    	arch.MAXWIDTH = 1 << 50
    
    	arch.PadFrame = padframe
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    	arch.SSAGenValue = ssaGenValue
    	arch.SSAGenBlock = ssaGenBlock
    	arch.LoadRegResult = loadRegResult
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 666 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/mips64/galign.go

    	if buildcfg.GOARCH == "mips64le" {
    		arch.LinkArch = &mips.Linkmips64le
    	}
    	arch.REGSP = mips.REGSP
    	arch.MAXWIDTH = 1 << 50
    	arch.SoftFloat = buildcfg.GOMIPS64 == "softfloat"
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    	arch.SSAGenValue = ssaGenValue
    	arch.SSAGenBlock = ssaGenBlock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 718 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/x86/galign.go

    		base.Exit(1)
    	default:
    		fmt.Fprintf(os.Stderr, "unsupported setting GO386=%s\n", v)
    		base.Exit(1)
    
    	}
    
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = ssaMarkMoves
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 887 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/zerorange_test.go

    // need to be zeroed. Hence, we are testing compilation completes successfully when
    // zerorange calls of various sizes (8-136 bytes) are generated. We are not
    // testing runtime correctness (which is hard to do for the current uses of
    // ZeroRange).
    
    func TestZeroRange(t *testing.T) {
    	testZeroRange8(t)
    	testZeroRange16(t)
    	testZeroRange32(t)
    	testZeroRange64(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/s390x/galign.go

    import (
    	"cmd/compile/internal/ssagen"
    	"cmd/internal/obj/s390x"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &s390x.Links390x
    	arch.REGSP = s390x.REGSP
    	arch.MAXWIDTH = 1 << 50
    
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = ssaMarkMoves
    	arch.SSAGenValue = ssaGenValue
    	arch.SSAGenBlock = ssaGenBlock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 518 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/arch.go

    type ArchInfo struct {
    	LinkArch *obj.LinkArch
    
    	REGSP     int
    	MAXWIDTH  int64
    	SoftFloat bool
    
    	PadFrame func(int64) int64
    
    	// ZeroRange zeroes a range of memory on stack. It is only inserted
    	// at function entry, and it is ok to clobber registers.
    	ZeroRange func(*objw.Progs, *obj.Prog, int64, int64, *uint32) *obj.Prog
    
    	Ginsnop func(*objw.Progs) *obj.Prog
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/s390x/ggen.go

    // to have a loop of clear instructions (e.g. XCs) rather than just generating
    // multiple instructions (i.e. loop unrolling).
    // Must be between 256 and 4096.
    const clearLoopCutoff = 1024
    
    // zerorange clears the stack in the given range.
    func zerorange(pp *objw.Progs, p *obj.Prog, off, cnt int64, _ *uint32) *obj.Prog {
    	if cnt == 0 {
    		return p
    	}
    
    	// Adjust the frame to account for LR.
    	off += base.Ctxt.Arch.FixedFrameSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/x86/ggen.go

    package x86
    
    import (
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/objw"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/obj/x86"
    )
    
    func zerorange(pp *objw.Progs, p *obj.Prog, off, cnt int64, ax *uint32) *obj.Prog {
    	if cnt == 0 {
    		return p
    	}
    	if *ax == 0 {
    		p = pp.Append(p, x86.AMOVL, obj.TYPE_CONST, 0, 0, obj.TYPE_REG, x86.REG_AX, 0)
    		*ax = 1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:38:47 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/riscv64/ggen.go

    package riscv64
    
    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/objw"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/obj/riscv"
    )
    
    func zeroRange(pp *objw.Progs, p *obj.Prog, off, cnt int64, _ *uint32) *obj.Prog {
    	if cnt == 0 {
    		return p
    	}
    
    	// Adjust the frame to account for LR.
    	off += base.Ctxt.Arch.FixedFrameSize
    
    	if cnt < int64(4*types.PtrSize) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top