- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for resetWithControl2 (0.22 sec)
-
src/cmd/compile/internal/ssa/block.go
b.AuxInt = 0 b.Controls[0] = v v.Uses++ } // resetWithControl2 resets b and adds controls v and w. // It is equivalent to b.Reset(kind); b.AddControl(v); b.AddControl(w), // except that it is one call instead of three and avoids two bounds checks. // It is intended for use by rewrite rules, where this matters. func (b *Block) resetWithControl2(kind BlockKind, v, w *Value) { b.Kind = kind b.ResetControls()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewriteRISCV64.go
v_0 := b.Controls[0] y := v_0.Args[1] x := v_0.Args[0] b.resetWithControl2(BlockRISCV64BEQ, x, y) return true } // match: (BEQZ (SLT x y) yes no) // result: (BGE x y yes no) for b.Controls[0].Op == OpRISCV64SLT { v_0 := b.Controls[0] y := v_0.Args[1] x := v_0.Args[0] b.resetWithControl2(BlockRISCV64BGE, x, y) return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 14:57:07 UTC 2024 - 205.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/rulegen.go
} switch outdata.controls { case 0: rr.add(stmtf("b.Reset(%s)", blockName)) case 1: rr.add(stmtf("b.resetWithControl(%s, %s)", blockName, genControls[0])) case 2: rr.add(stmtf("b.resetWithControl2(%s, %s, %s)", blockName, genControls[0], genControls[1])) default: log.Fatalf("too many controls: %d", outdata.controls) } if auxint != "" { // Make sure auxint value has the right type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewriteS390X.go
// result: (CGRJ {c&^s390x.Unordered} x y yes no) for b.Controls[0].Op == OpS390XCMP { v_0 := b.Controls[0] y := v_0.Args[1] x := v_0.Args[0] c := auxToS390xCCMask(b.Aux) b.resetWithControl2(BlockS390XCGRJ, x, y) b.Aux = s390xCCMaskToAux(c &^ s390x.Unordered) return true } // match: (BRC {c} (CMPW x y) yes no) // result: (CRJ {c&^s390x.Unordered} x y yes no)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 18:09:26 UTC 2023 - 395.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewriteARM64.go
idx := b.Controls[0] v0 := b.NewValue0(b.Pos, OpARM64MOVDaddr, typ.Uintptr) v0.Aux = symToAux(makeJumpTableSym(b)) v1 := b.NewValue0(b.Pos, OpSB, typ.Uintptr) v0.AddArg(v1) b.resetWithControl2(BlockARM64JUMPTABLE, idx, v0) b.Aux = symToAux(makeJumpTableSym(b)) return true } case BlockARM64LE: // match: (LE (CMPconst [0] z:(AND x y)) yes no) // cond: z.Uses == 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 608.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewriteAMD64.go
for { idx := b.Controls[0] v0 := b.NewValue0(b.Pos, OpAMD64LEAQ, typ.Uintptr) v0.Aux = symToAux(makeJumpTableSym(b)) v1 := b.NewValue0(b.Pos, OpSB, typ.Uintptr) v0.AddArg(v1) b.resetWithControl2(BlockAMD64JUMPTABLE, idx, v0) b.Aux = symToAux(makeJumpTableSym(b)) return true } case BlockAMD64LE: // match: (LE (InvertFlags cmp) yes no) // result: (GE cmp yes no)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 19:38:41 UTC 2024 - 712.7K bytes - Viewed (0)