[all-commits] [llvm/llvm-project] 1085fe: [Clang][AArch64] Inline assembly support for the A...

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Mon Aug 2 07:47:25 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 1085fe3e0509aabbf8cea2c39b14ec092f4ca72f
      https://github.com/llvm/llvm-project/commit/1085fe3e0509aabbf8cea2c39b14ec092f4ca72f
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/lib/CodeGen/TargetInfo.h
    A clang/test/CodeGen/aarch64-ls64-inline-asm.c

  Log Message:
  -----------
  [Clang][AArch64] Inline assembly support for the ACLE type 'data512_t'

In LLVM IR terms the ACLE type 'data512_t' is essentially an aggregate
type { [8 x i64] }. When emitting code for inline assembly operands,
clang tries to scalarize aggregate types to an integer of the equivalent
length, otherwise it passes them by-reference. This patch adds a target
hook to tell whether a given inline assembly operand is scalarizable
so that clang can emit code to pass/return it by-value.

Differential Revision: https://reviews.llvm.org/D94098


  Commit: 91da2da618b553831884261db3ce1ed55ab0beb0
      https://github.com/llvm/llvm-project/commit/91da2da618b553831884261db3ce1ed55ab0beb0
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/ValueTypes.td
    M llvm/include/llvm/Support/MachineValueType.h
    M llvm/lib/CodeGen/ValueTypes.cpp
    M llvm/utils/TableGen/CodeGenTarget.cpp

  Log Message:
  -----------
  [AArch64] Add a Machine Value Type for 8 consecutive registers

Adds MVT::i64x8, a Machine Value Type needed for lowering inline assembly
operands which materialize a sequence of eight general purpose registers.

Differential Revision: https://reviews.llvm.org/D94096


  Commit: 7563727d70f44c41cd8a53ba91581b67f6c8e19a
      https://github.com/llvm/llvm-project/commit/7563727d70f44c41cd8a53ba91581b67f6c8e19a
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.h
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    M llvm/lib/Target/AArch64/AArch64RegisterInfo.td
    M llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
    M llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
    A llvm/test/CodeGen/AArch64/ls64-inline-asm.ll

  Log Message:
  -----------
  [AArch64] Legalize MVT::i64x8 in DAG isel lowering

This patch legalizes the Machine Value Type introduced in D94096 for loads
and stores. A new target hook named getAsmOperandValueType() is added which
maps i512 to MVT::i64x8. GlobalISel falls back to DAG for legalization.

Differential Revision: https://reviews.llvm.org/D94097


Compare: https://github.com/llvm/llvm-project/compare/6efead14f49f...7563727d70f4


More information about the All-commits mailing list