eb2a25467e 
								
							 
						 
						
							
							
								
								Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment.  
							
							... 
							
							
							
							clang part in r259232, this is the LLVM part of the patch.
llvm-svn: 259240 
							
						 
						
							2016-01-29 20:50:44 +00:00  
				
					
						
							
							
								 
						
							
								5e46adb09a 
								
							 
						 
						
							
							
								
								[TableGen] Use FoldingSets instead of DenseMaps to unique UnOpInit, BinOpInit and TernOpInit. This remove the memory needed to store the key for the DenseMap. NFC  
							
							... 
							
							
							
							llvm-svn: 258071 
							
						 
						
							2016-01-18 20:36:06 +00:00  
				
					
						
							
							
								 
						
							
								7dcb1a5c89 
								
							 
						 
						
							
							
								
								[TableGen] Fix an assert I missed in r258063.  
							
							... 
							
							
							
							llvm-svn: 258068 
							
						 
						
							2016-01-18 19:59:05 +00:00  
				
					
						
							
							
								 
						
							
								0e41d0b963 
								
							 
						 
						
							
							
								
								[TableGen] Merge the SuperClass Record and SMRange vector into a single vector. This removes the state needed to manage the extra vector thus reducing the size of the Record class. NFC  
							
							... 
							
							
							
							llvm-svn: 258065 
							
						 
						
							2016-01-18 19:52:37 +00:00  
				
					
						
							
							
								 
						
							
								fbfd578056 
								
							 
						 
						
							
							
								
								[TableGen] Allocate the Init pointer array for BitsInit/ListInit after the BitsInit/ListInit object itself. Saves a bit of memory. NFC  
							
							... 
							
							
							
							llvm-svn: 258063 
							
						 
						
							2016-01-18 19:52:24 +00:00  
				
					
						
							
							
								 
						
							
								5a6dda5376 
								
							 
						 
						
							
							
								
								[TableGen] Use some free space in Init to store the opcode for UnOpInit/BinOpInit/TernOpInit allowing those types to be a little smaller. NFC  
							
							... 
							
							
							
							llvm-svn: 256733 
							
						 
						
							2016-01-04 06:28:49 +00:00  
				
					
						
							
							
								 
						
							
								7ecf8c22cf 
								
							 
						 
						
							
							
								
								[TblGen] ArrayRefize TGParser. No functional change intended.  
							
							... 
							
							
							
							llvm-svn: 251186 
							
						 
						
							2015-10-24 12:46:45 +00:00  
				
					
						
							
							
								 
						
							
								a7bc7db53c 
								
							 
						 
						
							
							
								
								TableGen: Support folding casts from bits to int  
							
							... 
							
							
							
							This is to fix an incorrect error when trying to initialize
