LLVM 18.0.0git
MachineUniformityAnalysis.h
Go to the documentation of this file.
1//===- MachineUniformityAnalysis.h ---------------------------*- 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/// \file
10/// \brief Machine IR instance of the generic uniformity analysis
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CODEGEN_MACHINEUNIFORMITYANALYSIS_H
15#define LLVM_CODEGEN_MACHINEUNIFORMITYANALYSIS_H
16
21
22namespace llvm {
23
24extern template class GenericUniformityInfo<MachineSSAContext>;
26
27/// \brief Compute uniformity information for a Machine IR function.
28///
29/// If \p HasBranchDivergence is false, produces a dummy result which assumes
30/// everything is uniform.
32 MachineFunction &F, const MachineCycleInfo &cycleInfo,
33 const MachineDomTree &domTree, bool HasBranchDivergence);
34
35} // namespace llvm
36
37#endif // LLVM_CODEGEN_MACHINEUNIFORMITYANALYSIS_H
#define F(x, y, z)
Definition: MD5.cpp:55
This file declares a specialization of the GenericSSAContext<X> template class for Machine IR.
Core dominator tree base class.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MachineUniformityInfo computeMachineUniformityInfo(MachineFunction &F, const MachineCycleInfo &cycleInfo, const MachineDomTree &domTree, bool HasBranchDivergence)
Compute uniformity information for a Machine IR function.