[all-commits] [llvm/llvm-project] 9bac1b: [GlobalISel] Add and use a m_GAddLike pattern matc...
David Green via All-commits
all-commits at lists.llvm.org
Mon Mar 10 15:03:59 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9bac1b63ac14ca7cbd98ef63cbc0d8b643d31403
https://github.com/llvm/llvm-project/commit/9bac1b63ac14ca7cbd98ef63cbc0d8b643d31403
Author: David Green <david.green at arm.com>
Date: 2025-03-10 (Mon, 10 Mar 2025)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
M llvm/lib/Target/AArch64/AArch64InstrInfo.td
M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
Log Message:
-----------
[GlobalISel] Add and use a m_GAddLike pattern matcher. NFC (#125435)
This adds a Flags parameter to the BinaryOp_match, allowing it to detect
different flags like Disjoint. A m_GDisjointOr is added to detect Or's
with disjoint flags, and G_AddLike is then either a m_GADD or
m_GDisjointOr.
The rest is trying to allow matching `const MachineInstr&`, as opposed
to non-const references.
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