X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FLLVMContextImpl.h;h=808c239bff5e9d53e671f91eace554eddaa6c25c;hb=24623bab81ae6dde6d58fdd041d73c67f8dd98cf;hp=5e4919cdf0b995c7511c9185b2991f1e45b4286b;hpb=4e0cc51d7974029aa2bbffce08e2c878f529f98a;p=oota-llvm.git diff --git a/lib/IR/LLVMContextImpl.h b/lib/IR/LLVMContextImpl.h index 5e4919cdf0b..808c239bff5 100644 --- a/lib/IR/LLVMContextImpl.h +++ b/lib/IR/LLVMContextImpl.h @@ -37,10 +37,12 @@ namespace llvm { class ConstantInt; class ConstantFP; +class DiagnosticInfoOptimizationRemark; +class DiagnosticInfoOptimizationRemarkMissed; +class DiagnosticInfoOptimizationRemarkAnalysis; class LLVMContext; class Type; class Value; -struct PassRunListener; struct DenseMapAPIntKeyInfo { struct KeyTy { @@ -243,6 +245,9 @@ public: LLVMContext::DiagnosticHandlerTy DiagnosticHandler; void *DiagnosticContext; + LLVMContext::YieldCallbackTy YieldCallback; + void *YieldOpaqueHandle; + typedef DenseMap IntMapTy; IntMapTy IntConstants; @@ -369,26 +374,9 @@ public: typedef DenseMap PrefixDataMapTy; PrefixDataMapTy PrefixDataMap; - /// \brief List of listeners to notify about a pass run. - SmallVector RunListeners; - - /// \brief Return true if the given pass name should emit optimization - /// remarks. - bool optimizationRemarksEnabledFor(const char *PassName) const; - int getOrAddScopeRecordIdxEntry(MDNode *N, int ExistingIdx); int getOrAddScopeInlinedAtIdxEntry(MDNode *Scope, MDNode *IA,int ExistingIdx); - - /// \brief Notify that we finished running a pass. - void notifyPassRun(LLVMContext *, Pass *, Module *, Function *, BasicBlock *); - /// \brief Register the given PassRunListener to receive notifyPassRun() - /// callbacks whenever a pass ran. The context will take ownership of the - /// listener and free it when the context is destroyed. - void addRunListener(PassRunListener *); - /// \brief Unregister a PassRunListener so that it no longer receives - /// notifyPassRun() callbacks. Remove and free the listener from the context. - void removeRunListener(PassRunListener *); - + LLVMContextImpl(LLVMContext &C); ~LLVMContextImpl(); };