aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/CodeGen/MachineLoopInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/CodeGen/MachineLoopInfo.h')
-rw-r--r--llvm/include/llvm/CodeGen/MachineLoopInfo.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineLoopInfo.h b/llvm/include/llvm/CodeGen/MachineLoopInfo.h
index c7491d4191de..c90f07096d02 100644
--- a/llvm/include/llvm/CodeGen/MachineLoopInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineLoopInfo.h
@@ -110,8 +110,11 @@ public:
/// loop setup code. Code that cannot be speculated should not be placed
/// here. SpeculativePreheader is controlling whether it also tries to
/// find the speculative preheader if the regular preheader is not present.
- MachineBasicBlock *findLoopPreheader(MachineLoop *L,
- bool SpeculativePreheader = false) const;
+ /// With FindMultiLoopPreheader = false, nullptr will be returned if the found
+ /// preheader is the preheader of multiple loops.
+ MachineBasicBlock *
+ findLoopPreheader(MachineLoop *L, bool SpeculativePreheader = false,
+ bool FindMultiLoopPreheader = false) const;
/// The iterator interface to the top-level loops in the current function.
using iterator = LoopInfoBase<MachineBasicBlock, MachineLoop>::iterator;