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"
35 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
142 assert(DeoptEntry->second == LLVMContext::OB_deopt &&
147 assert(FuncletEntry->second == LLVMContext::OB_funclet &&
152 assert(GCTransitionEntry->second == LLVMContext::OB_gc_transition &&
157 LLVMContext::~LLVMContext() { delete pImpl; }
159 void LLVMContext::addModule(Module *M) {
163 void LLVMContext::removeModule(Module *M) {
171 void LLVMContext::
180 LLVMContext::InlineAsmDiagHandlerTy
181 LLVMContext::getInlineAsmDiagnosticHandler() const {
187 void *LLVMContext::getInlineAsmDiagnosticContext() const {
191 void LLVMContext::setDiagnosticHandler(DiagnosticHandlerTy DiagnosticHandler,
199 LLVMContext::DiagnosticHandlerTy LLVMContext::getDiagnosticHandler() const {
203 void *LLVMContext::getDiagnosticContext() const {
207 void LLVMContext::setYieldCallback(YieldCallbackTy Callback, void *OpaqueHandle)
213 void LLVMContext::yield() {
218 void LLVMContext::emitError(const Twine &ErrorStr) {
222 void LLVMContext::emitError(const Instruction *I, const Twine &ErrorStr) {
239 LLVMContext::getDiagnosticMessagePrefix(DiagnosticSeverity Severity) {
253 void LLVMContext::diagnose(const DiagnosticInfo &DI) {
273 void LLVMContext::emitError(unsigned LocCookie, const Twine &ErrorStr) {
282 unsigned LLVMContext::getMDKindID(StringRef Name) const {
292 void LLVMContext::getMDKindNames(SmallVectorImpl<StringRef> &Names) const {
299 void LLVMContext::getOperandBundleTags(SmallVectorImpl<StringRef> &Tags) const {
303 uint32_t LLVMContext::getOperandBundleTagID(StringRef Tag) const {
307 void LLVMContext::setGC(const Function &Fn, std::string GCName) {
317 const std::string &LLVMContext::getGC(const Function &Fn) {
321 void LLVMContext::deleteGC(const Function &Fn) {
325 bool LLVMContext::shouldDiscardValueNames() const {
329 bool LLVMContext::isODRUniquingDebugTypes() const { return !!pImpl->DITypeMap; }
331 void LLVMContext::enableDebugTypeODRUniquing() {
338 void LLVMContext::disableDebugTypeODRUniquing() { pImpl->DITypeMap.reset(); }
340 void LLVMContext::setDiscardValueNames(bool Discard) {
344 OptBisect &LLVMContext::getOptBisect() {