summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-15 19:01:04 +0000
committerXinliang David Li <davidxl@google.com>2016-01-15 19:01:04 +0000
commitb6066385268ac16273e4eb0c4c725222151d7e40 (patch)
treea423bf969487fccfcfb94afe1198318aefcf37c4 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parent257a35368ff898d9f6f61ca86fa8ca5cc942385c (diff)
downloadbcm5719-llvm-b6066385268ac16273e4eb0c4c725222151d7e40.tar.gz
bcm5719-llvm-b6066385268ac16273e4eb0c4c725222151d7e40.zip
[PGO] Commonize (more) index profile file and buffer writer.
The file and buffer writer code are mostly shared except for the stream back-patching. This is because raw_string_ostream does not support seek like interface. The result is that the data patching code needs to be pushed to the caller which is not quite readable (passing around offset, value etc). This also makes future enhancement (which needs more patching) more difficult (and can make impl messy). In this patch, two types of streams needed by the writer are now unified with same set of interfaces under ProfOStream class. The patch method is added so that common implementation becomes cleaner. It also enables future enhancement. Should be NFC. llvm-svn: 257921
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud