1 //===----- CGHLSLRuntime.h - Interface to HLSL Runtimes -----*- 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 // This provides an abstract class for HLSL code generation.  Concrete
10 // subclasses of this implement code generation for specific HLSL
11 // runtime libraries.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CLANG_LIB_CODEGEN_CGHLSLRUNTIME_H
16 #define LLVM_CLANG_LIB_CODEGEN_CGHLSLRUNTIME_H
17 
18 namespace clang {
19 
20 namespace CodeGen {
21 
22 class CodeGenModule;
23 
24 class CGHLSLRuntime {
25 protected:
26   CodeGenModule &CGM;
27 
28 public:
29   CGHLSLRuntime(CodeGenModule &CGM) : CGM(CGM) {}
30   virtual ~CGHLSLRuntime() {}
31 
32   void finishCodeGen();
33 };
34 
35 } // namespace CodeGen
36 } // namespace clang
37 
38 #endif
39