Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Match up anonymous structs/unions in the ASTImporter. Previously, we'd | Douglas Gregor | 2012-10-26 | 1 | -3/+101 | |
| | | | | | | | | only actually get the answer right if there was only a single anonymous struct/union at that level. This is part of <rdar://problem/11904570>; the test will go into LLDB itself. llvm-svn: 166781 | |||||
* | Add comments for RemoveRedundantMsgs, rename it to removeRedundantMsgs() per ↵ | Ted Kremenek | 2012-10-26 | 1 | -4/+13 | |
| | | | | | | Jordan's feedback. llvm-svn: 166778 | |||||
* | Eliminate some longstanding FIXMEs regarding variadic templates in the | Douglas Gregor | 2012-10-26 | 1 | -8/+2 | |
| | | | | | | ASTImporter. llvm-svn: 166777 | |||||
* | In the ASTImporter, don't try to emit a diagnostic if we're not | Douglas Gregor | 2012-10-26 | 1 | -120/+154 | |
| | | | | | | allowed to complain about a failure. llvm-svn: 166776 | |||||
* | Declare type of flags to be used in a __block (byref) | Fariborz Jahanian | 2012-10-26 | 1 | -0/+12 | |
| | | | | | | variable descriptor captured by a block. llvm-svn: 166746 | |||||
* | Oz optimization level sets ForceSizeOpt attribute for each function | Quentin Colombet | 2012-10-26 | 1 | -0/+2 | |
| | | | | llvm-svn: 166744 | |||||
* | X86 SSE Intrinsics: update header for sqrt_ss, rsqrt_ss and rcp_ss. | Manman Ren | 2012-10-26 | 1 | -3/+6 | |
| | | | | | | | There intrinsics pass through the upper FP values from the input. rdar://12558838 llvm-svn: 166743 | |||||
* | Recommit Eric's code to validate ASM string's constraints and modifiers. | Bill Wendling | 2012-10-25 | 2 | -0/+72 | |
| | | | | | | | | | | | | | This code checks the ASM string to see if the output size is able to fit within the variable specified as the output. For instance, scalar-to-vector conversions may not really work. It's on by default, but can be turned off with a flag if you think you know what you're doing. This is placed under a flag ('-Wasm-operand-widths') and flag group ('-Wasm'). <rdar://problem/12284092> llvm-svn: 166737 | |||||
* | Changing name of enum for block literal flags to represent | Fariborz Jahanian | 2012-10-25 | 1 | -3/+3 | |
| | | | | | | what it is meant for. llvm-svn: 166734 | |||||
* | TrackConstraintBRVisitor and ConditionBRVisitor can emit similar | Ted Kremenek | 2012-10-25 | 2 | -8/+94 | |
| | | | | | | | | | | | | path notes for cases where a value may be assumed to be null, etc. Instead of having redundant diagnostics, do a pass over the generated PathDiagnostic pieces and remove notes from TrackConstraintBRVisitor that are already covered by ConditionBRVisitor, whose notes tend to be better. Fixes <rdar://problem/12252783> llvm-svn: 166728 | |||||
* | [ms-inline asm] Add support for field lookup in the SemaCallback. Patch by Eli. | Chad Rosier | 2012-10-25 | 1 | -0/+50 | |
| | | | | llvm-svn: 166723 | |||||
* | Add some new types in preparation of encoding of captured block variable | Fariborz Jahanian | 2012-10-25 | 1 | -0/+69 | |
| | | | | | | layout meta-data work. wip. llvm-svn: 166717 | |||||
* | CommentDumper: reorder members and add a comment. | Dmitri Gribenko | 2012-10-25 | 1 | -6/+7 | |
| | | | | llvm-svn: 166705 | |||||
* | Provide comment describing what buildBlockDescriptor does. | Fariborz Jahanian | 2012-10-25 | 1 | -1/+12 | |
| | | | | llvm-svn: 166703 | |||||
* | Cleanup some clang code to use new type functions instead of using cast<>. | Micah Villmow | 2012-10-25 | 6 | -24/+16 | |
| | | | | llvm-svn: 166684 | |||||
* | Modify the targets to set appropriate calling convention defaults and C ↵ | David Tweed | 2012-10-25 | 2 | -6/+8 | |
| | | | | | | | | variables when using a gnueabihf or aapcs-vfp target. Tested by me and Wei-Ren Chen. llvm-svn: 166679 | |||||
* | Initialize debug info for special cases of functions that lack declarations ↵ | Alexey Samsonov | 2012-10-25 | 4 | -7/+36 | |
| | | | | | | and are generated by Clang (global initializers/destructors, thunks) . Fixes PR13942. llvm-svn: 166676 | |||||
* | -fcatch-undefined-behavior checking for appropriate vptr value: Clang ↵ | Richard Smith | 2012-10-25 | 4 | -12/+94 | |
| | | | | | | CodeGen side. llvm-svn: 166661 | |||||
* | Take into account that there may be a BOM at the beginning of the file, | Argyrios Kyrtzidis | 2012-10-25 | 1 | -3/+6 | |
| | | | | | | when computing the size of the precompiled preamble. llvm-svn: 166659 | |||||
* | Revert r166647 to rethink the patch... | Bill Wendling | 2012-10-25 | 2 | -71/+0 | |
| | | | | llvm-svn: 166655 | |||||
* | Remove the old predefines-buffer diffing code completely. It's been | Douglas Gregor | 2012-10-25 | 1 | -332/+1 | |
| | | | | | | | replaced by the more efficient, cleaner preprocessor-option version that occurs earlier in PCH validation. llvm-svn: 166654 | |||||
* | Fix computation of predefines buffer from the preprocessor-option | Douglas Gregor | 2012-10-25 | 1 | -10/+1 | |
| | | | | | | checking, and disable the old predefines-buffer-diff'ing code path. llvm-svn: 166653 | |||||
* | When we're devirtualizing a method call, make sure the method has the ↵ | Eli Friedman | 2012-10-25 | 1 | -7/+7 | |
| | | | | | | | | correct IR type. Reported in the thread "devirtualisation appears to crash clang on covariant functions on ARM" on cfe-dev. llvm-svn: 166651 | |||||
* | ASTUnit doesn't actually care about the predefines; don't record them. | Douglas Gregor | 2012-10-25 | 1 | -18/+2 | |
| | | | | llvm-svn: 166650 | |||||
* | The the preprocessor option validator to compute suggested | Douglas Gregor | 2012-10-25 | 1 | -14/+72 | |
| | | | | | | | predefines. We're not quite ready to cut over to these suggested predefines yet, however. llvm-svn: 166648 | |||||
* | Add some support for diagnosing possibly mismatched constraint, type size and | Bill Wendling | 2012-10-25 | 2 | -0/+71 | |
| | | | | | | | modifiers. (From an idea by Eric...) <rdar://problem/12284092> llvm-svn: 166647 | |||||
* | 'constexpr' and 'friend' are both declaration specifiers. Teach the parser ↵ | Richard Smith | 2012-10-25 | 1 | -3/+5 | |
| | | | | | | this, for better error recovery. llvm-svn: 166645 | |||||
* | PR14171: Don't crash if we hit one of the paths where GetFullTypeForDeclarator | Richard Smith | 2012-10-24 | 1 | -0/+15 | |
| | | | | | | rebuilds a function type, and that function type has parens around its name. llvm-svn: 166644 | |||||
* | Teach the PCH validator to check the preprocessor options, especially | Douglas Gregor | 2012-10-24 | 3 | -7/+131 | |
| | | | | | | | | | | | | | | | the macros that are #define'd or #undef'd on the command line. This checking happens much earlier than the current macro-definition checking and is far cleaner, because it does a direct comparison rather than a diff of the predefines buffers. Moreover, it allows us to use the result of this check to skip over PCH files within a directory that have non-matching -D's or -U's on the command line. Finally, it improves the diagnostics a bit for mismatches, fixing <rdar://problem/8612222>. The old predefines-buffer diff'ing will go away in a subsequent commit. llvm-svn: 166641 | |||||
* | Fix false positive in -Wunused-variable when a ctor call make involve cleanups. | David Blaikie | 2012-10-24 | 1 | -0/+2 | |
| | | | | llvm-svn: 166625 | |||||
* | Don't print scope qualifiers for references to a type defined locally in a ↵ | Eli Friedman | 2012-10-24 | 1 | -0/+1 | |
| | | | | | | function. Patch by Grzegorz Jablonski. llvm-svn: 166617 | |||||
* | (De-)serialize the preprocessor options, including macros defined, | Douglas Gregor | 2012-10-24 | 2 | -3/+75 | |
| | | | | | | -include'd files, etc. llvm-svn: 166614 | |||||
* | Teach the preprocessor to hold onto the preprocessor options. | Douglas Gregor | 2012-10-24 | 3 | -4/+10 | |
| | | | | llvm-svn: 166599 | |||||
* | Move PreprocessorOptions into the Lex library, and make it intrusively | Douglas Gregor | 2012-10-24 | 3 | -4/+6 | |
| | | | | | | reference-counted. llvm-svn: 166587 | |||||
* | (De-)serialize header search options. | Douglas Gregor | 2012-10-24 | 2 | -2/+101 | |
| | | | | llvm-svn: 166586 | |||||
* | Move HeaderSearchOptions into the Lex library, make it intrusively | Douglas Gregor | 2012-10-24 | 5 | -7/+15 | |
| | | | | | | reference-counted, and hold a reference to it in HeaderSearch. llvm-svn: 166583 | |||||
* | (De-)serialize the file system options. | Douglas Gregor | 2012-10-24 | 2 | -1/+27 | |
| | | | | llvm-svn: 166577 | |||||
* | Serialize DiagnosticOptions to the AST file. | Douglas Gregor | 2012-10-24 | 2 | -0/+45 | |
| | | | | llvm-svn: 166572 | |||||
* | Removed an extra blank line. | Mahesha S | 2012-10-24 | 1 | -1/+0 | |
| | | | | llvm-svn: 166571 | |||||
* | Adds the possibility to run ASTMatchFinder over arbitrary AST nodes. | Manuel Klimek | 2012-10-24 | 1 | -0/+12 | |
| | | | | llvm-svn: 166567 | |||||
* | Remove the HiddenWeakTemplateVTables CodeGen option. It's currently unused. | Douglas Gregor | 2012-10-24 | 2 | -5/+2 | |
| | | | | llvm-svn: 166561 | |||||
* | Clang now attempts to create a TargetMachine whenever a triple is given. | Nadav Rotem | 2012-10-24 | 1 | -8/+17 | |
| | | | | | | | | Many of our tests specify triples that are not built into clang. In this commit we allow clang to fail loading the triple if we are only using clang to emit llvm ir. llvm-svn: 166543 | |||||
* | Add padding inreg registers to cause llvm to skip ecx when needed with | Rafael Espindola | 2012-10-24 | 3 | -33/+62 | |
| | | | | | | the x86_fastcallcc calling convention. llvm-svn: 166538 | |||||
* | Add inreg markers with the x86_fastcallcc calling convention. | Rafael Espindola | 2012-10-24 | 1 | -10/+39 | |
| | | | | llvm-svn: 166537 | |||||
* | Address feedback from Eli Friedman on r166522. | Matt Beaumont-Gay | 2012-10-24 | 1 | -4/+4 | |
| | | | | | | | In particular, we do want to warn on some unused cast subexpressions within macros. llvm-svn: 166534 | |||||
* | Change EmitAssemblyHelper to create the target machine early | Nadav Rotem | 2012-10-24 | 1 | -17/+49 | |
| | | | | | | | | | and use it to initialize the TargetTransformInfo analysis pass. We need the TTI information for the loop vectorizer. rdar://12464901 llvm-svn: 166532 | |||||
* | [analyzer] Handle 'SomeVar.SomeEnumConstant', which is legal in C++. | Jordan Rose | 2012-10-23 | 1 | -7/+7 | |
| | | | | | | | | This caused assertion failures analyzing LLVM. <rdar://problem/12560282> llvm-svn: 166529 | |||||
* | [analyzer] Replace -analyzer-no-eagerly-trim-egraph with graph-trim-interval. | Jordan Rose | 2012-10-23 | 4 | -13/+17 | |
| | | | | | | | | | | | | | After every 1000 CFGElements processed, the ExplodedGraph trims out nodes that satisfy a number of criteria for being "boring" (single predecessor, single successor, and more). Rather than controlling this with a cc1 option, which can only disable this behavior, we now have an analyzer-config option, 'graph-trim-interval', which can change this interval from 1000 to something else. Setting the value to 0 disables reclamation. The next commit relies on this behavior to actually test anything. llvm-svn: 166528 | |||||
* | Don't emit -Wunused-value warnings from macro expansions. | Matt Beaumont-Gay | 2012-10-23 | 1 | -0/+4 | |
| | | | | llvm-svn: 166522 | |||||
* | Use a .def file for most of the diagnostic options. | Douglas Gregor | 2012-10-23 | 6 | -16/+15 | |
| | | | | llvm-svn: 166520 |