diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-09-24 20:22:50 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-09-24 20:22:50 +0000 |
commit | ed17499ee7446c5da5638f6c4c34eea660808a3d (patch) | |
tree | 706a95e33cb48eb7e8b14c4f8597d7e5ee097026 /include | |
parent | 7f3103731c7d2ee3608f401031d0b9f785293e35 (diff) | |
download | external_llvm-ed17499ee7446c5da5638f6c4c34eea660808a3d.zip external_llvm-ed17499ee7446c5da5638f6c4c34eea660808a3d.tar.gz external_llvm-ed17499ee7446c5da5638f6c4c34eea660808a3d.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetInstrItineraries.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |