22 lines · plain
1+==============================================================================+2| How to organize the lit tests |3+==============================================================================+4 5- If you write a test for matching a single DAG opcode or intrinsic, it should6 go in a file called {opcode_name,intrinsic_name}.ll (e.g. fadd.ll)7 8- If you write a test that matches several DAG opcodes and checks for a single9 ISA instruction, then that test should go in a file called {ISA_name}.ll (e.g.10 bfi_int.ll11 12- For all other tests, use your best judgement for organizing tests and naming13 the files.14 15+==============================================================================+16| Naming conventions |17+==============================================================================+18 19- Use dash '-' and not underscore '_' to separate words in file names, unless20 the file is named after a DAG opcode or ISA instruction that has an21 underscore '_' in its name.22