Anonymous View
LLVM 23.0.0git
Utils.h File Reference

Go to the source code of this file.

Classes

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::MachO

Macros

#define PATH_MAX   1024
#define MACCATALYST_PREFIX_PATH   "/System/iOSSupport"
#define DRIVERKIT_PREFIX_PATH   "/System/DriverKit"

Typedefs

using llvm::MachO::PathSeq = std::vector<std::string>
using llvm::MachO::PathToPlatform = std::pair<std::string, std::optional<PlatformType>>
using llvm::MachO::PathToPlatformSeq = std::vector<PathToPlatform>
using llvm::MachO::AliasEntry = std::pair<std::string, EncodeKind>
using llvm::MachO::AliasMap = std::map<AliasEntry, AliasEntry>

Functions

LLVM_ABI void llvm::MachO::replace_extension (SmallVectorImpl< char > &Path, const Twine &Extension)
 Replace extension considering frameworks.
LLVM_ABI std::error_code llvm::MachO::shouldSkipSymLink (const Twine &Path, bool &Result)
 Determine whether to skip over symlink due to either too many symlink levels or is cyclic.
LLVM_ABI std::error_code llvm::MachO::make_relative (StringRef From, StringRef To, SmallVectorImpl< char > &RelativePath)
 Turn absolute symlink into relative.
LLVM_ABI bool llvm::MachO::isPrivateLibrary (StringRef Path, bool IsSymLink=false)
 Determine if library is private by parsing file path.
LLVM_ABI llvm::Expected< llvm::Regexllvm::MachO::createRegexFromGlob (llvm::StringRef Glob)
 Create a regex rule from provided glob string.
LLVM_ABI Expected< AliasMapllvm::MachO::parseAliasList (std::unique_ptr< llvm::MemoryBuffer > &Buffer)
 Parse input list and capture symbols and their alias.
LLVM_ABI PathSeq llvm::MachO::getPathsForPlatform (const PathToPlatformSeq &Paths, PlatformType Platform)
 Pickup active paths for a given platform.

Macro Definition Documentation

◆ DRIVERKIT_PREFIX_PATH

#define DRIVERKIT_PREFIX_PATH   "/System/DriverKit"

Definition at line 31 of file Utils.h.

Referenced by llvm::MachO::isPrivateLibrary().

◆ MACCATALYST_PREFIX_PATH

#define MACCATALYST_PREFIX_PATH   "/System/iOSSupport"

Definition at line 30 of file Utils.h.

Referenced by llvm::MachO::isPrivateLibrary().

◆ PATH_MAX

#define PATH_MAX   1024

Definition at line 27 of file Utils.h.