...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user