void DeleteTranslator::Consume(ConsumerContext &, RowBatch::Row &row) const { CodeGen &codegen = GetCodeGen(); // Call Deleter::Delete(tile_group_id, tuple_offset) auto *deleter = LoadStatePtr(deleter_state_id_); codegen.Call(DeleterProxy::Delete, {deleter, row.GetTileGroupID(), row.GetTID(codegen)}); }
codegen::Value TableScanTranslator::AttributeAccess::Access( CodeGen &codegen, RowBatch::Row &row) { auto raw_row = tile_group_access_.GetRow(row.GetTID(codegen)); return raw_row.LoadColumn(codegen, ai_->attribute_id); }
void RowBatch::OutputTracker::AppendRowToOutput(CodeGen &codegen, RowBatch::Row &row, llvm::Value *delta) { output_.SetValue(codegen, target_pos_, row.GetTID(codegen)); final_pos_ = codegen->CreateAdd(target_pos_, delta); }