1//===- AMDGPUMFMAIGroupLP.h - AMDGPU MFMA IGroupLP --------*- C++ -*-===//
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#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMFMAIGROUPLP_H
10#define LLVM_LIB_TARGET_AMDGPU_AMDGPUMFMAIGROUPLP_H
11
12#include "llvm/CodeGen/ScheduleDAGMutation.h"
13#include <memory>
14
15namespace llvm {
16
17namespace AMDGPU {
18// The current phase of instruction scheduling
19enum class SchedulingPhase { Initial, PreRAReentry, PostRA };
20
21/// Operand 0 immediate for IGLP_OPT pseudo instructions.
22enum IGLPStrategyID : int {
23 MFMASmallGemmOptID = 0,
24 MFMASmallGemmSingleWaveOptID = 1,
25 MFMAExpInterleaveID = 2,
26 MFMAExpSimpleInterleaveID = 3,
27};
28} // namespace AMDGPU
29
30std::unique_ptr<ScheduleDAGMutation>
31createIGroupLPDAGMutation(AMDGPU::SchedulingPhase Phase);
32
33} // namespace llvm
34
35#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUMFMAIGROUPLP_H
36