[all-commits] [llvm/llvm-project] 6bed43: [AArch64][SVE] Add integer arithmetic with immedia...

dancgr via All-commits all-commits at lists.llvm.org
Thu Dec 12 14:25:01 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6bed43f3c40ba23ff82280d99aed9c1ba5763ef2
      https://github.com/llvm/llvm-project/commit/6bed43f3c40ba23ff82280d99aed9c1ba5763ef2
  Author: Danilo Carvalho Grael <danilo.carvalho.grael at huawei.com>
  Date:   2019-12-12 (Thu, 12 Dec 2019)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsAArch64.td
    M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
    M llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
    M llvm/lib/Target/AArch64/SVEInstrFormats.td
    A llvm/test/CodeGen/AArch64/sve-int-imm.ll

  Log Message:
  -----------
  [AArch64][SVE] Add integer arithmetic with immediate instructions.

Summary:
Add pattern matching for the following instructions:
- add, sub, subr, sqadd, sqsub, uqadd, uqsub

This patch required complex patterns to match the immediate with optinal left shift.

I re-used the Select function from the other SVE repo to implement the complext pattern.

I plan on doing another patch to also match constant vector of the same immediate.

Reviewers: sdesmalen, huntergr, rengolin, efriedma, c-rhodes, mgudim, kmclaughlin

Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits, amehsan

Tags: #llvm

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




More information about the All-commits mailing list