- Feb 22, 2012
-
-
Sirish Pande authored
llvm-svn: 151166
-
Alexey Samsonov authored
llvm-svn: 151165
-
David Greene authored
Add some data structures to represent for loops. These will be referenced during object processing to do any needed iteration and instantiation. Add foreach keyword support to the lexer. Add a mode to indicate that we're parsing a foreach loop. This allows the value parser to early-out when processing the foreach value list. Add a routine to parse foreach iteration declarations. This is separate from ParseDeclaration because the type of the named value (the iterator) doesn't match the type of the initializer value (the value list). It also needs to add two values to the foreach record: the iterator and the value list. Add parsing support for foreach. Add the code to process foreach loops and create defs based on iterator values. Allow foreach loops to be matched at the top level. When parsing an IDValue check if it is a foreach loop iterator for one of the active loops. If so, return a VarInit for it. Add Emacs keyword support for foreach. Add VIM keyword support for foreach. Add tests to check foreach operation. Add TableGen documentation for foreach. Support foreach with multiple objects. Support non-braced foreach body with one object. Do not require types for the foreach declaration. Assume the iterator type from the iteration list element type. llvm-svn: 151164
-
Jakob Stoklund Olesen authored
llvm-svn: 151163
-
Alexey Samsonov authored
llvm-svn: 151162
-
Timur Iskhodzhanov authored
llvm-svn: 151161
-
Benjamin Kramer authored
llvm-svn: 151160
-
Alexey Samsonov authored
llvm-svn: 151159
-
Evgeniy Stepanov authored
Some platforms do not define pthread_t in stdlib.h. llvm-svn: 151158
-
Alexey Samsonov authored
llvm-svn: 151157
-
Chandler Carruth authored
chip in r139383, and the PSP components of the triple are really annoying to parse. Let's leave this chapter behind. There is no reason to expect LLVM to see a PSP-related triple these days, and so no reasonable motivation to support them. It might be reasonable to prune a few of the older MIPS triple forms in general, but as those at least cause no burden on parsing (they aren't both a chip and an OS!), I'm happy to leave them in for now. llvm-svn: 151156
-
Sebastian Redl authored
Fix parsing and processing initializer lists in return statements and as direct member initializers. llvm-svn: 151155
-
Hans Wennborg authored
This adds the -Wformat-non-standard flag (off by default, enabled by -pedantic), which warns about non-standard things in format strings (such as the 'q' length modifier, the 'S' conversion specifier, etc.) llvm-svn: 151154
-
Bill Wendling authored
llvm-svn: 151152
-
Bill Wendling authored
llvm-svn: 151151
-
Bill Wendling authored
llvm-svn: 151150
-
Timur Iskhodzhanov authored
llvm-svn: 151149
-
Evgeniy Stepanov authored
mach_override has been moved to a different path. sysinfo is gone. llvm-svn: 151148
-
Alexander Potapenko authored
Define AsanDumpProcessMaps as unimplemented on Windows. This should fix the Windows build. llvm-svn: 151147
-
Sebastian Redl authored
I think there's a deeper problem here in the way TransformCXXConstructExpr works, but I won't tackle it now. llvm-svn: 151146
-
Timur Iskhodzhanov authored
llvm-svn: 151145
-
Eric Christopher authored
Worth another 45k (1%) off of a large C++ testcase. rdar://10909458 llvm-svn: 151144
-
Eric Christopher authored
llvm-svn: 151143
-
Eric Christopher authored
llvm-svn: 151142
-
Alexander Potapenko authored
llvm-svn: 151141
-
Francois Pichet authored
In -fdelayed-template-parsing mode, reenter every scope when late parsing a templated function; (Not just the template parameter scope as previously). Also enter the scope stack in the correct order. Otherwise this breaks some invariant during name lookup especially when dealing with shadowed declaration Fix PR11931. llvm-svn: 151140
-
Alexander Potapenko authored
llvm-svn: 151139
-
Craig Topper authored
Declare register classes as const. Fix a couple pointers to register classes that weren't already const. llvm-svn: 151138
-
Richard Smith authored
the diagnostic for using a parenthesized direct-initializer in a condition. llvm-svn: 151137
-
Andrew Trick authored
The vast majority of virtual register definitions don't need an entry in the DAG builder's VRegDefs set. llvm-svn: 151136
-
Andrew Trick authored
Affect on SD scheduling and postRA scheduling: Printing the DAG will display the nodes in top-down topological order. This matches the order within the MBB and makes my life much easier in general. Affect on misched: We don't need to track virtual register uses at all. This is awesome. I also intend to rely on the SUnit ID as a topo-sort index. So if A < B then we cannot have an edge B -> A. llvm-svn: 151135
-
Craig Topper authored
Make all pointers to TargetRegisterClass const since they are all pointers to static data that should not be modified. llvm-svn: 151134
-
-
Dave Zarzycki authored
llvm-svn: 151132
-
Douglas Gregor authored
block pointer that returns a block literal which captures (by copy) the lambda closure itself. Some aspects of the block literal are left unspecified, namely the capture variable (which doesn't actually exist) and the body (which will be filled in by IRgen because it can't be written as an AST). Because we're switching to this model, this patch also eliminates tracking the copy-initialization expression for the block capture of the conversion function, since that information is now embedded in the synthesized block literal. -1 side tables FTW. llvm-svn: 151131
-
Eli Friedman authored
Improve diagnostics a bit for bad member initializers, and fix an obscure bug involving packs. Fixes PR12049. llvm-svn: 151130
-
Peter Collingbourne authored
llvm-svn: 151129
-
Greg Clayton authored
to the __PAGEZERO segment on darwin. The dynamic loader now correctly doesn't slide __PAGEZERO and it also registers it as an invalid region of memory. This allows us to not make any memory requests from the local or remote debug session for any addresses in this region. Stepping performance can improve when uninitialized local variables that point to locations in __PAGEZERO are attempted to be read from memory as we won't even make the memory read or write request. llvm-svn: 151128
-
Rafael Espindola authored
llvm-svn: 151127
-
NAKAMURA Takumi authored
llvm-svn: 151126
-