[clang] Declare __fp8_rcpe6m2 scalar type (pto-spec#322) - #97
Merged
Merged
Conversation
RCPE6M2 (PTO-ISA type code 21) is a source-only derived reciprocal type that reuses the E6M2 code space. Declare the __fp8_rcpe6m2 element type alongside __fp8_e6m2 so the TileOP header surface can name it. Scalar casts are intentionally left disabled (commented out), mirroring __fp8_e6m2: RCPE6M2 has no destination encoding and no scalar FCVT form, and is consumed only via the TileOP tile-level conversion (RCPE6M2 -> FP16/BF16). No v.cvt/scalar codegen is enabled. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
背景
配合 pto-spec#322 与 Linx-TileOP-API PR llvm#165:RCPE6M2(PTO-ISA 类型码 21)是复用 E6M2 码空间的源专用倒数派生类型。
改动
在
clang/lib/Headers/linx_blkc.h中,紧随__fp8_e6m2声明__fp8_rcpe6m2元素类型(TYPE/MAJOR_TYPE/WIDTH/STORAGE 宏),使 TileOP 头文件接口可以命名该类型。标量 cast 有意保持注释禁用(与
__fp8_e6m2一致):RCPE6M2 无目标编码、无标量 FCVT 形式,仅通过 TileOP 的 tile 级转换消费(RCPE6M2 → FP16/BF16)。不启用任何v.cvt/标量 codegen。关联
🤖 Generated with Claude Code