[all-commits] [llvm/llvm-project] 8bc718: GlobalISel/Utils: Refactor constant splat match fu...

petar-avramovic via All-commits all-commits at lists.llvm.org
Tue Sep 21 03:10:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bc71856681c235a3192813947308a19577c9236
      https://github.com/llvm/llvm-project/commit/8bc71856681c235a3192813947308a19577c9236
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
    M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
    M llvm/include/llvm/CodeGen/GlobalISel/Utils.h
    M llvm/lib/CodeGen/GlobalISel/Utils.cpp
    M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp

  Log Message:
  -----------
  GlobalISel/Utils: Refactor constant splat match functions

Add generic helper function that matches constant splat. It has option to
match constant splat with undef (some elements can be undef but not all).
Add util function and matcher for G_FCONSTANT splat.

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




More information about the All-commits mailing list