Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison lib/Analysis/BlockFrequencyInfoImpl.cpp @ 100:7d135dc70f03
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
528 if (!Node.isValid()) | 528 if (!Node.isValid()) |
529 return Scaled64::getZero(); | 529 return Scaled64::getZero(); |
530 return Freqs[Node.Index].Scaled; | 530 return Freqs[Node.Index].Scaled; |
531 } | 531 } |
532 | 532 |
533 void BlockFrequencyInfoImplBase::setBlockFreq(const BlockNode &Node, | |
534 uint64_t Freq) { | |
535 assert(Node.isValid() && "Expected valid node"); | |
536 assert(Node.Index < Freqs.size() && "Expected legal index"); | |
537 Freqs[Node.Index].Integer = Freq; | |
538 } | |
539 | |
533 std::string | 540 std::string |
534 BlockFrequencyInfoImplBase::getBlockName(const BlockNode &Node) const { | 541 BlockFrequencyInfoImplBase::getBlockName(const BlockNode &Node) const { |
535 return std::string(); | 542 return std::string(); |
536 } | 543 } |
537 std::string | 544 std::string |