Skip to content

[clang] Declare __fp8_rcpe6m2 scalar type (pto-spec#322) - #97

Merged
WLDFA merged 1 commit into
dev-llvm15_56from
feat/rcpe6m2-type
Sep 17, 2026
Merged

WLDFA merged 1 commit into
dev-llvm15_56from
feat/rcpe6m2-type

Conversation

@WLDFA

@WLDFA WLDFA commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

背景

配合 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

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>
@WLDFA
WLDFA merged commit c9d40c8 into dev-llvm15_56 Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant