[all-commits] [llvm/llvm-project] 8d4e35: [Clang][LoongArch] Support compiler options -mlsx/...

leecheechen via All-commits all-commits at lists.llvm.org
Tue Oct 31 00:54:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d4e35600f3ba90997a59fdb9baeb196e723eec9
      https://github.com/llvm/llvm-project/commit/8d4e35600f3ba90997a59fdb9baeb196e723eec9
  Author: licongtian <licongtian at loongson.cn>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/Targets/LoongArch.cpp
    M clang/lib/Basic/Targets/LoongArch.h
    M clang/lib/Driver/ToolChains/Arch/LoongArch.cpp
    A clang/test/Driver/loongarch-mlasx-error.c
    A clang/test/Driver/loongarch-mlasx.c
    A clang/test/Driver/loongarch-mlsx-error.c
    A clang/test/Driver/loongarch-mlsx.c
    M clang/test/Preprocessor/init-loongarch.c

  Log Message:
  -----------
  [Clang][LoongArch] Support compiler options -mlsx/-mlasx for clang

This patch adds compiler options -mlsx/-mlasx which enables the
instruction sets of LSX and LASX, and sets related predefined macros
according to the options.


  Commit: eb49b86f5a9b54b0e3c37024334a3c6f6ca88e14
      https://github.com/llvm/llvm-project/commit/eb49b86f5a9b54b0e3c37024334a3c6f6ca88e14
  Author: licongtian <licongtian at loongson.cn>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M clang/lib/CodeGen/Targets/LoongArch.cpp

  Log Message:
  -----------
  [Clang][LoongArch] Add ABI implementation of passing vectors


  Commit: d6bfa3341181a80de6c8aede807fc1acc3ce8d9b
      https://github.com/llvm/llvm-project/commit/d6bfa3341181a80de6c8aede807fc1acc3ce8d9b
  Author: licongtian <licongtian at loongson.cn>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsLoongArch.def
    A clang/include/clang/Basic/BuiltinsLoongArchBase.def
    A clang/include/clang/Basic/BuiltinsLoongArchLSX.def
    M clang/lib/Headers/CMakeLists.txt
    A clang/lib/Headers/lsxintrin.h
    M clang/lib/Sema/SemaChecking.cpp

  Log Message:
  -----------
  [Clang][LoongArch] Support the builtin functions for LSX

This patch does the following work:
- Define the builtin functions for LSX
- Add the header file lsxintrin.h
- Add the immediate number range checking for LSX builtins


  Commit: a4005e729c8d9dba9ba19f3ce4ad5b60e64dc467
      https://github.com/llvm/llvm-project/commit/a4005e729c8d9dba9ba19f3ce4ad5b60e64dc467
  Author: licongtian <licongtian at loongson.cn>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsLoongArch.def
    A clang/include/clang/Basic/BuiltinsLoongArchLASX.def
    M clang/lib/Headers/CMakeLists.txt
    A clang/lib/Headers/lasxintrin.h
    M clang/lib/Sema/SemaChecking.cpp

  Log Message:
  -----------
  [Clang][LoongArch] Support the builtin functions for LASX

This patch does the following work:
- Define the builtin functions for LASX
- Add the header files lasxintrin.h


  Commit: 673c530837faa5ddb45769ddee01d09e1f73d406
      https://github.com/llvm/llvm-project/commit/673c530837faa5ddb45769ddee01d09e1f73d406
  Author: chenli <chenli at loongson.cn>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    A clang/test/CodeGen/LoongArch/lsx/builtin-alias-error.c
    A clang/test/CodeGen/LoongArch/lsx/builtin-alias.c
    A clang/test/CodeGen/LoongArch/lsx/builtin-error.c
    A clang/test/CodeGen/LoongArch/lsx/builtin.c

  Log Message:
  -----------
  [LoongArch][CodeGen] Add LSX builtin testcases


  Commit: 535408eedbf812d9038bd40a0faae5001d2256cf
      https://github.com/llvm/llvm-project/commit/535408eedbf812d9038bd40a0faae5001d2256cf
  Author: chenli <chenli at loongson.cn>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    A clang/test/CodeGen/LoongArch/lasx/builtin-alias-error.c
    A clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
    A clang/test/CodeGen/LoongArch/lasx/builtin-error.c
    A clang/test/CodeGen/LoongArch/lasx/builtin.c

  Log Message:
  -----------
  [LoongArch][CodeGen] Add LASX builtin testcases


Compare: https://github.com/llvm/llvm-project/compare/4fed3d374dfc...535408eedbf8


More information about the All-commits mailing list