LLVM
22.0.0git
include
llvm
CodeGen
MachineCombinerPattern.h
Go to the documentation of this file.
1
//===-- llvm/CodeGen/MachineCombinerPattern.h - Instruction pattern supported by
2
// combiner ------*- C++ -*-===//
3
//
4
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
// See https://llvm.org/LICENSE.txt for license information.
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file defines instruction pattern supported by combiner
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_CODEGEN_MACHINECOMBINERPATTERN_H
15
#define LLVM_CODEGEN_MACHINECOMBINERPATTERN_H
16
17
namespace
llvm
{
18
19
/// The combiner's goal may differ based on which pattern it is attempting
20
/// to optimize.
21
enum class
CombinerObjective
{
22
MustReduceDepth
,
// The data dependency chain must be improved.
23
MustReduceRegisterPressure
,
// The register pressure must be reduced.
24
Default
// The critical path must not be lengthened.
25
};
26
27
/// These are instruction patterns matched by the machine combiner pass.
28
enum
MachineCombinerPattern
:
unsigned
{
29
// These are commutative variants for reassociating a computation chain. See
30
// the comments before getMachineCombinerPatterns() in TargetInstrInfo.cpp.
31
REASSOC_AX_BY
,
32
REASSOC_AX_YB
,
33
REASSOC_XA_BY
,
34
REASSOC_XA_YB
,
35
ACC_CHAIN
,
36
37
TARGET_PATTERN_START
38
};
39
40
}
// end namespace llvm
41
42
#endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
Types.h:26
llvm::MachineCombinerPattern
MachineCombinerPattern
These are instruction patterns matched by the machine combiner pass.
Definition
MachineCombinerPattern.h:28
llvm::ACC_CHAIN
@ ACC_CHAIN
Definition
MachineCombinerPattern.h:35
llvm::REASSOC_XA_BY
@ REASSOC_XA_BY
Definition
MachineCombinerPattern.h:33
llvm::REASSOC_AX_BY
@ REASSOC_AX_BY
Definition
MachineCombinerPattern.h:31
llvm::TARGET_PATTERN_START
@ TARGET_PATTERN_START
Definition
MachineCombinerPattern.h:37
llvm::REASSOC_XA_YB
@ REASSOC_XA_YB
Definition
MachineCombinerPattern.h:34
llvm::REASSOC_AX_YB
@ REASSOC_AX_YB
Definition
MachineCombinerPattern.h:32
llvm::CombinerObjective
CombinerObjective
The combiner's goal may differ based on which pattern it is attempting to optimize.
Definition
MachineCombinerPattern.h:21
llvm::CombinerObjective::MustReduceRegisterPressure
@ MustReduceRegisterPressure
Definition
MachineCombinerPattern.h:23
llvm::CombinerObjective::MustReduceDepth
@ MustReduceDepth
Definition
MachineCombinerPattern.h:22
llvm::InstructionUniformity::Default
@ Default
The result values are uniform if and only if all operands are uniform.
Definition
Uniformity.h:20
Generated on
for LLVM by
1.14.0