profile: Rudimentary suppport for PGO instrumentation

This is fairly minimal support for instrumentation based PGO. The data
format is inefficient, and the output file name is hardcoded to
pgo-data.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198638 91177308-0d34-0410-b5e6-96231b3b80d8
Use the PRIu64 macro for printing a uint64_t.

Otherwise on (some) 64-bit systems, -Wformat will trigger a warning
because uint64_t is an 'unsigned long' not an 'unsigned long long'.
Consequently, PGOProfiling.c would fail to build if -Werror and
-Wformat are both enabled.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198644 91177308-0d34-0410-b5e6-96231b3b80d8
Only include inttypes.h on platforms for which PRIu64 isn't in stdint.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198647 91177308-0d34-0410-b5e6-96231b3b80d8
Explicitly enable PRIu64 by defining __STDC_FORMAT_MACROS if it isn't
yet defined.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198650 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Explicitly enable PRIu64 by defining __STDC_FORMAT_MACROS if it isn't"

This reverts commit d1b5d3b0e885ef057643fcea99bff8b6cce04b93.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198656 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Only include inttypes.h on platforms for which PRIu64 isn't in stdint.h"

This reverts commit e7778e08878d0c61903205428eeb131db9d11b3c.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198657 91177308-0d34-0410-b5e6-96231b3b80d8
SDKs: Add inttypes.h to the darwin SDK stub

This unbreaks the configure build on darwin, where we build with the
stub SDK in -isysroot. Oddly, the cmake build doesn't have this
restriction, which probably means the cmake configs are out of date.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198676 91177308-0d34-0410-b5e6-96231b3b80d8