daphne-project/daphne

Rewrite CanonicalizationConstantFoldingOpTest

オープン

#990 opened on 2025/11/18

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (84 件のフォーク)auto 404
Testsgood first issue

Repository metrics

Stars
 (80 個のスター)
PR merge metrics
 (PR metrics pending)

説明

The CanonicalizationConstantFoldingOpTest is currently checking if a hardcoded ir matches the system output. As the reference ir has to be updated every time the system produces an even slightly different ir, this is not maintainable.

llvm-lit provides a testing architecture to solve this. See the documentation. We also already use lit tests, see here.

The current CanonicalizationConstantFoldingOpTest should be rewritten as a lit test.

コントリビューターガイド