Skip to content

Commit d0cd5f9

Browse files
committed
chore: headers
1 parent c03c268 commit d0cd5f9

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

core/include/ir.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
32
#ifndef _LINUX_IR_H
43
#define _LINUX_IR_H
54

core/include/ir_cg.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
#ifndef _IR_CG_H
23
#define _IR_CG_H
34

5+
/*
6+
Functions and structs used internally in the code generator (CG).
7+
*/
8+
49
#include "ir.h"
510

611
// Number of colors available (r0 - r9)
@@ -123,6 +128,11 @@ void bpf_ir_cg_add_stack_offset_pre_cg(struct bpf_ir_env *env,
123128
void bpr_ir_cg_to_cssa(struct bpf_ir_env *env, struct ir_function *fun,
124129
void *param);
125130

131+
/*
132+
The following functions are instruction constructors only for CG stage.
133+
Other instruction constructors are in bpf_ir.h.
134+
*/
135+
126136
/* Instruction Constructors */
127137

128138
struct ir_insn *bpf_ir_create_alloc_insn_cg(struct bpf_ir_env *env,

core/include/linux/bpf_ir.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
#ifndef _LINUX_BPF_IR_H
23
#define _LINUX_BPF_IR_H
34

core/include/linux/hash.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
32
#ifndef _LINUX_HASHTABLE_H
43
#define _LINUX_HASHTABLE_H
54

0 commit comments

Comments
 (0)