forked from OSchip/llvm-project
				
			
							parent
							
								
									a9105be437
								
							
						
					
					
						commit
						09dd2496b7
					
				| 
						 | 
					@ -161,11 +161,11 @@ public:
 | 
				
			||||||
    bool isValid() const { return BreakDown && NumBreakDowns; }
 | 
					    bool isValid() const { return BreakDown && NumBreakDowns; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// Verify that this mapping makes sense for a value of
 | 
					    /// Verify that this mapping makes sense for a value of
 | 
				
			||||||
    /// \p MeaningFulBitWidth.
 | 
					    /// \p MeaningfulBitWidth.
 | 
				
			||||||
    /// \note This method does not check anything when assertions are disabled.
 | 
					    /// \note This method does not check anything when assertions are disabled.
 | 
				
			||||||
    ///
 | 
					    ///
 | 
				
			||||||
    /// \return True is the check was successful.
 | 
					    /// \return True is the check was successful.
 | 
				
			||||||
    bool verify(unsigned MeaningFulBitWidth) const;
 | 
					    bool verify(unsigned MeaningfulBitWidth) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// Print this on dbgs() stream.
 | 
					    /// Print this on dbgs() stream.
 | 
				
			||||||
    void dump() const;
 | 
					    void dump() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -523,7 +523,7 @@ void RegisterBankInfo::PartialMapping::print(raw_ostream &OS) const {
 | 
				
			||||||
    OS << "nullptr";
 | 
					    OS << "nullptr";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool RegisterBankInfo::ValueMapping::verify(unsigned MeaningFulBitWidth) const {
 | 
					bool RegisterBankInfo::ValueMapping::verify(unsigned MeaningfulBitWidth) const {
 | 
				
			||||||
  assert(NumBreakDowns && "Value mapped nowhere?!");
 | 
					  assert(NumBreakDowns && "Value mapped nowhere?!");
 | 
				
			||||||
  unsigned OrigValueBitWidth = 0;
 | 
					  unsigned OrigValueBitWidth = 0;
 | 
				
			||||||
  for (const RegisterBankInfo::PartialMapping &PartMap : *this) {
 | 
					  for (const RegisterBankInfo::PartialMapping &PartMap : *this) {
 | 
				
			||||||
| 
						 | 
					@ -535,7 +535,7 @@ bool RegisterBankInfo::ValueMapping::verify(unsigned MeaningFulBitWidth) const {
 | 
				
			||||||
    OrigValueBitWidth =
 | 
					    OrigValueBitWidth =
 | 
				
			||||||
        std::max(OrigValueBitWidth, PartMap.getHighBitIdx() + 1);
 | 
					        std::max(OrigValueBitWidth, PartMap.getHighBitIdx() + 1);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  assert(OrigValueBitWidth >= MeaningFulBitWidth &&
 | 
					  assert(OrigValueBitWidth >= MeaningfulBitWidth &&
 | 
				
			||||||
         "Meaningful bits not covered by the mapping");
 | 
					         "Meaningful bits not covered by the mapping");
 | 
				
			||||||
  APInt ValueMask(OrigValueBitWidth, 0);
 | 
					  APInt ValueMask(OrigValueBitWidth, 0);
 | 
				
			||||||
  for (const RegisterBankInfo::PartialMapping &PartMap : *this) {
 | 
					  for (const RegisterBankInfo::PartialMapping &PartMap : *this) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue