Home
last modified time | relevance | path

Searched refs:ProfileFile (Results 1 – 9 of 9) sorted by relevance

/external/compiler-rt/lib/profile/
DInstrProfilingFile.c122 static int doProfileMerging(FILE *ProfileFile) { in doProfileMerging() argument
126 if (fseek(ProfileFile, 0L, SEEK_END) == -1) { in doProfileMerging()
131 ProfileFileSize = ftell(ProfileFile); in doProfileMerging()
134 if (fseek(ProfileFile, 0L, SEEK_SET) == -1) { in doProfileMerging()
149 fileno(ProfileFile), 0); in doProfileMerging()
179 FILE *ProfileFile; in openFileForMerging() local
182 ProfileFile = lprofOpenFileEx(ProfileFileName); in openFileForMerging()
183 if (!ProfileFile) in openFileForMerging()
186 rc = doProfileMerging(ProfileFile); in openFileForMerging()
187 if (rc || COMPILER_RT_FTRUNCATE(ProfileFile, 0L) || in openFileForMerging()
[all …]
/external/llvm-project/compiler-rt/lib/profile/
DInstrProfilingFile.c99 static FILE *ProfileFile = NULL; variable
100 static FILE *getProfileFile() { return ProfileFile; } in getProfileFile()
101 static void setProfileFile(FILE *File) { ProfileFile = File; } in setProfileFile()
191 static int getProfileFileSizeForMerging(FILE *ProfileFile, in getProfileFileSizeForMerging() argument
193 if (fseek(ProfileFile, 0L, SEEK_END) == -1) { in getProfileFileSizeForMerging()
198 *ProfileFileSize = ftell(ProfileFile); in getProfileFileSizeForMerging()
201 if (fseek(ProfileFile, 0L, SEEK_SET) == -1) { in getProfileFileSizeForMerging()
221 static int mmapProfileForMerging(FILE *ProfileFile, uint64_t ProfileFileSize, in mmapProfileForMerging() argument
224 fileno(ProfileFile), 0); in mmapProfileForMerging()
245 static int doProfileMerging(FILE *ProfileFile, int *MergeDone) { in doProfileMerging() argument
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Passes/
DPassBuilder.h36 PGOOptions(std::string ProfileFile = "", std::string CSProfileGenFile = "",
39 : ProfileFile(ProfileFile), CSProfileGenFile(CSProfileGenFile), in ProfileFile() function
61 std::string ProfileFile; member
631 std::string ProfileFile,
670 std::string ProfileFile,
/external/llvm-project/llvm/include/llvm/Passes/
DPassBuilder.h37 PGOOptions(std::string ProfileFile = "", std::string CSProfileGenFile = "",
42 : ProfileFile(ProfileFile), CSProfileGenFile(CSProfileGenFile), in ProfileFile() function
75 std::string ProfileFile; member
698 bool IsCS, std::string ProfileFile,
734 bool RunProfileGen, bool IsCS, std::string ProfileFile,
/external/llvm-project/llvm/unittests/ProfileData/
DSampleProfTest.cpp136 TempFile ProfileFile("profile", "", "", /*Unique*/ true); in testRoundTrip() local
137 createWriter(Format, ProfileFile.path()); in testRoundTrip()
229 readProfile(M, ProfileFile.path(), RemapFile.path()); in testRoundTrip()
370 TempFile ProfileFile("profile", "", "", /*Unique*/ true); in testSuffixElisionPolicy() local
377 createWriter(Format, ProfileFile.path()); in testSuffixElisionPolicy()
384 readProfile(M, ProfileFile.path()); in testSuffixElisionPolicy()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Passes/
DPassBuilder.cpp573 std::string ProfileFile, in addPGOInstrPasses() argument
613 assert(!ProfileFile.empty() && "Profile use expecting a profile file!"); in addPGOInstrPasses()
614 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPasses()
631 if (!ProfileFile.empty()) in addPGOInstrPasses()
632 Options.InstrProfileOutput = ProfileFile; in addPGOInstrPasses()
641 bool IsCS, std::string ProfileFile, in addPGOInstrPassesForO0() argument
644 assert(!ProfileFile.empty() && "Profile use expecting a profile file!"); in addPGOInstrPassesForO0()
645 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPassesForO0()
656 if (!ProfileFile.empty()) in addPGOInstrPassesForO0()
657 Options.InstrProfileOutput = ProfileFile; in addPGOInstrPassesForO0()
[all …]
/external/llvm-project/llvm/tools/opt/
DNewPMDriver.cpp124 extern cl::opt<std::string> ProfileFile;
236 P = PGOOptions(ProfileFile, "", "", PGOOptions::IRInstr); in runPassPipeline()
239 P = PGOOptions(ProfileFile, "", ProfileRemappingFile, PGOOptions::IRUse); in runPassPipeline()
242 P = PGOOptions(ProfileFile, "", ProfileRemappingFile, in runPassPipeline()
Dopt.cpp300 cl::opt<std::string> ProfileFile("profile-file", variable
366 Builder.PGOInstrGen = ProfileFile; in AddOptimizationPasses()
369 Builder.PGOInstrUse = ProfileFile; in AddOptimizationPasses()
372 Builder.PGOSampleUse = ProfileFile; in AddOptimizationPasses()
/external/llvm-project/llvm/lib/Passes/
DPassBuilder.cpp837 std::string ProfileFile, in addPGOInstrPasses() argument
875 assert(!ProfileFile.empty() && "Profile use expecting a profile file!"); in addPGOInstrPasses()
876 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPasses()
895 if (!ProfileFile.empty()) in addPGOInstrPasses()
896 Options.InstrProfileOutput = ProfileFile; in addPGOInstrPasses()
905 std::string ProfileFile, in addPGOInstrPassesForO0() argument
908 assert(!ProfileFile.empty() && "Profile use expecting a profile file!"); in addPGOInstrPassesForO0()
909 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPassesForO0()
920 if (!ProfileFile.empty()) in addPGOInstrPassesForO0()
921 Options.InstrProfileOutput = ProfileFile; in addPGOInstrPassesForO0()
[all …]