خلفيّة سياديّة م٠: هيكل backend/ + ٤ مخطّطات SoT + جداول x86-64 + عقد Target - #318
Merged
Conversation
…ول x86-64 + عقد Target أوّل مرحلة تنفيذيّة (م٠) للخلفيّة الأصليّة بلا LLVM متعدّدة المعماريّات (RFC الخلفيّة السياديّة، rfcs #57). النهج الجدوليّ: خطٌّ خلفيٌّ مشترك، والـISA بياناتٌ في جداول. المُضاف: • ٤ مخطّطات JSON في _schemas/ (بأسلوب assembly_mnemonics القائم لا CommonFields V5): backend_encoding (تعليمات: variable/fixed32) + backend_register_file (سجلّات) + backend_isel (أنماط اختيار) + backend_abi (نداء + نداء نظام). • جداول x86-64 (الهدف المرجعيّ): instructions (٥ منمنمات بترميز حقيقيّ: انقل/اجمع/ نداء_نظام/ارجع) + registers (١٦ gpr، rsp/rbp محجوزان) + isel (٣ أنماط) + abi/x86_64-linux (SysV: e_machine=62، red_zone=128، write=1/exit=60/exit_group=231). • backend/README.md: عقد واجهة Target (الحواجز) + الحدّ الفاصل مشترك/بيانات — دون كود C++ ميت (مؤجَّل لـم١ حين يستهلكها المحرّك). • بوّابة CI: صنف TestBackendTables في test_schema_validation.py — ٩ تحقّقات إيجابيّة (jsonschema.validate فعليّ) + تشديد المخطّط: if/then يربط encoding_family بشكل encode (يمنع خلط opcode+fields) مع اختبارَين سلبيّين. ١١/١١ PASS. معيار قبول م٠ محقَّق: المخطّطات تُتحقَّق في CI + جدول x86-64 يمرّ + الحواجز قائمة. أميليا CLEAR (الترميزات صحيحة بايتًا ببايت، المخطّطات صارمة، الاختبار حقيقيّ). صفر انحدار (الإخفاقات الثلاثة السابقة في keywords/error/type ديونٌ غير متعلّقة). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
📚 تذكير مزامنة دليل المطوّرين هذا الـPR يلمس مصادر موثَّقة في دليل المطوّرين. راجع الفصول الآتية وحدّثها إن تغيّر سلوكها، ثم ثبّت البصمات هناك (
بندٌ في معيار الإنجاز. تذكيرٌ آليّ — لا يحجب الدمج. |
|
📘 تذكير مزامنة التوثيق التقنيّ هذا الـPR يلمس مصادر يعرضها التوثيق التقنيّ. الصفحات المُولَّدة تُعاد بناؤها آليًّا عند الدمج/الإصدار؛ راجع الصفحات النثريّة إن تغيّر سلوكها:
تذكيرٌ آليّ — لا يحجب الدمج. |
This was referenced Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
الغرض
أوّلُ مرحلةٍ تنفيذيّة (م٠) للخلفيّة الأصليّة بلا LLVM متعدّدةِ المعماريّات — تنفيذًا لـRFC الخلفيّة السياديّة متعدّدة المعماريّات. النهجُ الجدوليّ: خطٌّ خلفيٌّ واحدٌ مشترك، والـISA بياناتٌ في جداول لا كودًا.
م٠ يُثبت الهيكلَ ومخطّطاتِ SoT وعقدَ واجهة
Target— لا كودَ توليدٍ فعليّ بعد (ذلك م١+).المُضاف
٤ مخطّطات JSON في
_schemas/(بأسلوبassembly_mnemonicsالقائم):backend_encodingvariable(x86) وfixed32(ARM64/RISC-V)backend_register_filenum/role/reservedbackend_iselsir → match → emit + costbackend_abiجداول x86-64 (الهدف المرجعيّ):
instructions.yaml(٥ منمنمات بترميزٍ حقيقيّ) +registers.yaml(١٦ gpr،rsp/rbpمحجوزان) +isel.yaml(٣ أنماط) +abi/x86_64-linux.yaml(SysV:e_machine=62،red_zone=128،write=1/exit=60/exit_group=231).backend/README.md: عقد واجهةTarget(الحواجز) + الحدّ الفاصل مشترك/بيانات — دون كود C++ ميت (مؤجَّل لـم١ حين يستهلكها المحرّك).البوّابة والتشديد
TestBackendTablesفيtest_schema_validation.py— ٩ تحقّقات إيجابيّة (jsonschema.validateفعليّ، لا مجرّد وجود ملفّ).if/thenيربطencoding_familyبشكلencodeالمسموح (يمنع خلطopcode+fields) + اختبارَان سلبيّان يُثبتان الرفض.المعيار والتحقّق
mov/add/syscall/ret)، المخطّطات صارمة، الاختبار بوّابةُ تحقّقٍ فعليّة.test_schema_validation(عدّ builtin_types + حقول V5 في error/type) سابقةٌ علىdevوغيرُ متعلّقة (ديونٌ قائمة).🤖 Generated with Claude Code