From ed17499ee7446c5da5638f6c4c34eea660808a3d Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 24 Sep 2009 20:22:50 +0000 Subject: Make the end-of-itinerary mark explicit. Some cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82709 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetInstrItineraries.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/llvm/Target/TargetInstrItineraries.h b/include/llvm/Target/TargetInstrItineraries.h index 0e4ca98..420fa94 100644 --- a/include/llvm/Target/TargetInstrItineraries.h +++ b/include/llvm/Target/TargetInstrItineraries.h @@ -104,6 +104,14 @@ struct InstrItineraryData { /// bool isEmpty() const { return Itineratries == 0; } + /// isEndMarker - Returns true if the index is for the end marker + /// itinerary. + /// + bool isEndMarker(unsigned ItinClassIndx) const { + return ((Itineratries[ItinClassIndx].FirstStage == ~0U) && + (Itineratries[ItinClassIndx].LastStage == ~0U)); + } + /// beginStage - Return the first stage of the itinerary. /// const InstrStage *beginStage(unsigned ItinClassIndx) const { -- cgit v1.1