[compiler-rt] r204384 - PGO: Add missing file...

Duncan P. N. Exon Smith dexonsmith at apple.com
Thu Mar 20 12:39:01 PDT 2014


Author: dexonsmith
Date: Thu Mar 20 14:39:01 2014
New Revision: 204384

URL: http://llvm.org/viewvc/llvm-project?rev=204384&view=rev
Log:
PGO: Add missing file...

Added:
    compiler-rt/trunk/lib/profile/InstrProfilingExtras.h

Added: compiler-rt/trunk/lib/profile/InstrProfilingExtras.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingExtras.h?rev=204384&view=auto
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingExtras.h (added)
+++ compiler-rt/trunk/lib/profile/InstrProfilingExtras.h Thu Mar 20 14:39:01 2014
@@ -0,0 +1,28 @@
+/*===- InstrProfilingExtras.h - Support library for PGO instrumentation ---===*\
+|*
+|*                     The LLVM Compiler Infrastructure
+|*
+|* This file is distributed under the University of Illinois Open Source
+|* License. See LICENSE.TXT for details.
+|*
+\*===----------------------------------------------------------------------===*/
+
+/*!
+ * \brief Write instrumentation data to the current file.
+ *
+ * Writes to the file with the last name given to \a __llvm_pgo_set_filename(),
+ * or if it hasn't been called, the \c LLVM_PROFILE_FILE environment variable,
+ * or if that's not set, \c "default.profdata".
+ */
+void __llvm_pgo_write_file();
+
+/*!
+ * \brief Set the filename for writing instrumentation data.
+ *
+ * Sets the filename to be used for subsequent calls to
+ * \a __llvm_pgo_write_file().
+ */
+void __llvm_pgo_set_filename(const char *Name);
+
+/*! \brief Register to write instrumentation data to file at exit. */
+void __llvm_pgo_register_write_file_atexit();





More information about the llvm-commits mailing list