Lines Matching refs:LLVMContext
1 //===-- LLVMContext.cpp - Implement LLVMContext ---------------------------===//
10 // This file implements LLVMContext, as a wrapper around the opaque
15 #include "llvm/IR/LLVMContext.h"
28 static ManagedStatic<LLVMContext> GlobalContext;
30 LLVMContext& llvm::getGlobalContext() {
34 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
97 LLVMContext::~LLVMContext() { delete pImpl; }
99 void LLVMContext::addModule(Module *M) {
103 void LLVMContext::removeModule(Module *M) {
111 void LLVMContext::
120 LLVMContext::InlineAsmDiagHandlerTy
121 LLVMContext::getInlineAsmDiagnosticHandler() const {
127 void *LLVMContext::getInlineAsmDiagnosticContext() const {
131 void LLVMContext::setDiagnosticHandler(DiagnosticHandlerTy DiagnosticHandler,
139 LLVMContext::DiagnosticHandlerTy LLVMContext::getDiagnosticHandler() const {
143 void *LLVMContext::getDiagnosticContext() const {
147 void LLVMContext::setYieldCallback(YieldCallbackTy Callback, void *OpaqueHandle)
153 void LLVMContext::yield() {
158 void LLVMContext::emitError(const Twine &ErrorStr) {
162 void LLVMContext::emitError(const Instruction *I, const Twine &ErrorStr) {
191 void LLVMContext::diagnose(const DiagnosticInfo &DI) {
224 void LLVMContext::emitError(unsigned LocCookie, const Twine &ErrorStr) {
233 unsigned LLVMContext::getMDKindID(StringRef Name) const {
246 void LLVMContext::getMDKindNames(SmallVectorImpl<StringRef> &Names) const {