summaryrefslogtreecommitdiff
path: root/vendor/github.com/cilium/ebpf/asm/opcode_string.go
blob: 079ce1db0b83a237d980dd787c71667c22f5fc1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by "stringer -output opcode_string.go -type=Class"; DO NOT EDIT.

package asm

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[LdClass-0]
	_ = x[LdXClass-1]
	_ = x[StClass-2]
	_ = x[StXClass-3]
	_ = x[ALUClass-4]
	_ = x[JumpClass-5]
	_ = x[ALU64Class-7]
}

const (
	_Class_name_0 = "LdClassLdXClassStClassStXClassALUClassJumpClass"
	_Class_name_1 = "ALU64Class"
)

var (
	_Class_index_0 = [...]uint8{0, 7, 15, 22, 30, 38, 47}
)

func (i Class) String() string {
	switch {
	case 0 <= i && i <= 5:
		return _Class_name_0[_Class_index_0[i]:_Class_index_0[i+1]]
	case i == 7:
		return _Class_name_1
	default:
		return "Class(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}