summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cost Model: Move the 'max unroll factor' variable to the TTI and add initial ↵Nadav Rotem2013-01-099-7/+89
| | | | | | Cost Model support on ARM. llvm-svn: 171928
* Add a getBundleEnd() function to go with the existing getBundleStart().Jakob Stoklund Olesen2013-01-092-7/+22
| | | | | | This is easier implemented now that bundle flags are symmetric. llvm-svn: 171927
* Add comment to the definition of Constant::isZeroValue(). Shuxin Yang2013-01-091-0/+2
| | | | | | | | (There already has a concise comment to the declaration.) Thank Eric Christopher for his feedback! llvm-svn: 171926
* When name lookup for a redeclaration finds declarations that are knownDouglas Gregor2013-01-094-0/+85
| | | | | | | | | | (because they are part of some module) but have not been made visible (because they are in a submodule that wasn't imported), filter out those declarations unless both the old declaration and the new declaration have external linkage. When one or both has internal linkage, there should be no conflict unless both are imported. llvm-svn: 171925
* Forgot the namespace identifier.Bill Wendling2013-01-091-2/+2
| | | | llvm-svn: 171924
* Add the integer value of the ConstantInt instead of the Constant* value.Bill Wendling2013-01-093-6/+408
| | | | | | This is causing some problems. The root cause is unknown at this time. llvm-svn: 171923
* Consider expression "0.0 - X" as the negation of X ifShuxin Yang2013-01-097-9/+35
| | | | | | | - this expression is explicitly marked no-signed-zero, or - no-signed-zero of this expression can be derived from some context. llvm-svn: 171922
* put back diagnostics when flexible members are capturedFariborz Jahanian2013-01-093-3/+10
| | | | | | in lambdas. llvm-svn: 171921
* Removed extra "`" from ARC documentation.Michael Gottesman2013-01-081-1/+1
| | | | llvm-svn: 171920
* [ms-inline asm] Add a test case for the offset operator where the operand is aChad Rosier2013-01-081-3/+6
| | | | | | global variable. llvm-svn: 171919
* add extra namespace for gcc-4.7 compatibilityNick Kledzik2013-01-081-41/+50
| | | | llvm-svn: 171918
* Fix typo (again).Fariborz Jahanian2013-01-081-1/+1
| | | | llvm-svn: 171917
* fix typoNick Kledzik2013-01-081-1/+1
| | | | llvm-svn: 171916
* Remove lambda from my last patch.Fariborz Jahanian2013-01-083-11/+3
| | | | llvm-svn: 171915
* Add an SBProcess API to get the current StopID, either considering or ↵Jim Ingham2013-01-086-2/+62
| | | | | | | | | | ignoring stops caused by expression evaluation. <rdar://problem/12968562> llvm-svn: 171914
* Fixes typo in comment.Fariborz Jahanian2013-01-081-1/+1
| | | | llvm-svn: 171913
* objectiveC blocks: It is impractical to capture Fariborz Jahanian2013-01-083-1/+31
| | | | | | | | struct variables with flexiable array members in blocks (and lambdas). Issue error instead of crashing in IRGen. // rdar://12655829 llvm-svn: 171912
* [lld] Add support for -mllvm.Michael J. Spencer2013-01-086-6/+47
| | | | | | | There is no way to test this at the moment because the options are not processed until the link starts, and we can't pass an empty file. llvm-svn: 171910
* [Driver] Fix indentation.Michael J. Spencer2013-01-081-45/+45
| | | | llvm-svn: 171909
* PR14855: don't silently swallow a nested-name-specifier after a type name.Richard Smith2013-01-082-1/+7
| | | | llvm-svn: 171908
* Clear LV cache when dropping availability attributes.Rafael Espindola2013-01-082-0/+9
| | | | llvm-svn: 171906
* Move the string pools down into the units. No functional change.Eric Christopher2013-01-082-22/+14
| | | | llvm-svn: 171905
* <rdar://problem/12976225>Han Ming Ong2013-01-086-6/+98
| | | | | | Checking in the support for doing index ids reservation when given a thread id. llvm-svn: 171904
* Simplify the code a bit: MCRelaxableFragment doesn't need a separate getInstSizeEli Bendersky2013-01-082-4/+2
| | | | | | | | | | method because getContents().size() already covers it. So computeFragmentSize can use the generic MCEncodedFragment interface when querying both Data and Relaxable fragments for contents sizes. No change in functionality llvm-svn: 171903
* Tighten types a bit. No functionality change.Rafael Espindola2013-01-083-15/+12
| | | | llvm-svn: 171902
* <rdar://problem/12586010>Greg Clayton2013-01-082-5/+4
| | | | | | | | Python OS plug-ins now fetch thread registers lazily. Also changed SBCommandInterpreter::HandleCommand() to not take the API lock. The logic here is that from the command line you can execute a command that might result in another thread (like the private process thread) to execute python or run any code that can re-enter the public API. When this happens, a deadlock immediately occurs for things like "process launch" and "process attach". llvm-svn: 171901
* Fixed comment typo.Greg Clayton2013-01-081-1/+1
| | | | llvm-svn: 171900
* Don't crash when trying to apply the availability attribute to a block.Rafael Espindola2013-01-082-2/+12
| | | | llvm-svn: 171899
* Rename YAML key 'fixups:' to 'references:'Nick Kledzik2013-01-0815-29/+29
| | | | llvm-svn: 171898
* Fix to work with style of new YAML writerNick Kledzik2013-01-081-6/+0
| | | | llvm-svn: 171897
* Fix memory leak in YAML I/O.Nick Kledzik2013-01-082-13/+43
| | | | | | | | Stop using BumpPtrAllocator for HNodes because they have fields (vector, map) which require HNode destructors to be run. llvm-svn: 171896
* Tighten types a bit. No functionality change.Rafael Espindola2013-01-082-3/+4
| | | | llvm-svn: 171895
* Tighten types a bit. No functionality change.Rafael Espindola2013-01-084-12/+12
| | | | llvm-svn: 171894
* Remove on-by-default warning from -Wmost.David Blaikie2013-01-081-1/+0
| | | | | | | | | -Wint-to-pointer-cast, added to match GCC's warning by the same name, doesn't need to be in any other groups (as it isn't in any groups in GCC either). Found in post-commit review by Ted Kremenek. llvm-svn: 171893
* Formatter: More tests for already-passing ObjC bits.Nico Weber2013-01-081-0/+4
| | | | llvm-svn: 171892
* [analyzer] Bump down the max size of functions being analyzed.Anna Zaks2013-01-081-1/+1
| | | | | | | | With the new setting, we are not going to inline any functions that are more than 50 basic blocks. (The analyzer is 20% faster on several especially bad benchmarks with the new default.) llvm-svn: 171891
* Don't break after unary operators.Daniel Jasper2013-01-082-3/+5
| | | | | | | | | | | | Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaa, * aaaaaaaaaaaaaaaaaaaaaaaaaaaaa); After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaa, *aaaaaaaaaaaaaaaaaaaaaaaaaaaaa); llvm-svn: 171890
* Move loop variable update.Rafael Espindola2013-01-081-2/+1
| | | | | | Thanks to Dmitri Gribenko for the suggestion. llvm-svn: 171889
* Mark all subsequent decls used.Rafael Espindola2013-01-083-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | In the source static void f(); static void f(); template<typename T> static void g() { f(); } static void f() { } void h() { g<int>(); } the call to f refers to the second decl, but it is only marked used at the end of the translation unit during instantiation, after the third f decl has been linked in. With this patch we mark all subsequent decls used, so that it is easy to check if a symbol is used or not. llvm-svn: 171888
* Formatter: Format @ literals better. Array and dictionary literals need more ↵Nico Weber2013-01-082-1/+18
| | | | | | work. llvm-svn: 171887
* Specify complete triple for fp128 tests.Tim Northover2013-01-082-2/+2
| | | | | | | | This avoids FileCheck failing over different comment characters in assembly (notably powerpc64 on Linux vs Darwin) and should fix David's build-bot. llvm-svn: 171886
* Various tweaks and updates to the analyzer website.Jordan Rose2013-01-085-78/+107
| | | | llvm-svn: 171885
* [analyzer] Only include uniqueling location as issue_hash when availableAnna Zaks2013-01-082-25/+32
| | | | | | | This makes us more optimistic when matching reports in a changing code base. Addresses Jordan's feedback for r171825. llvm-svn: 171884
* Formatter: More ObjC tests.Nico Weber2013-01-081-2/+9
| | | | llvm-svn: 171883
* This patch produces the correct addend value forJack Carter2013-01-082-0/+34
| | | | | | | | an R_MIPS_GPREL16 relocation. Contributer: Jack Carter llvm-svn: 171882
* This patch produces the correct pointer size Jack Carter2013-01-082-0/+56
| | | | | | | | | | | | value in the 64 bit .eh_frame section. It doesn't however allow exception handling to work yet since it depends on the correct relocation model being set in the ELF header flags. Contributer: Jack Carter llvm-svn: 171881
* Pad Short Functions for Intel AtomPreston Gurd2013-01-0811-8/+277
| | | | | | | | | | | | | | | | | | | | | | | | The current Intel Atom microarchitecture has a feature whereby when a function returns early then it is slightly faster to execute a sequence of NOP instructions to wait until the return address is ready, as opposed to simply stalling on the ret instruction until the return address is ready. When compiling for X86 Atom only, this patch will run a pass, called "X86PadShortFunction" which will add NOP instructions where less than four cycles elapse between function entry and return. It includes tests. This patch has been updated to address Nadav's review comments - Optimize only at >= O1 and don't do optimization if -Os is set - Stores MachineBasicBlock* instead of BBNum - Uses DenseMap instead of std::map - Fixes placement of braces Patch by Andy Zhang. llvm-svn: 171879
* [libclang] In clang_equalCursors, clear out the "FirstInDeclGroup" part in a ↵Argyrios Kyrtzidis2013-01-081-0/+12
| | | | | | | | | | | declaration cursor before doing the comparison. This is because we can't set "FirstInDeclGroup" consistently; for example, when visiting a DeclStmt we will set it but we don't set it on the result of clang_getCursorDefinition for a reference of the same declaration. llvm-svn: 171878
* Use Decl::getAvailability() rather than checking for the "unavailable"Douglas Gregor2013-01-082-2/+5
| | | | | | | attribute when determining whether we need to see an implementation of a property. Fixes <rdar://problem/12958191>. llvm-svn: 171877
* Formatter: Add tests for some ObjC bits that happen to be formatted correctly.Nico Weber2013-01-081-0/+13
| | | | llvm-svn: 171875
OpenPOWER on IntegriCloud