daphne-project/daphne

Rewrite CanonicalizationConstantFoldingOpTest

Aberta

#990 aberto em 18 de nov. de 2025

 (0 comentário) (0 reação) (0 responsável)C++ (84 forks)auto 404
Testsgood first issue

Métricas do repositório

Stars
 (80 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador