[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / llvm / lib / Target / AArch64 / AArch64Combine.td
blobe42556b5901abe1ac2d2dc9568de5a76e5e2fd7a
1 //=- AArch64.td - Define AArch64 Combine Rules ---------------*- tablegen -*-=//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 //
10 //===----------------------------------------------------------------------===//
12 include "llvm/Target/GlobalISel/Combine.td"
14 def fconstant_to_constant : GICombineRule<
15   (defs root:$root),
16   (match (wip_match_opcode G_FCONSTANT):$root,
17          [{ return matchFConstantToConstant(*${root}, MRI); }]),
18   (apply [{ applyFConstantToConstant(*${root}); }])>;
20 def AArch64PreLegalizerCombinerHelper: GICombinerHelper<
21   "AArch64GenPreLegalizerCombinerHelper", [all_combines,
22                                            elide_br_by_inverting_cond,
23                                            fconstant_to_constant]> {
24   let DisableRuleOption = "aarch64prelegalizercombiner-disable-rule";