diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-04-23 20:01:22 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-04-23 20:01:22 +0000 |
| commit | dc88bd6e1fc483d6927604e6b2dc58f9d4d06316 (patch) | |
| tree | 9963b5030c58af2b3510fde489e4b99baeed8d93 /llvm/include | |
| parent | 179d1f5dadbbd4a338ea7c5954bb917ca043b99b (diff) | |
| download | bcm5719-llvm-dc88bd6e1fc483d6927604e6b2dc58f9d4d06316.tar.gz bcm5719-llvm-dc88bd6e1fc483d6927604e6b2dc58f9d4d06316.zip | |
replace duplicated static functions for profile metadata access with BranchInst member function; NFCI
llvm-svn: 267295
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/IR/Instructions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h index 63175ed8b3f..312541c1d83 100644 --- a/llvm/include/llvm/IR/Instructions.h +++ b/llvm/include/llvm/IR/Instructions.h @@ -2906,6 +2906,10 @@ public: /// continues to map correctly to each operand. void swapSuccessors(); + /// Retrieve the probabilities of a conditional branch. Returns true on + /// success, or returns false if no or invalid metadata was found. + bool extractProfMetadata(uint64_t &ProbTrue, uint64_t &ProbFalse); + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const Instruction *I) { return (I->getOpcode() == Instruction::Br); |

