This commit is contained in:
agra
2026-05-24 13:42:35 +03:00
parent 49b39ba07a
commit 0ba41b2980
5 changed files with 2 additions and 107 deletions

View File

@@ -2578,31 +2578,6 @@ pub const LLVMEmitter = struct {
self.mapRef(result);
},
// ── Context ops ──────────────────────────────────────────
.context_load, .context_store, .context_save => {
// Context ops are handled by the existing codegen glue
// In the IR pipeline, these become load/store on a known global
self.mapRef(c.LLVMGetUndef(self.toLLVMType(instruction.ty)));
},
.context_restore => {
self.mapRef(c.LLVMGetUndef(self.toLLVMType(instruction.ty)));
},
// ── Protocol ops ─────────────────────────────────────────
.protocol_call_dynamic => |pc| {
// Dynamic dispatch through vtable — extract method ptr from protocol value
const receiver = self.resolveRef(pc.receiver);
_ = receiver;
// Stub: full protocol dispatch needs vtable layout info
self.mapRef(c.LLVMGetUndef(self.toLLVMType(instruction.ty)));
},
.protocol_erase => |pe| {
const concrete = self.resolveRef(pe.concrete);
_ = concrete;
// Stub: needs protocol struct construction
self.mapRef(c.LLVMGetUndef(self.toLLVMType(instruction.ty)));
},
// ── Vector ops ───────────────────────────────────────────
.vec_splat => |un| {
const scalar = self.resolveRef(un.operand);