Go to the documentation of this file.
16 #include "llvm/Config/config.h"
17 #include "llvm/Config/llvm-config.h"
48 const char EnvPathSeparatorStr[] = {Separator,
'\0'};
50 SplitString(OptPath.
getValue(), Dirs, EnvPathSeparatorStr);
62 FoundPath = std::string(FilePath.
str());
71 #define COLOR(FGBG, CODE, BOLD) "\033[0;" BOLD FGBG CODE "m"
73 #define ALLCOLORS(FGBG,BOLD) {\
74 COLOR(FGBG, "0", BOLD),\
75 COLOR(FGBG, "1", BOLD),\
76 COLOR(FGBG, "2", BOLD),\
77 COLOR(FGBG, "3", BOLD),\
78 COLOR(FGBG, "4", BOLD),\
79 COLOR(FGBG, "5", BOLD),\
80 COLOR(FGBG, "6", BOLD),\
81 COLOR(FGBG, "7", BOLD)\
97 CRC->HandleExit(RetCode);
100 ExitNoCleanup(RetCode);
#define ALLCOLORS(FGBG, BOLD)
This is an optimization pass for GlobalISel generic memory operations.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
bool is_absolute(const Twine &path, Style style=Style::native)
Is path absolute?
void append(SmallVectorImpl< char > &path, const Twine &a, const Twine &b="", const Twine &c="", const Twine &d="")
Append to path.
bool equivalent(file_status A, file_status B)
Do file_status's represent the same thing?
static const char colorcodes[2][2][8][10]
bool exists(const basic_file_status &status)
Does file exist?
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
constexpr const T & getValue() const &
static Optional< std::string > GetEnv(StringRef name)
static CrashRecoveryContext * GetCurrent()
Return the active context, if the code is currently executing in a thread which is in a protected con...
static bool AreCoreFilesPrevented()
true if PreventCoreFiles has been called, false otherwise.
bool any_of(R &&range, UnaryPredicate P)
Provide wrappers to std::any_of which take ranges instead of having to pass begin/end explicitly.
StringRef - Represent a constant reference to a string, i.e.
static void Exit(int RetCode, bool NoCleanup=false)
Equivalent to exit(), except when running inside a CrashRecoveryContext.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
StringRef str() const
Explicit conversion to StringRef.
declare void exit(i32) noreturn nounwind This compiles into
static bool coreFilesPrevented
Crash recovery helper object.
static Optional< std::string > FindInEnvPath(StringRef EnvName, StringRef FileName, ArrayRef< std::string > IgnoreList, char Separator=EnvPathSeparator)
This function searches for an existing file in the list of directories in a PATH like environment var...