[all-commits] [llvm/llvm-project] c42fe5: [GlobalISel][SelectionDAG] Implement the HasNoUse ...

Abinav Puthan Purayil via All-commits all-commits at lists.llvm.org
Thu Jul 7 21:22:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c42fe5bd7a336250dfcce18673b717af9380a69a
      https://github.com/llvm/llvm-project/commit/c42fe5bd7a336250dfcce18673b717af9380a69a
  Author: Abinav Puthan Purayil <abinavpp at gmail.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
    M llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
    M llvm/include/llvm/Target/TargetSelectionDAG.td
    A llvm/test/TableGen/HasNoUse.td
    M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/CodeGenDAGPatterns.h
    M llvm/utils/TableGen/GlobalISelEmitter.cpp

  Log Message:
  -----------
  [GlobalISel][SelectionDAG] Implement the HasNoUse builtin predicate

This change introduces the HasNoUse builtin predicate in PatFrags that
checks for the absence of use of the first result operand.
GlobalISelEmitter will allow source PatFrags with this predicate to be
matched with destination instructions with empty outs. This predicate is
required for selecting the no-return variant of atomic instructions in
AMDGPU.

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




More information about the All-commits mailing list