EmitSPIRVAction.cpp 737 B

1234567891011121314151617181920212223
  1. //===--- EmitSPIRVAction.cpp - EmitSPIRVAction implementation -------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #include "clang/SPIRV/EmitSPIRVAction.h"
  10. #include "SPIRVEmitter.h"
  11. #include "clang/AST/ASTConsumer.h"
  12. #include "clang/Frontend/CompilerInstance.h"
  13. #include "llvm/ADT/STLExtras.h"
  14. namespace clang {
  15. std::unique_ptr<ASTConsumer>
  16. EmitSPIRVAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
  17. return llvm::make_unique<spirv::SPIRVEmitter>(CI, options);
  18. }
  19. } // end namespace clang