xref: /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILForwardHandleAccesses.h (revision 700637cbb5e582861067a11aaca4d053546871d2)
1 //===- DXILForwardHandleAccesses.h - Cleanup Handles ------------*- 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 Eliminate redundant stores and loads from handle globals.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_DIRECTX_DXILFORWARDHANDLEACCESS_H
14 #define LLVM_LIB_TARGET_DIRECTX_DXILFORWARDHANDLEACCESS_H
15 
16 #include "llvm/IR/PassManager.h"
17 
18 namespace llvm {
19 
20 class DXILForwardHandleAccesses
21     : public PassInfoMixin<DXILForwardHandleAccesses> {
22 public:
23   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
24 };
25 
26 } // namespace llvm
27 
28 #endif // LLVM_LIB_TARGET_DIRECTX_DXILFORWARDHANDLEACCESS_H
29