Skip to content

Coding Style

Yi Zhang edited this page Feb 10, 2022 · 2 revisions
  1. The codebase follows the LLVM’s coding conventions.The following items might be the most frequently used rules:
  1. 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.
  2. Squash all the commits into one, including the commits addressing review comments.
  3. Use git clang-format HEAD~1 to automatically format your commit.
  4. Rebase on HEAD before delivering.
Clone this wiki locally