LLVM 19.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"
22
23namespace llvm {
24
25class Module;
26
28 : public PassInfoMixin<HipStdParAcceleratorCodeSelectionPass> {
29public:
31
32 static bool isRequired() { return true; }
33};
34
36 : public PassInfoMixin<HipStdParAllocationInterpositionPass> {
37public:
39
40 static bool isRequired() { return true; }
41};
42
43} // namespace llvm
44
45#endif // LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H
Machine Check Debug Module
ModuleAnalysisManager MAM
This header defines various interfaces for pass management in LLVM.
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:321
PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
Definition: HipStdPar.cpp:191
PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
Definition: HipStdPar.cpp:277
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:109
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:74