|
|
|||
File indexing completed on 2026-05-10 08:44:38
0001 //===--------- HipStdPar.h - Standard Parallelism passes --------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 /// \file 0009 /// 0010 /// AcceleratorCodeSelection - Identify all functions reachable from a kernel, 0011 /// removing those that are unreachable. 0012 /// 0013 /// AllocationInterposition - Forward calls to allocation / deallocation 0014 // functions to runtime provided equivalents that allocate memory that is 0015 // accessible for an accelerator 0016 //===----------------------------------------------------------------------===// 0017 0018 #ifndef LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H 0019 #define LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H 0020 0021 #include "llvm/IR/PassManager.h" 0022 0023 namespace llvm { 0024 0025 class Module; 0026 0027 class HipStdParAcceleratorCodeSelectionPass 0028 : public PassInfoMixin<HipStdParAcceleratorCodeSelectionPass> { 0029 public: 0030 PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); 0031 0032 static bool isRequired() { return true; } 0033 }; 0034 0035 class HipStdParAllocationInterpositionPass 0036 : public PassInfoMixin<HipStdParAllocationInterpositionPass> { 0037 public: 0038 PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); 0039 0040 static bool isRequired() { return true; } 0041 }; 0042 0043 } // namespace llvm 0044 0045 #endif // LLVM_TRANSFORMS_HIPSTDPAR_HIPSTDPAR_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|