Lines Matching refs:llvm
1 //===--- CodeGenAction.h - LLVM Code Generation Frontend Action -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
14 #include "llvm/ADT/OwningPtr.h"
16 namespace llvm {
27 llvm::OwningPtr<llvm::Module> TheModule;
28 llvm::LLVMContext *VMContext;
34 /// otherwise it creates a fresh LLVM context and takes ownership.
35 CodeGenAction(unsigned _Act, llvm::LLVMContext *_VMContext = 0);
49 /// takeModule - Take the generated LLVM module, for use after the action has
51 llvm::Module *takeModule();
53 /// Take the LLVM context used by this action.
54 llvm::LLVMContext *takeLLVMContext();
61 EmitAssemblyAction(llvm::LLVMContext *_VMContext = 0);
66 EmitBCAction(llvm::LLVMContext *_VMContext = 0);
71 EmitLLVMAction(llvm::LLVMContext *_VMContext = 0);
76 EmitLLVMOnlyAction(llvm::LLVMContext *_VMContext = 0);
81 EmitCodeGenOnlyAction(llvm::LLVMContext *_VMContext = 0);
86 EmitObjAction(llvm::LLVMContext *_VMContext = 0);