summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Support .code32 and .code64 in X86 assembler.Evan Cheng2011-07-2711-20/+72
| | | | llvm-svn: 136197
* It is quiet possible that inlined function body is split into multiple ↵Devang Patel2011-07-272-16/+181
| | | | | | chunks of consequtive instructions. But, there is not any way to describe this in .debug_inline accelerator table used by gdb. However, describe non contiguous ranges of inlined function body appropriately using AT_range of DW_TAG_inlined_subroutine debug info entry. llvm-svn: 136196
* Add deprecation docstrings for some APIs which take an SBFrame - SBValues ↵Johnny Chen2011-07-271-7/+18
| | | | | | know their own frames. llvm-svn: 136194
* Remove these two directories. The tests can be ported to dragonegg ifEric Christopher2011-07-2737-328/+0
| | | | | | they're still wanted. llvm-svn: 136193
* Handle different sized wchar_t for windows.Eric Christopher2011-07-261-2/+4
| | | | llvm-svn: 136192
* Remove test/FrontendC, almost all of the tests have been migratedEric Christopher2011-07-26362-5534/+0
| | | | | | to clang now, the rest are in process (6) or have been deleted. llvm-svn: 136191
* clang_getCXTUResourceUsage: report memory used by HeaderSearch.Ted Kremenek2011-07-264-5/+24
| | | | | | | This required converting the StringMaps to use a BumpPtrAllocator. I measured the compile time and saw no observable regression. llvm-svn: 136190
* clang_getCXTUResourceUsage: Report memory used by data structures in ↵Ted Kremenek2011-07-264-3/+23
| | | | | | SourceManager. llvm-svn: 136189
* Use the correct definition for memset.Eric Christopher2011-07-261-6/+3
| | | | llvm-svn: 136188
* Fix indentation and add a docstring for the ctor.Johnny Chen2011-07-261-4/+6
| | | | llvm-svn: 136187
* Add support for multi-way live range splitting.Jakob Stoklund Olesen2011-07-261-64/+165
| | | | | | | | | | | | | | | | | | | | | When splitting global live ranges, it is now possible to split for multiple destination intervals at once. Previously, we only had the main and stack intervals. Each edge bundle is assigned to a split candidate, and splitAroundRegion will insert copies between the candidate intervals and the stack interval as needed. The multi-way splitting is used to split around compact regions when enabled with -compact-regions. The best candidate register still gets all the bundles it wants, but everything outside the main interval is first split around compact regions before we create single-block intervals. Compact region splitting still causes some regressions, so it is not enabled by default. llvm-svn: 136186
* Make this darwin only to simplify the padding calculations per arch.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136185
* Add skip test for clang, which has insufficient debug info for call site in ↵Johnny Chen2011-07-261-1/+3
| | | | | | main(). llvm-svn: 136184
* Re-fix r136172 so it isn't an error; apparently, some people are fond of ↵Eli Friedman2011-07-263-19/+17
| | | | | | their undefined behavior. llvm-svn: 136183
* This appears to be passing on all hosts.Eric Christopher2011-07-261-3/+0
| | | | llvm-svn: 136182
* This patch implements as much of the narrowing conversion error specified byJeffrey Yasskin2011-07-267-8/+436
| | | | | | | | | | | | | | | [dcl.init.list] as is possible without generalized initializer lists or full constant expression support, and adds a c++0x-compat warning in C++98 mode. The FixIt currently uses a typedef's basename without qualification, which is likely to be incorrect on some code. If it's incorrect on too much code, we should write a function to get the string that refers to a type from a particular context. The warning is currently off by default. I'll fix LLVM and clang before turning it on. llvm-svn: 136181
* Disable the optimization that skips emission of complete, non-virtualDouglas Gregor2011-07-262-6/+2
| | | | | | | | | destructors of abstract classes. It's undefined behavior to actually call the destructor (e.g., via delete), but the presence of code that calls this destructor doesn't make the program ill-formed. Fixes <rdar://problem/9819242>. llvm-svn: 136180
* Try a little hack to fix the memset duplication on windows.Eric Christopher2011-07-261-0/+4
| | | | llvm-svn: 136179
* Print out the MBB live-in registers.Jakob Stoklund Olesen2011-07-261-0/+4
| | | | llvm-svn: 136178
* Try harder to fix these for windows.Eric Christopher2011-07-262-2/+2
| | | | llvm-svn: 136177
* Eliminate copies of undefined values during coalescing.Jakob Stoklund Olesen2011-07-263-0/+80
| | | | | | | | | | These copies would coalesce easily, but the resulting value would be defined by a deleted instruction. Now we also remove the undefined value number from the destination register. This fixes PR10503. llvm-svn: 136174
* Generalize for various build bots.Eric Christopher2011-07-261-9/+9
| | | | llvm-svn: 136173
* Diagnose trying to delete a pointer to an abstract class with a non-virtual ↵Eli Friedman2011-07-263-1/+22
| | | | | | | | destructor. PR10504. I'm not completely sure the standard allows us to reject this, but if it doesn't, it should. :) llvm-svn: 136172
* Update test.Benjamin Kramer2011-07-261-1/+1
| | | | llvm-svn: 136170
* Rewrite match line to be friendlier to misc buildbots.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136169
* Rewrite matching line to be friendlier to misc buildbots.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136168
* Add a neat little two's complement hack for x86.Benjamin Kramer2011-07-263-28/+49
| | | | | | | | | | On x86 we can't encode an immediate LHS of a sub directly. If the RHS comes from a XOR with a constant we can fold the negation into the xor and add one to the immediate of the sub. Then we can turn the sub into an add, which can be commuted and encoded efficiently. This code is generated for __builtin_clz and friends. llvm-svn: 136167
* Attempt to rewrite the matching for this test to pacify the windowsEric Christopher2011-07-261-2/+3
| | | | | | build bots. llvm-svn: 136166
* Remove unused diagnostic definition.Anna Zaks2011-07-261-2/+0
| | | | llvm-svn: 136165
* Rework the match here to silence release mode windows buildbots.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136164
* Attempt to generalize this test for release mode buildbots.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136163
* Try to generalize the match to quiet the windows build bot.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136162
* A couple minor issues with Sema for delete:Eli Friedman2011-07-263-23/+41
| | | | | | | | | 1. Attempting to delete an expression of incomplete class type should be an error, not a warning. 2. If someone tries to delete a pointer to an incomplete class type, make sure we actually emit the delete expression after we warn. llvm-svn: 136161
* Use unsigned long long for uint64_t. Fixes part of the windows buildbot.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136160
* Migrate most of the rest of test/FrontendC from llvm and migrateEric Christopher2011-07-26261-0/+3637
| | | | | | most of them to FileCheck. llvm-svn: 136159
* Adjust check for release mode.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136158
* Recognize unpckh* masks and match 256-bit versions. The new versions areBruno Cardoso Lopes2011-07-2611-132/+148
| | | | | | | different from the previous 128-bit because they work in lanes. Update a few comments and add testcases llvm-svn: 136157
* Delete unnecessarily cautious LastCALLSEQ code.Dan Gohman2011-07-261-14/+1
| | | | llvm-svn: 136156
* In ARC we emit an error when compiling:Argyrios Kyrtzidis2011-07-263-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | @interface Foo : NSObject @property (readonly) id myProp; @end @implementation Foo @synthesize myProp; @end t.m:9:13: error: ARC forbids synthesizing a property of an Objective-C object with unspecified storage attribute @synthesize myProp; ^ which is fine, we want the ownership of the synthesized ivar to be explicit. But we should _not_ emit an error for the following cases, because we can get the ownership either from the declared ivar or from the property type: @interface Foo : NSObject { __weak id _myProp1; id myProp2; } @property (readonly) id myProp1; @property (readonly) id myProp2; @property (readonly) __strong id myProp3; @end @implementation Foo @synthesize myProp1 = _myProp1; @synthesize myProp2; @synthesize myProp3; @end  rdar://9844006. llvm-svn: 136155
* ARM rot_imm printing adjustment.Jim Grosbach2011-07-263-9/+9
| | | | | | | Allow the rot_imm operand to be optional. This sets the stage for refactoring away the "rr" versions from the multiclasses and replacing them with Pat<>s. llvm-svn: 136154
* Migrate:Eric Christopher2011-07-2618-0/+395
| | | | | | | | | | | | | | | | | | | | | | | | | CodeGen/2003-08-21-WideString.c CodeGen/2003-10-02-UnionLValueError.c CodeGen/2004-02-20-Builtins.c CodeGen/2008-01-04-WideBitfield.c CodeGen/2002-07-14-MiscTests3.c CodeGen/2005-04-09-ComplexOps.c CodeGen/2008-12-23-AsmIntPointerTie.c CodeGen/2005-07-20-SqrtNoErrno.c CodeGen/2005-01-02-VAArgError-ICE.c CodeGen/2004-06-17-UnorderedCompares.c CodeGen/2002-06-25-FWriteInterfaceFailure.c CodeGen/2002-02-18-64bitConstant.c CodeGen/2002-05-24-Alloca.c CodeGen/2006-01-13-Includes.c CodeGen/2007-09-27-ComplexIntCompare.c CodeGen/2004-02-13-IllegalVararg.c CodeGen/2007-09-12-PragmaPack.c CodeGen/2002-08-02-UnionTest.c from test/FrontendC with changes to remove header file includes. llvm-svn: 136153
* ARM cleanup of rot_imm encoding.Jim Grosbach2011-07-268-44/+47
| | | | | | | | Start of cleaning this up a bit. First step is to remove the encoder hook by storing the operand as the bits it'll actually encode to so it can just be directly used. Map it to the assembly source values 8/16/24 when we print it. llvm-svn: 136152
* Report more memory using in Preprocessor::getTotalMemory() and ↵Ted Kremenek2011-07-263-6/+17
| | | | | | | | | | PreprocessingRecord::getTotalMemory(). Most of the memory was already reported; but now we report more memory from side data structures. Fixes <rdar://problem/9379717>. llvm-svn: 136150
* Prevent x86-specific DAGCombine from creating nodes with illegal type (which ↵Eli Friedman2011-07-262-3/+3
| | | | | | could not be selected). Fixes a minor isel issue that was breaking the testcase from r136130. llvm-svn: 136148
* adding required utility function to SWIG interfaceEnrico Granata2011-07-261-0/+43
| | | | llvm-svn: 136147
* Remove one last reference to Target in MC library.Evan Cheng2011-07-261-1/+1
| | | | llvm-svn: 136145
* We can do better with the SBValue.linked_list_iter() API by supplying a defaultJohnny Chen2011-07-262-22/+42
| | | | | | | | | | | | | | end of list test function as __eol_test__. The simple example can be reduced to: for t in task_head.linked_list_iter('next'): print t Modify the test program to exercise the API for both cases: supplying or not supplying an end of list test function. llvm-svn: 136144
* Split am2offset into register addend and immediate addend forms, necessary ↵Owen Anderson2011-07-268-51/+165
| | | | | | for allowing the fixed-length disassembler to distinguish between SBFX and STR_PRE. llvm-svn: 136141
* Update generated code to use new API of GetElementPtrInst::Create.Nicolas Geoffray2011-07-261-2/+1
| | | | llvm-svn: 136138
* FileCheck'ize test.Jim Grosbach2011-07-261-20/+21
| | | | llvm-svn: 136135
OpenPOWER on IntegriCloud