15 #ifndef LLVM_IR_LLVMCONTEXT_H 16 #define LLVM_IR_LLVMCONTEXT_H 32 class LLVMContextImpl;
35 template <
typename T>
class SmallVectorImpl;
86 MD_invariant_load = 6,
90 MD_mem_parallel_loop_access = 10,
92 MD_dereferenceable = 12,
93 MD_dereferenceable_or_null = 13,
94 MD_make_implicit = 14,
95 MD_unpredictable = 15,
96 MD_invariant_group = 16,
100 MD_section_prefix = 20,
101 MD_absolute_symbol = 21,
114 OB_gc_transition = 2,
146 void setGC(
const Function &Fn, std::string GCName);
149 const std::string &getGC(
const Function &Fn);
157 bool shouldDiscardValueNames()
const;
162 void setDiscardValueNames(
bool Discard);
166 bool isODRUniquingDebugTypes()
const;
167 void enableDebugTypeODRUniquing();
168 void disableDebugTypeODRUniquing();
185 void *DiagContext =
nullptr);
193 void *getInlineAsmDiagnosticContext()
const;
203 void setDiagnosticHandlerCallBack(
205 void *DiagContext =
nullptr,
bool RespectFilters =
false);
213 void setDiagnosticHandler(std::unique_ptr<DiagnosticHandler> &&DH,
214 bool RespectFilters =
false);
222 void *getDiagnosticContext()
const;
230 std::unique_ptr<DiagnosticHandler> getDiagnosticHandler();
234 bool getDiagnosticsHotnessRequested()
const;
237 void setDiagnosticsHotnessRequested(
bool Requested);
242 uint64_t getDiagnosticsHotnessThreshold()
const;
246 void setDiagnosticsHotnessThreshold(uint64_t
Threshold);
251 yaml::Output *getDiagnosticsOutputFile();
257 void setDiagnosticsOutputFile(std::unique_ptr<yaml::Output>
F);
306 void emitError(
unsigned LocCookie,
const Twine &ErrorStr);
308 void emitError(
const Twine &ErrorStr);
313 template <
typename ValT,
typename Base, ValT(Base::*Mem)>
338 void removeModule(
Module*);
356 #endif // LLVM_IR_LLVMCONTEXT_H Synchronized with respect to signal handlers executing in the same thread.
This is the base class for diagnostic handling in LLVM.
Compute iterated dominance frontiers using a linear time algorithm.
A Module instance is used to store all the information related to an LLVM module. ...
Extensions to this class implement mechanisms to disable passes and individual optimizations at compi...
void(*)(LLVMContext *Context, void *OpaqueHandle) YieldCallbackTy
Defines the type of a yield callback.
DiagnosticSeverity
Defines the different supported severity of a diagnostic.
#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Attribute unwrap(LLVMAttributeRef Attr)
static OptionRegistry & instance()
Returns a reference to the singleton instance.
struct LLVMOpaqueContext * LLVMContextRef
The top-level container for all LLVM global data.
void(*)(const DiagnosticInfo &DI, void *Context) DiagnosticHandlerTy
This is the base abstract class for diagnostic reporting in the backend.
This is an important class for using LLVM in a threaded context.
LLVMContextImpl *const pImpl
ValT getOption() const
Query for a debug option's value.
This file declares helper objects for defining debug options that can be configured via the command l...
void(*)(const SMDiagnostic &, void *Context, unsigned LocCookie) InlineAsmDiagHandlerTy
LLVMAttributeRef wrap(Attribute Attr)
static int const Threshold
TODO: Write a new FunctionPass AliasAnalysis so that it can keep a cache.
Synchronized with respect to all concurrently executing threads.
StringRef - Represent a constant reference to a string, i.e.
Instances of this class encapsulate one diagnostic report, allowing printing to a raw_ostream as a ca...