DwarfNumbers with a !cast<int> of a bits initializer.
getValuesAsListOfInts("DwarfNumbers") would not see an IntInit
and instead the cast, so would give up.
It seems likely that this could be generalized to attempt
the convertInitializerTo for any type. I'm not really sure
why the existing code seems to special case the string cast cases
when convertInitializerTo seems like it should generally handle this
sort of thing.
llvm-svn: 243722 
							
						 
						
							2015-07-31 01:12:06 +00:00  
				
					
						
							
							
								 
						
							
								d26d2d9a50 
								
							 
						 
						
							
							
								
								[TableGen] Change a couple methods to return an ArrayRef instead of a const std::vector reference. NFC  
							
							... 
							
							
							
							llvm-svn: 241430 
							
						 
						
							2015-07-06 06:23:01 +00:00  
				
					
						
							
							
								 
						
							
								a60ee86f60 
								
							 
						 
						
							
							
								
								[TableGen] Restore the use of the TheInit field in Record to cache the Record's DefInit. I broke this when I fixed memory leaks recently. Remove the DenseMap that mapped Record's to DefInit.  
							
							... 
							
							
							
							llvm-svn: 240524 
							
						 
						
							2015-06-24 06:19:19 +00:00  
				
					
						
							
							
								 
						
							
								f4b449cec2 
								
							 
						 
						
							
							
								
								[TableGen] Change OpInit::getNumOperands and getOperand to use unsigned integers. NFC  
							
							... 
							
							
							
							llvm-svn: 239210 
							
						 
						
							2015-06-06 01:34:04 +00:00  
				
					
						
							
							
								 
						
							
								1af1566ce6 
								
							 
						 
						
							
							
								
								[TableGen] Remove trailing whitespace, add space between 'if' and paren, other formatting fixes. NFC  
							
							... 
							
							
							
							llvm-svn: 239209 
							
						 
						
							2015-06-06 01:34:01 +00:00  
				
					
						
							
							
								 
						
							
								5a2dfdcd20 
								
							 
						 
						
							
							
								
								[TableGen] Remove unnecessary temporary. NFC  
							
							... 
							
							
							
							llvm-svn: 239208 
							
						 
						
							2015-06-06 01:34:00 +00:00  
				
					
						
							
							
								 
						
							
								5904beb666 
								
							 
						 
						
							
							
								
								[TableGen] Fold variable declaration/initialization into if condition for a couple short lived variables. NFC  
							
							... 
							
							
							
							llvm-svn: 239207 
							
						 
						
							2015-06-06 01:33:58 +00:00  
				
					
						
							
							
								 
						
							
								daf263de84 
								
							 
						 
						
							
							
								
								[TableGen] Remove unnecessary outer 'if' and merge it's conditions into the inner 'if's. NFC  
							
							... 
							
							
							
							llvm-svn: 239206 
							
						 
						
							2015-06-06 01:33:55 +00:00  
				
					
						
							
							
								 
						
							
								25a849ca02 
								
							 
						 
						
							
							
								
								[TableGen] Fold variable declarations with their assignments. NFC  
							
							... 
							
							
							
							llvm-svn: 239205 
							
						 
						
							2015-06-06 00:44:45 +00:00  
				
					
						
							
							
								 
						
							
								5ec17246a2 
								
							 
						 
						
							
							
								
								[TableGen] Use range-based for loops. NFC  
							
							... 
							
							
							
							llvm-svn: 239022 
							
						 
						
							2015-06-04 07:40:14 +00:00  
				
					
						
							
							
								 
						
							
								b849203c94 
								
							 
						 
						
							
							
								
								[TableGen] Merge single prefix bit in RecordVal into PointerIntPair with Name to reduce memory usage.  
							
							... 
							
							
							
							llvm-svn: 239021 
							
						 
						
							2015-06-04 07:40:12 +00:00  
				
					
						
							
							
								 
						
							
								664f6a0405 
								
							 
						 
						
							
							
								
								[TableGen] Rename ListInit::getSize to just 'size' to be more consistent.  
							
							... 
							
							
							
							llvm-svn: 238806 
							
						 
						
							2015-06-02 04:15:57 +00:00  
				
					
						
							
							
								 
						
							
								ef0578a8cb 
								
							 
						 
						
							
							
								
								[TableGen] Use range-based for loops. NFC.  
							
							... 
							
							
							
							llvm-svn: 238805 
							
						 
						
							2015-06-02 04:15:51 +00:00  
				
					
						
							
							
								 
						
							
								6548196c6f 
								
							 
						 
						
							
							
								
								[TableGen] Move a couple virtual methods out of line so vtable anchors can be removed. NFC  
							
							... 
							
							
							
							llvm-svn: 238727 
							
						 
						
							2015-06-01 06:44:18 +00:00  
				
					
						
							
							
								 
						
							
								15864f1518 
								
							 
						 
						
							
							
								
								[TableGen] Merge RecTy::typeIsConvertibleTo and RecTy::baseClassOf. NFC  
							
							... 
							
							
							
							typeIsConvertibleTo was just calling baseClassOf(this) on the argument passed to it, but there weren't different signatures for baseClassOf so passing 'this' didn't really do anything interesting. typeIsConvertibleTo could have just been a non-virtual method in RecTy. But since that would be kind of a silly method, I instead re-distributed the logic from baseClassOf into typeIsConvertibleTo.
llvm-svn: 238648 
							
						 
						
							2015-05-30 07:36:01 +00:00  
				
					
						
							
							
								 
						
							
								9581906983 
								
							 
						 
						
							
							
								
								[TableGen] Remove all the variations of RecTy::convertValue and just handle the conversions in convertInitializerTo directly. This saves a bunch of vtable entries. NFC  
							
							... 
							
							
							
							llvm-svn: 238646 
							
						 
						
							2015-05-30 07:34:51 +00:00  
				
					
						
							
							
								 
						
							
								2af5e6fbf9 
								
							 
						 
						
							
							
								
								[TableGen] Remove convertValue functions for UnOpInit, BinOpInit, and TernOpInit as they weren't able to be called.  
							
							... 
							
							
							
							I don't think converting the inputs to the Ops was the right behavior anyway.
