- Jun 15, 2009
-
-
Dan Gohman authored
llvm-svn: 73362
-
Dan Gohman authored
they contain multiplications of constants with add operations. This helps simplify several kinds of things; in particular it helps simplify expressions like ((-1 * (%a + %b)) + %a) to %b, as expressions like this often come up in loop trip count computations. llvm-svn: 73361
-
Dan Gohman authored
used as keys in DenseMaps. llvm-svn: 73360
-
Dan Gohman authored
the potentially expensive erase. llvm-svn: 73359
-
Dan Gohman authored
even though the order doesn't matter at the top level of an expression, it does matter when the constant is a subexpression of an n-ary expression, because n-ary expressions are sorted lexicographically. llvm-svn: 73358
-
Dan Gohman authored
SmallVector instead of std::vector. llvm-svn: 73357
-
Eli Friedman authored
like "int x = + +3;". llvm-svn: 73356
-
Dan Gohman authored
llvm-svn: 73355
-
Duncan Sands authored
llvm-svn: 73353
-
- Jun 14, 2009
-
-
Eli Friedman authored
static intializers for structs. llvm-svn: 73349
-
Evan Cheng authored
Move register allocation preference (or hint) from LiveInterval to MachineRegisterInfo. This allows more passes to set them. llvm-svn: 73346
-
Fariborz Jahanian authored
Patch by Jean-Daniel Dupas llvm-svn: 73343
-
Torok Edwin authored
llvm-svn: 73342
-
Nuno Lopes authored
llvm-svn: 73341
-
Owen Anderson authored
is that, for functions whose bodies are entirely guarded by an if-statement, it can be profitable to pull the test out of the callee and into the caller. This code has had some cursory testing, but still has a number of known issues on the LLVM test suite. llvm-svn: 73338
-
Douglas Gregor authored
that were suppressed due to SFINAE. By checking whether any errors occur at the end of template argument deduction, we avoid the possibility of suppressing an error (due to SFINAE) and then recovering so well that template argument deduction never detects that there was a problem. Thanks to Eli for the push in this direction. llvm-svn: 73336
-
Bruno Cardoso Lopes authored
Introduce new BinaryObject (blob) class, ELF Writer modified to use it. BinaryObject.h by Aaron Gray llvm-svn: 73333
-
Douglas Gregor authored
Implement support for C++ Substitution Failure Is Not An Error (SFINAE), which says that errors that occur during template argument deduction do *not* produce diagnostics and do not necessarily make a program ill-formed. Instead, template argument deduction silently fails. This is currently implemented for template argument deduction during matching of class template partial specializations, although the mechanism will also apply to template argument deduction for function templates. The scheme is simple: - If we are in a template argument deduction context, any diagnostic that is considered a SFINAE error (or warning) will be suppressed. The error will be propagated up the call stack via the normal means. - By default, all warnings and errors are SFINAE errors. Add the NoSFINAE class to a diagnostic in the .td file to make it a hard error (e.g., for access-control violations). Note that, to make this fully work, every place in Sema that emits an error *and then immediately recovers* will need to check Sema::isSFINAEContext() to determine whether it must immediately return an error rather than recovering. llvm-svn: 73332
-
Douglas Gregor authored
llvm-svn: 73331
-
Nick Lewycky authored
llvm-svn: 73323
-
Eli Friedman authored
foo has a constant address. llvm-svn: 73321
-
Shantonu Sen authored
llvm-svn: 73320
-
Chris Lattner authored
preprocessor and initialize it early in clang-cc. This ensures that __has_builtin works in all modes, not just when ASTContext is around. llvm-svn: 73319
-
Chris Lattner authored
fixes a layering violation in lib/Basic/Targets.cpp. llvm-svn: 73318
-
Chris Lattner authored
llvm-svn: 73317
-
Chris Lattner authored
llvm-svn: 73316
-
Chris Lattner authored
ExpectAndConsume instead of custom diag logic. This gets us an insertion hint and positions the ; at the end of the line instead of on the next token. Before: t.c:5:1: error: expected ';' after return statement } ^ after: t.c:4:11: error: expected ';' after return statement return 4 ^ ; llvm-svn: 73315
-
Chris Lattner authored
diagnostics in some cases. llvm-svn: 73314
-
Chris Lattner authored
the check for extern "c" system headers, which should prevent functiondecls from being mangled. llvm-svn: 73311
-
Chris Lattner authored
llvm-svn: 73310
-
- Jun 13, 2009
-
-
Eli Friedman authored
x86-32. This is slightly messy, but I think it's consistent with gcc. llvm-svn: 73306
-
Chris Lattner authored
warnings when building with VC++, patch by AlisdairM! llvm-svn: 73305
-
Chris Lattner authored
llvm-svn: 73304
-
Daniel Dunbar authored
llvm-svn: 73301
-
Daniel Dunbar authored
llvm-svn: 73300
-
Nick Lewycky authored
pointer. This fixes kimwitu++. Pointed out by Frits van Bommel on review! llvm-svn: 73299
-
Daniel Dunbar authored
- TestRunner.sh still needs to be moved over. - Please let me know if you find problems / missing features. llvm-svn: 73298
-
Anders Carlsson authored
Have CheckClassTemplatePartialSpecializationArgs take a TemplateArgumentListBuilder. No functionality change. llvm-svn: 73297
-
Chris Lattner authored
llvm-svn: 73296
-
Sanjiv Gupta authored
The subprogram descriptor for a function may be missing (llvm-ld linking two static functions with same name), so pick up the compilation unit for the function from the first valid debug loc of its instructions. This patch also emits debug info for structure (aggregate types in general) types. llvm-svn: 73295
-