daphne-project/daphne

Rewrite CanonicalizationConstantFoldingOpTest

Aperta

#990 aperta il 18 nov 2025

 (0 commenti) (0 reazioni) (0 assegnatari)C++ (84 fork)auto 404
Testsgood first issue

Metriche repository

Star
 (80 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor