- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ResultPropBits (0.17 sec)
-
src/cmd/compile/internal/inline/inlheur/function_properties.go
// classification below), where the if/switch is // conditional/nested. ParamMayFeedIfOrSwitch ) type ResultPropBits uint32 const ( // No info about this result ResultNoInfo ResultPropBits = 0 // This result always contains allocated memory. ResultIsAllocatedMem ResultPropBits = 1 << iota // This result is always a single concrete type that is // implicitly converted to interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 10 18:52:53 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/serialize.go
v, sl = readULEB128(sl) funcProps.ParamFlags[i] = ParamPropBits(v) } v, sl = readULEB128(sl) funcProps.ResultFlags = make([]ResultPropBits, v) for i := range funcProps.ResultFlags { v, sl = readULEB128(sl) funcProps.ResultFlags[i] = ResultPropBits(v) } return &funcProps } func readULEB128(sl []byte) (value uint64, rsl []byte) { var shift uint for { b := sl[0] sl = sl[1:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:02:55 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/funcprop_string.go
var sb strings.Builder if fp.Flags != 0 { fmt.Fprintf(&sb, "%sFlags %s\n", prefix, fp.Flags) } flagSliceToSB[ParamPropBits](&sb, fp.ParamFlags, prefix, "ParamFlags") flagSliceToSB[ResultPropBits](&sb, fp.ResultFlags, prefix, "ResultFlags") return sb.String() } func flagSliceToSB[T interface { ~uint32 String() string }](sb *strings.Builder, sl []T, prefix string, tag string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 10 18:52:53 UTC 2023 - 977 bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/funcprops_test.go
t.Errorf("testcase %q: Flags mismatch for %q: got %s, wanted %s", tc, dfn, dfp.Flags.String(), efp.Flags.String()) } // Compare returns rgot := propBitsToString[ResultPropBits](dfp.ResultFlags) rwant := propBitsToString[ResultPropBits](efp.ResultFlags) if rgot != rwant { t.Errorf("testcase %q: Results mismatch for %q: got:\n%swant:\n%s", tc, dfn, rgot, rwant) } // Compare receiver + params.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/scoring.go
} score += adjValue(typ) mask |= typ } return score, mask } var resultFlagToPositiveAdj map[ResultPropBits]scoreAdjustTyp var paramFlagToPositiveAdj map[ParamPropBits]scoreAdjustTyp func setupFlagToAdjMaps() { resultFlagToPositiveAdj = map[ResultPropBits]scoreAdjustTyp{ ResultIsAllocatedMem: returnFeedsConcreteToInterfaceCallAdj, ResultAlwaysSameFunc: returnFeedsFuncToIndCallAdj,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:42:52 UTC 2024 - 24.2K bytes - Viewed (0)