-
Notifications
You must be signed in to change notification settings - Fork 507
Coding Style
Yi Zhang edited this page Feb 10, 2022
·
2 revisions
- The codebase follows the LLVM’s coding conventions.The following items might be the most frequently used rules:
- use-early-exits-and-continue-to-simplify-code
- don-t-use-else-after-a-return
- use-auto-type-deduction-to-make-code-more-readable
- anonymous-namespaces
- avoid-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
- Try to refactor and reuse existing code/helpers when working on RefineTypes and TorchToLinalg lowering for easier maintenance, testing and better readability. Try not to copy & paste existing code.
- Squash all the commits into one, including the commits addressing review comments.
- Use
git clang-format HEAD~1
to automatically format your commit. - Rebase on
HEAD
before delivering.