toolchain: replace ifc interface compiler with xpcg

xpcg is used to generate xpc interfaces
This commit is contained in:
2026-03-10 19:12:14 +00:00
parent 3a06c18e10
commit 26a49162e6
24 changed files with 427 additions and 878 deletions

18
toolchain/xpcg/ctx.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef XPCG_CTX_H_
#define XPCG_CTX_H_
#include "type.h"
struct ctx {
struct type ctx_builtin_types[TYPE_OTHER];
};
extern struct ctx *ctx_create(void);
extern void ctx_destroy(struct ctx *ctx);
extern const struct type *ctx_get_type(struct ctx *ctx, const char *name);
extern const struct type *ctx_get_builtin_type(
struct ctx *ctx,
enum type_id id);
#endif