xref: /llvm-project/llvm/lib/Target/DirectX/DXILResourceAccess.h (revision 0fca76d576da6b26379b9754178263685b077610)
1 //===- DXILResourceAccess.h - Resource access via load/store ----*- 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 Pass for replacing pointers to DXIL resources with load and store
10 // operations.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_DIRECTX_DXILRESOURCEACCESS_H
15 #define LLVM_LIB_TARGET_DIRECTX_DXILRESOURCEACCESS_H
16 
17 #include "llvm/IR/PassManager.h"
18 
19 namespace llvm {
20 
21 class DXILResourceAccess : public PassInfoMixin<DXILResourceAccess> {
22 public:
23   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
24 };
25 
26 } // namespace llvm
27 
28 #endif // LLVM_LIB_TARGET_DIRECTX_DXILRESOURCEACCESS_H
29