21#if defined(HAVE_UNISTD_H) 
   28#define STDOUT_FILENO 1 
   31#define STDERR_FILENO 2 
   48                   bool InstallPipeSignalExitHandler) {
 
   50  static std::atomic<bool> Initialized{
false};
 
   51  assert(!Initialized && 
"InitLLVM was already initialized!");
 
   58  if (InstallPipeSignalExitHandler)
 
   67  StackPrinter.emplace(Argc, Argv);
 
   76  std::string Banner = std::string(Argv[0]) + 
": ";
 
   95  std::string Banner = std::string(Argv[0]) + 
": ";
 
  102  Args.push_back(
nullptr);
 
  104  Argc = Args.size() - 1;
 
 
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
 
void CleanupStdHandles(void *Cookie)
 
Helper for check-and-exit error handling.
 
LLVM_ABI InitLLVM(int &Argc, const char **&Argv, bool InstallPipeSignalExitHandler=true)
 
This class implements an extremely fast bulk output stream that can only output to a stream.
 
LLVM_ABI std::error_code GetCommandLineArguments(SmallVectorImpl< const char * > &Args, BumpPtrAllocator &Alloc)
 
LLVM_ABI void DefaultOneShotPipeSignalHandler()
On Unix systems and Windows, this function exits with an "IO error" exit code.
 
LLVM_ABI void SetOneShotPipeSignalFunction(void(*Handler)())
Registers a function to be called in a "one-shot" manner when a pipe signal is delivered to the proce...
 
LLVM_ABI void AddSignalHandler(SignalHandlerCallback FnPtr, void *Cookie)
Add a function to be called when an abort/kill signal is delivered to the process.
 
LLVM_ABI void PrintStackTraceOnErrorSignal(StringRef Argv0, bool DisableCrashReporting=false)
When an error signal (such as SIGABRT or SIGSEGV) is delivered to the process, print a stack trace an...
 
This is an optimization pass for GlobalISel generic memory operations.
 
LLVM_ABI raw_fd_ostream & outs()
This returns a reference to a raw_fd_ostream for standard output.
 
LLVM_ABI void install_out_of_memory_new_handler()
 
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
 
LLVM_ABI void llvm_shutdown()
llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
 
LLVM_ABI Error errorCodeToError(std::error_code EC)
Helper for converting an std::error_code to a Error.