From 36fa5230d81b0cf7279b7e761840e33c6fe087ac Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Sun, 3 Dec 2023 09:33:29 -0500 Subject: [PATCH] Format checker --- .github/workflows/format.yml | 19 +++++++++++++++++++ enzyme_jax/enzyme_call.cc | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..c47a301b --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,19 @@ +name: Clang-Format + +on: + push: + pull_request: + merge_group: + +jobs: + build: + name: Format + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: DoozyX/clang-format-lint-action@v0.16.2 + with: + source: 'enzyme_jax' + style: 'llvm' + clangFormatVersion: 16 diff --git a/enzyme_jax/enzyme_call.cc b/enzyme_jax/enzyme_call.cc index d2f26d17..97bcd558 100644 --- a/enzyme_jax/enzyme_call.cc +++ b/enzyme_jax/enzyme_call.cc @@ -38,10 +38,10 @@ #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_ostream.h" -#include "xla/service/cpu/cpu_executable.h" -#include "xla/hlo/ir/hlo_instructions.h" -#include "xla/hlo/ir/hlo_casting_utils.h" #include "compile_with_xla.h" +#include "xla/hlo/ir/hlo_casting_utils.h" +#include "xla/hlo/ir/hlo_instructions.h" +#include "xla/service/cpu/cpu_executable.h" enum class ABI { Primal, Forward, Augmented, Reverse, Tape };