/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PathV1.h | 91 class Path { 101 LLVM_ATTRIBUTE_DEPRECATED(static Path GetRootDirectory(), 112 static Path GetTemporaryDirectory(std::string* ErrMsg = 0); 117 static void GetSystemLibraryPaths(std::vector<sys::Path>& Paths); 127 static void GetBitcodeLibraryPaths(std::vector<sys::Path>& Paths); 132 static Path FindLibrary(std::string& short_name); 139 static Path GetLLVMDefaultConfigDir(); 146 static Path GetLLVMConfigDir(); 155 static Path GetUserHomeDirectory(); 160 static Path GetCurrentDirectory(); [all …]
|
D | Program.h | 58 ( const Path& path, ///< sys::Path object providing the path of the 67 const sys::Path** redirects = 0, ///< An optional array of pointers to 94 ( const Path& path, ///< The path to the child process executable. 123 static Path FindProgramByName(const std::string& name); 135 static int ExecuteAndWait(const Path& path, 138 const sys::Path** redirects = 0, 145 static void ExecuteNoWait(const Path& path, 148 const sys::Path** redirects = 0,
|
/external/r8/src/main/java/com/android/tools/r8/shaking/ |
D | ProguardConfiguration.java | 10 import java.nio.file.Path; 20 private final List<Path> injars = new ArrayList<>(); 21 private final List<Path> libraryjars = new ArrayList<>(); 28 private Path printUsageFile; 30 private Path printMappingOutput; 37 private Path seedFile; 38 private Path obfuscationDictionary; 39 private Path classObfuscationDictionary; 40 private Path packageObfuscationDictionary; 46 public void addInjars(List<Path> injars) { in addInjars() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Path.cpp | 33 bool Path::operator==(const Path &that) const { in operator ==() 37 bool Path::operator<(const Path& that) const { in operator <() 41 Path 42 Path::GetLLVMConfigDir() { in GetLLVMConfigDir() 43 Path result; in GetLLVMConfigDir() 164 Path::isArchive() const { in isArchive() 172 Path::isDynamicLibrary() const { in isDynamicLibrary() 187 Path::isObjectFile() const { in isObjectFile() 194 Path 195 Path::FindLibrary(std::string& name) { in FindLibrary() [all …]
|
D | GraphWriter.cpp | 54 void llvm::DisplayGraph(const sys::Path &Filename, bool wait, in DisplayGraph() 58 sys::Path Graphviz(LLVM_PATH_GRAPHVIZ); in DisplayGraph() 90 if (sys::Program::ExecuteAndWait(sys::Path(LLVM_PATH_XDOT_PY), in DisplayGraph() 100 sys::Path PSFilename = Filename; in DisplayGraph() 103 sys::Path prog; in DisplayGraph() 107 prog = sys::Path(LLVM_PATH_CIRCO); in DisplayGraph() 110 prog = sys::Path(LLVM_PATH_TWOPI); in DisplayGraph() 113 prog = sys::Path(LLVM_PATH_NEATO); in DisplayGraph() 116 prog = sys::Path(LLVM_PATH_FDP); in DisplayGraph() 119 prog = sys::Path(LLVM_PATH_DOT); in DisplayGraph() [all …]
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerIO.cpp | 26 bool IsFile(const std::string &Path) { in IsFile() argument 28 if (stat(Path.c_str(), &St)) in IsFile() 33 static long GetEpoch(const std::string &Path) { in GetEpoch() argument 35 if (stat(Path.c_str(), &St)) in GetEpoch() 52 std::string Path = DirPlusFile(Dir, E->d_name); in ListFilesInDirRecursive() local 54 V->push_back(Path); in ListFilesInDirRecursive() 56 ListFilesInDirRecursive(Path, Epoch, V, false); in ListFilesInDirRecursive() 63 Unit FileToVector(const std::string &Path, size_t MaxSize) { in FileToVector() argument 64 std::ifstream T(Path); in FileToVector() 66 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector() [all …]
|
/external/r8/src/test/java/com/android/tools/r8/utils/ |
D | R8CommandTest.java | 21 import java.nio.file.Path; 66 Path working = temp.getRoot().toPath(); in defaultOutIsCwd() 67 Path input = Paths.get(EXAMPLES_BUILD_DIR, "arithmetic.jar").toAbsolutePath(); in defaultOutIsCwd() 68 Path output = working.resolve("classes.dex"); in defaultOutIsCwd() 77 Path existingDir = temp.getRoot().toPath(); in validOutputPath() 78 Path nonExistingZip = existingDir.resolve("a-non-existing-archive.zip"); in validOutputPath() 95 Path existingDir = temp.newFolder().toPath(); in existingOutputDirWithDexFiles() 96 List<Path> classesFiles = ImmutableList.of( in existingOutputDirWithDexFiles() 102 List<Path> otherFiles = ImmutableList.of( in existingOutputDirWithDexFiles() 108 for (Path file : classesFiles) { in existingOutputDirWithDexFiles() [all …]
|
D | D8CommandTest.java | 20 import java.nio.file.Path; 63 Path working = temp.getRoot().toPath(); in defaultOutIsCwd() 64 Path input = Paths.get(EXAMPLES_BUILD_DIR + "/arithmetic.jar").toAbsolutePath(); in defaultOutIsCwd() 65 Path output = working.resolve("classes.dex"); in defaultOutIsCwd() 73 Path existingDir = temp.getRoot().toPath(); in validOutputPath() 74 Path nonExistingZip = existingDir.resolve("a-non-existing-archive.zip"); in validOutputPath() 92 Path nonExistingDir = temp.getRoot().toPath().resolve("a/path/that/does/not/exist"); in nonExistingOutputDir() 98 Path existingDir = temp.newFolder().toPath(); in existingOutputDirWithDexFiles() 99 List<Path> classesFiles = ImmutableList.of( in existingOutputDirWithDexFiles() 105 List<Path> otherFiles = ImmutableList.of( in existingOutputDirWithDexFiles() [all …]
|
/external/desugar/java/com/google/devtools/build/android/desugar/ |
D | LambdaClassMaker.java | 23 import java.nio.file.Path; 34 private final Path rootDirectory; 35 private final Map<Path, LambdaInfo> generatedClasses = new LinkedHashMap<>(); 37 public LambdaClassMaker(Path rootDirectory) { in LambdaClassMaker() 53 Path generatedClassFile = findOnlyUnprocessed(invokerInternalName + "$$Lambda$"); in generateLambdaClass() 61 public ImmutableMap<Path, LambdaInfo> drain() { in drain() 62 ImmutableMap<Path, LambdaInfo> result = ImmutableMap.copyOf(generatedClasses); in drain() 67 private Path findOnlyUnprocessed(String pathPrefix) throws IOException { in findOnlyUnprocessed() 72 Path rootPathPrefix = rootDirectory.resolve(pathPrefix); in findOnlyUnprocessed() 76 try (Stream<Path> paths = in findOnlyUnprocessed() [all …]
|
/external/clang/lib/AST/ |
D | CXXInheritance.cpp | 30 for (paths_iterator Path = begin(), PathEnd = end(); Path != PathEnd; ++Path) in ComputeDeclsFound() local 31 Decls.insert(Path->Decls.front()); in ComputeDeclsFound() 92 [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) { in isDerivedFrom() argument 93 return FindBaseClass(Specifier, Path, BaseDecl); in isDerivedFrom() 113 [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) { in isVirtuallyDerivedFrom() argument 114 return FindVirtualBaseClass(Specifier, Path, BaseDecl); in isVirtuallyDerivedFrom() 323 Paths.Paths.remove_if([&Paths](const CXXBasePath &Path) { in lookupInBases() argument 324 for (const CXXBasePathElement &PE : Path) { in lookupInBases() 357 CXXBasePath &Path, in FindBaseClass() argument 366 CXXBasePath &Path, in FindVirtualBaseClass() argument [all …]
|
/external/r8/src/test/java/com/android/tools/r8/ |
D | D8IncrementalRunExamplesAndroidOTest.java | 24 import java.nio.file.Path; 53 void build(Path testJarFile, Path out) throws Throwable { in build() 59 SortedMap<String, Resource> compileClassesSeparately(Path testJarFile) throws Throwable { in compileClassesSeparately() 75 Path testJarFile, Path output) throws Throwable { in compileClassesTogether() 95 private Path makeRelative(Path testJarFile, Path classFile) { in makeRelative() 96 Path regularParent = in makeRelative() 98 Path legacyParent = regularParent.resolve(Paths.get("..", in makeRelative() 108 private List<String> collectClassFiles(Path testJarFile) { in collectClassFiles() 118 Path getClassesRoot(Path testJarFile) { in getClassesRoot() 119 Path parent = testJarFile.getParent(); in getClassesRoot() [all …]
|
/external/abi-dumper/ |
D | Makefile.pl | 25 use File::Path qw(mkpath rmtree); 226 foreach my $Path (sort keys(%Files)) 228 my $Inst = $Path; 230 if(-d $Path) 237 copy($Path, $Inst); 244 my $Path = $_[0]; 245 return "" if(not $Path or not -f $Path); 246 open(FILE, $Path) || die ("can't open file \'$Path\': $!\n"); 255 my ($Path, $Content) = @_; 256 return if(not $Path); [all …]
|
/external/swiftshader/third_party/LLVM/tools/bugpoint/ |
D | ToolRunner.cpp | 56 static int RunProgramWithTimeout(const sys::Path &ProgramPath, in RunProgramWithTimeout() 58 const sys::Path &StdInFile, in RunProgramWithTimeout() 59 const sys::Path &StdOutFile, in RunProgramWithTimeout() 60 const sys::Path &StdErrFile, in RunProgramWithTimeout() 64 const sys::Path* redirects[3]; in RunProgramWithTimeout() 89 static int RunProgramRemotelyWithTimeout(const sys::Path &RemoteClientPath, in RunProgramRemotelyWithTimeout() 91 const sys::Path &StdInFile, in RunProgramRemotelyWithTimeout() 92 const sys::Path &StdOutFile, in RunProgramRemotelyWithTimeout() 93 const sys::Path &StdErrFile, in RunProgramRemotelyWithTimeout() 96 const sys::Path* redirects[3]; in RunProgramRemotelyWithTimeout() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/Unix/ |
D | Path.inc | 1 //===- llvm/Support/Unix/Path.cpp - Unix Path Implementation -----*- C++ -*-===// 10 // This file implements the Unix specific portion of the Path class. 81 StringRef Path::GetEXESuffix() { 85 Path::Path(StringRef p) 88 Path::Path(const char *StrStart, unsigned StrLen) 91 Path& 92 Path::operator=(StringRef that) { 98 Path::isValid() const { 108 Path::isAbsolute(const char *NameStart, unsigned NameLen) { 116 Path::isAbsolute() const { [all …]
|
/external/abi-compliance-checker/ |
D | Makefile.pl | 28 use File::Path qw(mkpath rmtree); 253 foreach my $Path (sort keys(%Files)) 255 if($Path=~/Targets\//) 259 my $Inst = $Path; 261 if(-d $Path) 268 copy($Path, $Inst); 275 my $Path = $_[0]; 276 return "" if(not $Path or not -f $Path); 277 open(FILE, $Path) || die ("can't open file \'$Path\': $!\n"); 286 my ($Path, $Content) = @_; [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/Windows/ |
D | Path.inc | 1 //===- llvm/Support/Win32/Path.cpp - Win32 Path Implementation ---*- C++ -*-===// 10 // This file provides the Win32 specific implementation of the Path class. 48 StringRef Path::GetEXESuffix() { 52 Path::Path(llvm::StringRef p) 57 Path::Path(const char *StrStart, unsigned StrLen) 62 Path& 63 Path::operator=(StringRef that) { 82 Path::isValid() const { 144 void Path::makeAbsolute() { 164 Path::isAbsolute(const char *NameStart, unsigned NameLen) { [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Path.cpp | 235 i.Path = path; in begin() 243 i.Path = path; in end() 249 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++() 255 if (Position == Path.size()) { in operator ++() 268 if (is_separator(Path[Position])) { in operator ++() 276 Component = Path.substr(Position, 1); in operator ++() 281 while (Position != Path.size() && in operator ++() 282 is_separator(Path[Position])) { in operator ++() 287 if (Position == Path.size()) { in operator ++() 295 size_t end_pos = Path.find_first_of(separators, Position); in operator ++() [all …]
|
/external/llvm/lib/Support/ |
D | Path.cpp | 235 i.Path = path; in begin() 243 i.Path = path; in end() 249 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++() 255 if (Position == Path.size()) { in operator ++() 268 if (is_separator(Path[Position])) { in operator ++() 276 Component = Path.substr(Position, 1); in operator ++() 281 while (Position != Path.size() && in operator ++() 282 is_separator(Path[Position])) { in operator ++() 287 if (Position == Path.size()) { in operator ++() 295 size_t end_pos = Path.find_first_of(separators, Position); in operator ++() [all …]
|
/external/r8/src/test/java/com/android/tools/r8/jsr45/ |
D | JSR45Tests.java | 25 import java.nio.file.Path; 39 private static final Path INPUT_PATH = 41 private static final Path DONT_SHRINK_DONT_OBFUSCATE_CONFIG = 43 private static final Path DONT_SHRINK_CONFIG = 45 private static final Path SHRINK_KEEP_CONFIG = 47 private static final Path SHRINK_NO_KEEP_CONFIG = 53 void compileWithD8(Path intputPath, Path outputPath) throws IOException, CompilationException { in compileWithD8() 62 void compileWithR8(Path inputPath, Path outputPath, Path keepRulesPath) in compileWithR8() 98 Path outputPath = tmpOutputDir.newFolder().toPath(); in testSourceDebugExtensionWithD8() 111 Path outputPath = tmpOutputDir.newFolder().toPath(); in testSourceDebugExtensionWithShriking1() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Linker/ |
D | Linker.cpp | 68 Linker::addPath(const sys::Path& path) { in addPath() 75 LibPaths.push_back(sys::Path(paths[i])); in addPaths() 80 sys::Path::GetBitcodeLibraryPaths(LibPaths); in addSystemPaths() 81 LibPaths.insert(LibPaths.begin(),sys::Path("./")); in addSystemPaths() 98 Linker::LoadObject(const sys::Path &FN) { in LoadObject() 119 static inline sys::Path IsLibrary(StringRef Name, in IsLibrary() 120 const sys::Path &Directory) { in IsLibrary() 122 sys::Path FullPath(Directory); in IsLibrary() 138 FullPath.appendSuffix(sys::Path::GetDLLSuffix()); in IsLibrary() 165 sys::Path [all …]
|
/external/r8/src/main/java/com/android/tools/r8/utils/ |
D | FileUtils.java | 11 import java.nio.file.Path; 25 public static boolean isDexFile(Path path) { in isDexFile() 30 public static boolean isClassFile(Path path) { in isClassFile() 35 public static boolean isJarFile(Path path) { in isJarFile() 40 public static boolean isZipFile(Path path) { in isZipFile() 45 public static boolean isApkFile(Path path) { in isApkFile() 50 public static boolean isArchive(Path path) { in isArchive() 57 public static List<String> readTextFile(Path file) throws IOException { in readTextFile() 68 public static void writeTextFile(Path file, List<String> lines) throws IOException { in writeTextFile() 72 public static void writeTextFile(Path file, String... lines) throws IOException { in writeTextFile() [all …]
|
/external/clang/lib/Basic/ |
D | VirtualFileSystem.cpp | 104 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const { in makeAbsolute() 105 if (llvm::sys::path::is_absolute(Path)) in makeAbsolute() 112 return llvm::sys::fs::make_absolute(WorkingDir.get(), Path); in makeAbsolute() 115 bool FileSystem::exists(const Twine &Path) { in exists() argument 116 auto Status = status(Path); in exists() 125 static bool pathHasTraversal(StringRef Path) { in pathHasTraversal() argument 127 for (StringRef Comp : llvm::make_range(path::begin(Path), path::end(Path))) in pathHasTraversal() 198 ErrorOr<Status> status(const Twine &Path) override; 199 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override; 203 std::error_code setCurrentWorkingDirectory(const Twine &Path) override; [all …]
|
/external/abi-compliance-checker/modules/Internals/ |
D | SysCheck.pm | 978 foreach my $Path (split(/\s*\n\s*/, parseTag(\$Content, "libs"))) 980 if(not -e $Path) { 981 exitStatus("Access_Error", "can't access \'$Path\'"); 983 $Path = get_abs_path($Path); 984 $Path=~s/[\/\\]+\Z//g; 985 $SysDescriptor{"Libs"}{$Path} = 1; 987 foreach my $Path (split(/\s*\n\s*/, parseTag(\$Content, "search_libs"))) 989 if(not -d $Path) { 990 exitStatus("Access_Error", "can't access directory \'$Path\'"); 992 $Path = get_abs_path($Path); [all …]
|
/external/r8/src/main/java/com/android/tools/r8/ |
D | BaseCommand.java | 12 import java.nio.file.Path; 21 private final Path outputPath; 39 Path outputPath, in BaseCommand() 72 public Path getOutputPath() { in getOutputPath() 93 private Path outputPath = null; 123 public B addProgramFiles(Path... files) throws IOException { in addProgramFiles() 129 public B addProgramFiles(Collection<Path> files, boolean skipDex) throws IOException { in addProgramFiles() 135 public B addClasspathFiles(Path... files) throws IOException { in addClasspathFiles() 141 public B addClasspathFiles(Collection<Path> files) throws IOException { in addClasspathFiles() 147 public B addLibraryFiles(Path... files) throws IOException { in addLibraryFiles() [all …]
|
/external/r8/src/test/java/com/android/tools/r8/shaking/ |
D | TreeShakingSpecificTest.java | 20 import java.nio.file.Path; 43 Path out = temp.getRoot().toPath(); in testIgnoreWarnings() 45 Path originalDex = Paths.get(EXAMPLES_BUILD_DIR, test, "classes.dex"); in testIgnoreWarnings() 46 Path keepRules = Paths.get(EXAMPLES_DIR, test, "keep-rules.txt"); in testIgnoreWarnings() 47 Path ignoreWarnings = Paths.get(VALID_PROGUARD_DIR, "ignorewarnings.flags"); in testIgnoreWarnings() 60 Path out = temp.getRoot().toPath(); in testMissingLibrary() 62 Path originalDex = Paths.get(EXAMPLES_BUILD_DIR, test, "classes.dex"); in testMissingLibrary() 63 Path keepRules = Paths.get(EXAMPLES_DIR, test, "keep-rules.txt"); in testMissingLibrary() 79 Path out = temp.getRoot().toPath(); in testPrintMapping() 80 Path originalDex = Paths.get(EXAMPLES_BUILD_DIR, test, "classes.dex"); in testPrintMapping() [all …]
|