[all-commits] [llvm/llvm-project] 18173c: [RISCV] Add new entry points to getContainerForFix...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon Mar 8 01:33:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18173c57bd39fad2320b27c1bd13d62cf23e891d
      https://github.com/llvm/llvm-project/commit/18173c57bd39fad2320b27c1bd13d62cf23e891d
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h

  Log Message:
  -----------
  [RISCV] Add new entry points to getContainerForFixedLengthVector

While working on adding fixed-length vectors to the calling convention,
it was necessary to be able to query for a fixed-length vector container
type without access to an instance of SelectionDAG.

This patch modifies the "main" getContainerForFixedLengthVector function
to use an instance of TargetLowering rather than SelectionDAG, and
preserves the SelectionDAG overload as a wrapper.

An additional non-static version of the function was also added to
simplify the common case in RISCVTargetLowering.

Reviewed By: craig.topper

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




More information about the All-commits mailing list