LLVM 22.0.0git
HipStdPar.h
Go to the documentation of this file.
1//===--------- HipStdPar.h - Standard Parallelism passes --------*- 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/// \file
9///
10/// AcceleratorCodeSelection - Identify all functions reachable from a kernel,
11/// removing those that are unreachable.
12///
13/// AllocationInterposition - Forward calls to allocation / deallocation
14// functions to runtime provided equivalents that allocate memory that is
15// accessible for an accelerator
16//===----------------------------------------------------------------------===//
17
18#ifndef LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H
19#define LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H
20
21#include "llvm/IR/PassManager.h"
23
24namespace llvm {
25
26class Module;
27
29 : public PassInfoMixin<HipStdParAcceleratorCodeSelectionPass> {
30public:
32
33 static bool isRequired() { return true; }
34};
35
37 : public PassInfoMixin<HipStdParAllocationInterpositionPass> {
38public:
40
41 static bool isRequired() { return true; }
42};
43
44class HipStdParMathFixupPass : public PassInfoMixin<HipStdParMathFixupPass> {
45public:
47
48 static bool isRequired() { return true; }
49};
50
51} // namespace llvm
52
53#endif // LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H
#define LLVM_ABI
Definition: Compiler.h:213
This header defines various interfaces for pass management in LLVM.
Machine Check Debug Module
ModuleAnalysisManager MAM
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:255
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
Definition: HipStdPar.cpp:398
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
Definition: HipStdPar.cpp:494
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
Definition: HipStdPar.cpp:576
static bool isRequired()
Definition: HipStdPar.h:48
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:67
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:112
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:70