llvm-svn: 238543 
							
						 
						
							2015-05-29 05:51:32 +00:00  
				
					
						
							
							
								 
						
							
								85693aeb43 
								
							 
						 
						
							
							
								
								[TableGen] Use DefInit::getAsString instead of getDef()->getName(). NFC  
							
							... 
							
							
							
							llvm-svn: 238399 
							
						 
						
							2015-05-28 06:38:32 +00:00  
				
					
						
							
							
								 
						
							
								2a8d4b294c 
								
							 
						 
						
							
							
								
								[TableGen] Don't convert types to strings to query what they are. Just use 'isa'  
							
							... 
							
							
							
							llvm-svn: 238398 
							
						 
						
							2015-05-28 06:38:28 +00:00  
				
					
						
							
							
								 
						
							
								259d0c1605 
								
							 
						 
						
							
							
								
								[TableGen] Make some variable names consistent with their type names and just generally consistent across all of the overloads.  
							
							... 
							
							
							
							llvm-svn: 237775 
							
						 
						
							2015-05-20 05:40:13 +00:00  
				
					
						
							
							
								 
						
							
								a74f986aa3 
								
							 
						 
						
							
							
								
								[TableGen] Fix a memory leak.  
							
							... 
							
							
							
							llvm-svn: 237774 
							
						 
						
							2015-05-20 05:40:09 +00:00  
				
					
						
							
							
								 
						
							
								41ce4de0b4 
								
							 
						 
						
							
							
								
								[TableGen] Change 'car' to 'head' and 'cdr' to 'tail' in assert comments. These were the old names for these operations long ago. NFC  
							
							... 
							
							
							
							llvm-svn: 237514 
							
						 
						
							2015-05-16 05:42:13 +00:00  
				
					
						
							
							
								 
						
							
								8ddb0d825d 
								
							 
						 
						
							
							
								
								[TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.  
							
							... 
							
							
							
							llvm-svn: 237513 
							
						 
						
							2015-05-16 05:42:11 +00:00  
				
					
						
							
							
								 
						
							
								6ee494b677 
								
							 
						 
						
							
							
								
								[TableGen] Restructure a loop to make it exit early instead of skipping a portion of the body based on what will also be the terminating condition. NFC  
							
							... 
							
							
							
							llvm-svn: 237511 
							
						 
						
							2015-05-16 05:42:03 +00:00  
				
					
						
							
							
								 
						
							
								1a9ca774b6 
								
							 
						 
						
							
							
								
								TableGen: Avoid undefined behaviour by doing this shift in int64  
							
							... 
							
							
							
							Found by ubsan. This was taking a bool and left shifting by 32 - the
result is 64 bit, so we should really do the math in a type it fits
in.
llvm-svn: 237345 
							
						 
						
							2015-05-14 06:47:02 +00:00  
				
					
						
							
							
								 
						
							
								b1846a352e 
								
							 
						 
						
							
							
								
								[TableGen] Remove an unnecessary outer 'if' around 3 separate inner ifs. No functional change intended.  
							
							... 
							
							
							
							The outer if had 3 separate conditions ORed together and then the inner ifs detected which of the three conditions it was by using only a portion of the specific condition. Just put the whole condition in each inner if and remove the outer if.
llvm-svn: 237343 
							
						 
						
							2015-05-14 05:54:02 +00:00  
				
					
						
							
							
								 
						
							
								42467f25e4 
								
							 
						 
						
							
							
								
								[TableGen] Simplify some code. NFC  
							
							... 
							
							
							
							llvm-svn: 237342 
							
						 
						
							2015-05-14 05:53:59 +00:00  
				
					
						
							
							
								 
						
							
								ec9072d661 
								
							 
						 
						
							
							
								
								[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it was just comparing to 0. NFC.  
							
							... 
							
							
							
							llvm-svn: 237340 
							
						 
						
							2015-05-14 05:53:53 +00:00  
				
					
						
							
							
								 
						
							
								607ac92dcb 
								
							 
						 
						
							
							
								
								Use ArrayRef::slice instead of manually constructing an ArrayRef from ArrayRef iterators. NFC  
							
							... 
							
							
							
							llvm-svn: 237231 
							
						 
						
							2015-05-13 06:57:51 +00:00  
				
					
						
							
							
								 
						
							
								a0ff540b7e 
								
							 
						 
						
							
							
								
								Remove unnecessary variables by folding calls into for loop header. NFC.  
							
							... 
							
							
							
							llvm-svn: 237090 
							
						 
						
							2015-05-12 05:25:10 +00:00  
				
					
						
							
							
								 
						
							
								23fdafe682 
								
							 
						 
						
							
							
								
								[TableGen] Replace 'static_cast' with 'cast'.  
							
							... 
							
							
							
							llvm-svn: 236398 
							
						 
						
							2015-05-04 01:35:42 +00:00  
				
					
						
							
							
								 
						
							
								a9642b4ec8 
								
							 
						 
						
							
							
								
								[TableGen] Formatting cleanup. Mostly removing trailing whitespace and unnecessary curly braces. NFC  
							
							... 
							
							
							
							llvm-svn: 236397 
							
						 
						
							2015-05-04 01:35:39 +00:00  
				
					
						
							
							
								 
						
							
								85c07007ea 
								
							 
						 
						
							
							
								
								[TableGen] Cleanup formatting by moving operators from beginning of line to end of previous line. NFC  
							
							... 
							
							
							
							llvm-svn: 236206 
							
						 
						
							2015-04-30 05:54:22 +00:00  
				
					
						
							
							
								 
						
							
								9ed595e41d 
								
							 
						 
						
							
							
								
								[TableGen] Used range-based for loop. NFC.  
							
							... 
							
							
							
							llvm-svn: 236205 
							
						 
						
							2015-04-30 05:54:20 +00:00  
				
					
						
							
							
								 
						
							
								9ef76499b2 
								
							 
						 
						
							
							
								
								[TableGen] Merge a variable assignment and a return to drop curly braces. Fold an assignment into an if. Use auto on the result of a couple dyn_casts. NFC  
							
							... 
							
							
							
							llvm-svn: 236204 
							
						 
						
							2015-04-30 05:12:52 +00:00  
				
					
						
							
							
								 
						
							
								119998dbf1 
								
							 
						 
						
							
							
								
								[TableGen] Use range-based for loops. NFC.  
							
							... 
							
							
							
							llvm-svn: 236089 
							
						 
						
							2015-04-29 07:13:14 +00:00  
				
					
						
							
							
								 
						
							
								39ba33b8f0 
								
							 
						 
						
							
							
								
								[TableGen] Fold a couple dyn_casts into the ifs that check their results. NFC  
							
							... 
							
							
							
							llvm-svn: 236088 
							
						 
						
							2015-04-29 07:13:12 +00:00  
				
					
						
							
							
								 
						
							
								ed5a950808 
								
							 
						 
						
							
							
								
								[TableGen] Replace some dyn_casts followed by an assert with just a regular cast which asserts internally. NFC  
							
							... 
							
							
							
							llvm-svn: 236087 
							
						 
						
							2015-04-29 07:13:05 +00:00  
				
					
						
							
							
								 
						
							
								17b3a378c5 
								
							 
						 
						
							
							
								
								[TableGen] Fix all remaining memory leaks of Init and RecTy objects.  
							
							... 
							
							
							
							llvm-svn: 235696 
							
						 
						
							2015-04-24 05:38:48 +00:00  
				
					
						
							
							
								 
						
							
								1f429e4926 
								
							 
						 
						
							
							
								
								[TableGen] Use range based for loops.  
							
							... 
							
							
							
							llvm-svn: 235482 
							
						 
						
							2015-04-22 05:27:47 +00:00  
				
					
						
							
							
								 
						
							
								d05991304b 
								
							 
						 
						
							
							
								
								[TableGen] Remove some deletes that violate ownership semantics. These don't seem to execute in our codebase today and date back to a time when there was an allocation in this function.  
							
							... 
							
							
							
							llvm-svn: 235481 
							
						 
						
							2015-04-22 05:27:11 +00:00  
				
					
						
							
							
								 
						
							
								fe0cdf9899 
								
							 
						 
						
							
							
								
								[TableGen] Make BitRecTy::baseClassOf return true when RHS is an IntRecTy.  
							
							... 
							
							
							
							Previously the code was accidentally checking if 'this' was an IntRecTy which it can't be since 'this' is a BitRecTy. Looking back at the history it appears it was intended to check RHS.
llvm-svn: 235477 
							
						 
						
							2015-04-22 04:18:32 +00:00  
				
					
						
							
							
								 
						
							
								e8005f90f5 
								
							 
						 
						
							
							
								
								Don't use 'nullptr' in comment. Just use 'null'.  
							
							... 
							
							
							
							llvm-svn: 235476 
							
						 
						
							2015-04-22 04:18:27 +00:00