Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ConstString (0.25 sec)

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

    			t.addUses(val)
    		}
    	}()
    
    	switch val.Op {
    	// they are constant values, aren't they?
    	case OpConst64, OpConst32, OpConst16, OpConst8,
    		OpConstBool, OpConst32F, OpConst64F: //TODO: support ConstNil ConstString etc
    		t.latticeCells[val] = lattice{constant, val}
    	// lattice value of copy(x) actually means lattice value of (x)
    	case OpCopy:
    		t.latticeCells[val] = t.getLatticeCell(val.Args[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

    (StringLen (StringMake _ (Const64 <t> [c]))) => (Const64 <t> [c])
    (ConstString {str}) && config.PtrSize == 4 && str == "" =>
      (StringMake (ConstNil) (Const32 <typ.Int> [0]))
    (ConstString {str}) && config.PtrSize == 8 && str == "" =>
      (StringMake (ConstNil) (Const64 <typ.Int> [0]))
    (ConstString {str}) && config.PtrSize == 4 && str != "" =>
      (StringMake
        (Addr <typ.BytePtr> {fe.StringData(str)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// constants. Constant values are stored in the aux or
    	// auxint fields.
    	{name: "ConstBool", aux: "Bool"},     // auxint is 0 for false and 1 for true
    	{name: "ConstString", aux: "String"}, // value is aux.(string)
    	{name: "ConstNil", typ: "BytePtr"},   // nil pointer
    	{name: "Const8", aux: "Int8"},        // auxint is sign-extended 8 bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritegeneric.go

    		return true
    	}
    	return false
    }
    func rewriteValuegeneric_OpConstString(v *Value) bool {
    	b := v.Block
    	config := b.Func.Config
    	fe := b.Func.fe
    	typ := &b.Func.Config.Types
    	// match: (ConstString {str})
    	// cond: config.PtrSize == 4 && str == ""
    	// result: (StringMake (ConstNil) (Const32 <typ.Int> [0]))
    	for {
    		str := auxToString(v.Aux)
    		if !(config.PtrSize == 4 && str == "") {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/opGen.go

    		resultInArg0: true,
    		zeroWidth:    true,
    		generic:      true,
    	},
    	{
    		name:    "ConstBool",
    		auxType: auxBool,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstString",
    		auxType: auxString,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstNil",
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "Const8",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top