1 //===-- llvm/CodeGen/MachineCombinerPattern.h - Instruction pattern supported by
2 // combiner ------*- C++ -*-===//
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 // This file defines instruction pattern supported by combiner
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CODEGEN_MACHINECOMBINERPATTERN_H
16 #define LLVM_CODEGEN_MACHINECOMBINERPATTERN_H
20 /// These are instruction patterns matched by the machine combiner pass.
21 enum class MachineCombinerPattern {
22 // These are commutative variants for reassociating a computation chain. See
23 // the comments before getMachineCombinerPatterns() in TargetInstrInfo.cpp.
29 // These are multiply-add patterns matched by the AArch64 machine combiner.
51 FMLAv1i32_indexed_OP1,
52 FMLAv1i32_indexed_OP2,
53 FMLAv1i64_indexed_OP1,
54 FMLAv1i64_indexed_OP2,
59 FMLAv2i32_indexed_OP1,
60 FMLAv2i32_indexed_OP2,
61 FMLAv2i64_indexed_OP1,
62 FMLAv2i64_indexed_OP2,
65 FMLAv4i32_indexed_OP1,
66 FMLAv4i32_indexed_OP2,
67 FMLSv1i32_indexed_OP2,
68 FMLSv1i64_indexed_OP2,
69 FMLSv2i32_indexed_OP2,
70 FMLSv2i64_indexed_OP2,
73 FMLSv4i32_indexed_OP2,
77 } // end namespace llvm