daphne-project/daphne

Rewrite CanonicalizationConstantFoldingOpTest

開放

#990 建立於 2025年11月18日

 (0 則留言) (0 個反應) (0 位負責人)C++ (84 個分叉)auto 404
Testsgood first issue

倉庫指標

星標
 (80 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南