[all-commits] [llvm/llvm-project] a74f82: [MIPatternMatch] Add m_DeferredReg/Type (#121218)

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Mon Dec 30 09:24:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a74f825a7acec4962bb4c172da7ed0028f7b4d44
      https://github.com/llvm/llvm-project/commit/a74f825a7acec4962bb4c172da7ed0028f7b4d44
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2024-12-30 (Mon, 30 Dec 2024)

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

  Log Message:
  -----------
  [MIPatternMatch] Add m_DeferredReg/Type (#121218)

This pattern does the same thing as m_SpecificReg/Type except the value
it matches against origniated from an earlier pattern in the same
mi_match expression.

This patch also changes how commutative patterns are handled: in order
to support m_DefferedReg/Type, we always have to run the LHS-pattern
before the RHS one.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list