Loading...
Searching...
No Matches
1#undef __ae2f_MACRO_GENERATED
2#define __ae2f_MACRO_GENERATED 1
3#ifndef aclspv_compiler_auto_h
4#define aclspv_compiler_auto_h
7#undef __ae2f_MACRO_GENERATED
8#define __ae2f_MACRO_GENERATED 1
12#include <aclspv/obj.h>
13#undef __ae2f_MACRO_GENERATED
14#define __ae2f_MACRO_GENERATED 1
19#include <clang/CodeGen/CodeGenAction.h>
20#undef __ae2f_MACRO_GENERATED
21#define __ae2f_MACRO_GENERATED 1
22#include <clang/Lex/PreprocessorOptions.h>
23#undef __ae2f_MACRO_GENERATED
24#define __ae2f_MACRO_GENERATED 1
25#include <clang/Frontend/CompilerInvocation.h>
26#undef __ae2f_MACRO_GENERATED
27#define __ae2f_MACRO_GENERATED 1
28#include <clang/Frontend/CompilerInstance.h>
29#undef __ae2f_MACRO_GENERATED
30#define __ae2f_MACRO_GENERATED 1
33#undef __ae2f_MACRO_GENERATED
34#define __ae2f_MACRO_GENERATED 1
36#define _aclspv_compile_imp(
38 C_vfs,C_fm,C_diagptr,C_action,
50) \
51{
52 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem>
53 C_vfs(new llvm::vfs::InMemoryFileSystem());
55 llvm::IntrusiveRefCntPtr<clang::FileManager> C_fm(
56 new clang::FileManager(clang::FileSystemOptions(), C_vfs));
58 (t_cc).setFileManager((C_fm.get()));
60 llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine> C_diagptr
61 = (t_cc).createDiagnostics(*(C_vfs).get(), t_diag_opts, nullptr, true);
63 (t_cc).setDiagnostics(C_diagptr.get());
65 clang::CompilerInvocation::CreateFromArgs(
66 (t_cc).getInvocation()
67 , clang::ArrayRef<const char*>((rd_argv), (rd_argv) + (c_argc))
68 , (t_cc).getDiagnostics()
71 (t_cc).getFrontendOpts().Inputs.clear();
72 for((t_sz0) = (c_unsaved_len); (t_sz0)--;) {
74 std::string((rd_unsaved[t_sz0]).Filename)
75 , 0
, (llvm::MemoryBuffer::getMemBuffer(
77 (rd_unsaved[t_sz0]).Contents
78 , (rd_unsaved[t_sz0].Length)
79 - !((rd_unsaved)[t_sz0].Contents[(rd_unsaved)[t_sz0].Length - 1
])
83 (t_cc).getFrontendOpts().Inputs.emplace_back(std::string((rd_unsaved)[t_sz0].Filename), clang::Language::OpenCL);
86 (t_cc).createSourceManager(*C_fm.get());
88 std::unique_ptr<clang::EmitLLVMAction> C_action(new clang::EmitLLVMAction(rc_ctx.get()));
89 if((t_cc).ExecuteAction(*C_action)) {
91 (ret) = new x_aclspv_obj(
96 assert(!(ae2f_static_cast(const char*, "ExecuteAction has failed")));
99}
103#undef __ae2f_MACRO_GENERATED
105#define __ae2f_MACRO_GENERATED 0
- submod
- ae3f
- aclspv
- lib
- compiler.auto.h