[Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (#113470)
[llvm-project.git] / llvm / lib / Target / AMDGPU / GCNDPPCombine.h
blobac45e578157ee0f065f5e9c2fbd421cd307163be
1 //=======--- GCNDPPCombine.h - optimization for DPP instructions ---==========//
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_AMDGPU_GCNDPPCOMBINE_H
10 #define LLVM_LIB_TARGET_AMDGPU_GCNDPPCOMBINE_H
12 #include "llvm/CodeGen/MachinePassManager.h"
14 namespace llvm {
15 class GCNDPPCombinePass : public PassInfoMixin<GCNDPPCombinePass> {
16 public:
17 PreservedAnalyses run(MachineFunction &MF,
18 MachineFunctionAnalysisManager &MAM);
20 MachineFunctionProperties getRequiredProperties() const {
21 return MachineFunctionProperties().set(
22 MachineFunctionProperties::Property::IsSSA);
26 } // end namespace llvm
28 #endif // LLVM_LIB_TARGET_AMDGPU_GCNDPPCOMBINE_H