summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Reorder some parts of the td file to by in alphabetical orderReed Kotler2012-10-101-64/+75
| | | | llvm-svn: 165590
* Adding comments to clarify the reason for non-standard style in these files.Andrew Kaylor2012-10-104-8/+30
| | | | | | Patch committed on behalf of Kirill Uhanov llvm-svn: 165589
* Cosmetic changesAndrew Kaylor2012-10-102-4/+4
| | | | llvm-svn: 165588
* Change the x86 unwinder from using edis as its disassemblerJason Molenda2012-10-102-67/+46
| | | | | | | | API (to get the length of x86 instructions) to using the LLVM-MC disassembler. <rdar://problem/12411000> llvm-svn: 165587
* This patch adds new functions to the SectionRef and ObjectFile interfaces to ↵Andrew Kaylor2012-10-106-1/+41
| | | | | | | | determine whether or not a section is meant to be read-only. These functions will be used by the MCJIT RuntimeDyld to give hints to the memory manager during the object loading process in a future patch. Patch by Ashok Thirumurthi. llvm-svn: 165586
* Implement MipsTargetLowering::CanLowerReturn.Akira Hatanaka2012-10-103-1/+266
| | | | | | Patch by Sasa Stankovic. llvm-svn: 165585
* Tidy up formatting.Richard Smith2012-10-101-2/+1
| | | | llvm-svn: 165584
* -fcatch-undefined-behavior: catch a VLA bound which evalutes to a ↵Richard Smith2012-10-102-1/+29
| | | | | | non-positive value. llvm-svn: 165583
* -fcatch-undefined-behavior: handler for VLA bound which evaluates to a ↵Richard Smith2012-10-103-0/+28
| | | | | | non-positive value. llvm-svn: 165582
* Fix test broken by r165572.Richard Smith2012-10-101-4/+2
| | | | llvm-svn: 165581
* Someone was using vi and left a little something in the code.Greg Clayton2012-10-101-1/+1
| | | | llvm-svn: 165580
* Switched AppleObjCRuntimeV2::CreateClassDescriptorSean Callanan2012-10-101-8/+12
| | | | | | | | | | | | | | over to simply update its cache and then look up the descriptor in the cache. This is fine because the cache now builds much faster (since descriptors are minimal). Metaclasses aren't in the cache, so I switched the Describe method for class descriptors from using GetClassDescriptor to manually creating an automatic ClassDescriptorV2. llvm-svn: 165579
* Revert "Use a special path to place the .o files in."Bob Wilson2012-10-093-6/+3
| | | | | | This reverts commit 165428 in an attempt to get our buildbots going. llvm-svn: 165574
* Revert "Use a special path to place the .o files in."Bob Wilson2012-10-091-2/+1
| | | | | | This reverts commit 165429 in an attempt to get our buildbots going. llvm-svn: 165573
* -fcatch-undefined-behavior: store the type name directly at the end of a ↵Richard Smith2012-10-091-5/+5
| | | | | | type descriptor. 5% binary size reduction due to fewer relocations. llvm-svn: 165572
* -fcatch-undefined-behavior: store the type name directly at the end of a ↵Richard Smith2012-10-091-3/+4
| | | | | | type descriptor. 5% binary size reduction due to fewer relocations. llvm-svn: 165571
* Add extra vim swap file patternMichael Liao2012-10-091-0/+1
| | | | llvm-svn: 165570
* Add extra vim swap file patternMichael Liao2012-10-091-0/+1
| | | | llvm-svn: 165569
* When expanding atomic load arith instructions, do not lose target flags. ↵Evan Cheng2012-10-092-44/+63
| | | | | | rdar://12453106 llvm-svn: 165568
* Thinned the AppleObjCRuntimeV2's class descriptors.Sean Callanan2012-10-092-239/+118
| | | | | | | | | | | | | | | | | | | | | The following are now derived lazily: - The name of the class (cached); - the instance size of the class (not cached); The following have been removed entirely: - Whether the class is realized. This is an implementation detail. - The contents of the objc_class object. That object can be read as needed. - Whether the class is valid. The fact that we vended a class to begin with means it's valid. We will only give up looking parts of it up if they are not in the format we expect. llvm-svn: 165567
* misched: Add computeInstrLatency to TargetSchedModel.Andrew Trick2012-10-092-0/+32
| | | | llvm-svn: 165566
* misched: Doxument the TargetSchedule API.Andrew Trick2012-10-091-7/+22
| | | | llvm-svn: 165565
* misched: Allow flags to disable hasInstrSchedModel/hasInstrItineraries for ↵Andrew Trick2012-10-092-8/+14
| | | | | | external users of TargetSchedule. llvm-svn: 165564
* misched: Remove LoopDependencies heuristic.Andrew Trick2012-10-092-110/+1
| | | | | | This wasn't contributing anything significant to postRA heuristics except compile time (by my measurements) and will be replaced by a more general heuristic for cross-region dependencies within the scheduler itself. llvm-svn: 165563
* Use the attribute builder to add attributes to call/invoke instruction. No ↵Bill Wendling2012-10-092-40/+51
| | | | | | functionality change intended. llvm-svn: 165562
* Initial assembler implementation of Mips load address macroJack Carter2012-10-093-6/+122
| | | | | | | | | | | | | | | | | | | | | | | | This patch provides initial implementation of load address macro instruction for Mips. We have implemented two kinds of expansions with their variations depending on the size of immediate operand: 1) load address with immediate value directly: * la d,j => addiu d,$zero,j (for -32768 <= j <= 65535) * la d,j => lui d,hi16(j) ori d,d,lo16(j) (for any other 32 bit value of j) 2) load load address with register offset value * la d,j(s) => addiu d,s,j (for -32768 <= j <= 65535) * la d,j(s) => lui d,hi16(j) (for any other 32 bit value of j) ori d,d,lo16(j) addu d,d,s This patch does not cover the case when the address is loaded from the value of the label or function. Contributer: Vladimir Medic llvm-svn: 165561
* Rework the (de-)serialization of macros, as stored inDouglas Gregor2012-10-0926-89/+474
| | | | | | | | | | | | | | | | MacroInfo*. Instead of simply dumping an offset into the current file, give each macro definition a proper ID with all of the standard modules-remapping facilities. Additionally, when a macro is modified in a subsequent AST file (e.g., #undef'ing a macro loaded from another module or from a precompiled header), provide a macro update record rather than rewriting the entire macro definition. This gives us greater consistency with the way we handle declarations, and ties together macro definitions much more cleanly. Note that we're still not actually deserializing macro history (we never were), but it's far easy to do properly now. llvm-svn: 165560
* Add count() method to MapVectorDouglas Gregor2012-10-091-0/+5
| | | | llvm-svn: 165559
* People put pragmas in crazy places; add more handling. PR14046.Eli Friedman2012-10-092-0/+29
| | | | | | | I think our general framework for parser pragmas needs a bit more work, but I'm not planning on working on it at the moment. llvm-svn: 165558
* <rdar://problem/12462575> Refactoring a block of shared code in the NSString ↵Enrico Granata2012-10-091-146/+59
| | | | | | data formatter llvm-svn: 165557
* Add in some interfaces that will allow easier access to the pointer address ↵Micah Villmow2012-10-093-3/+25
| | | | | | space. llvm-svn: 165554
* Use the attribute enums to query if a function has an attribute.Bill Wendling2012-10-094-141/+22
| | | | llvm-svn: 165551
* Use the attribute enums to query if a parameter has an attribute.Bill Wendling2012-10-0910-196/+44
| | | | llvm-svn: 165550
* Cleanup in the AppleObjCRuntimeV2 to make descriptorsSean Callanan2012-10-092-29/+22
| | | | | | | | | | | | | | | | | lighter-weight so that the cache can be populated faster. - I Added a ProcessWP to the runtime so I can take it out of the individual descriptors, saving space; - I made the constructors for the descriptors private so that only the runtime can invoke them; and - I removed the constructor that takes a ValueObject since the logic for using a ValueObject is in the runtime. llvm-svn: 165549
* Revert r165547 to fix build.Bill Wendling2012-10-091-4/+10
| | | | llvm-svn: 165548
* Use a single location for calculating the alignments.Bill Wendling2012-10-091-10/+4
| | | | llvm-svn: 165547
* Initialize the end loc in ObjCInterfaceTypeLoc.Benjamin Kramer2012-10-091-0/+1
| | | | | | Found by valgrind. llvm-svn: 165546
* The clang driver has a fairly fancy support for executing gcc instead ofRafael Espindola2012-10-0924-104/+50
| | | | | | | | | | | | | | clang itself. This dates back to clang's early days and while it looks like some of it is still used (for kext for example), other parts are probably dead. Remove the -ccc-clang-archs option and associated code. I don't think there is any remaining setup where clang doesn't support an architecture but it can expect an working gcc cross compiler to be available. A nice side effect is that tests no longer need to differentiate architectures that are included in production builds of clang and those that are not. llvm-svn: 165545
* tblgen: Rename handleDependencies -> createDependencyFileSean Silva2012-10-091-2/+2
| | | | llvm-svn: 165544
* Remove this now unused variable macro.Bill Wendling2012-10-091-1/+0
| | | | llvm-svn: 165543
* tblgen: Move dependency file output to a separate function.Sean Silva2012-10-091-21/+31
| | | | | | This keeps it out of the main flow of TableGenMain. llvm-svn: 165542
* Use appropriate method calls to get the alignment value.Bill Wendling2012-10-092-6/+6
| | | | llvm-svn: 165541
* Whitespace.Chad Rosier2012-10-091-3/+0
| | | | llvm-svn: 165540
* Inline the checks for mutually exclusive attributes since they're used in ↵Bill Wendling2012-10-093-22/+57
| | | | | | only one module. llvm-svn: 165539
* Simplify the code using SmallVector::append(), as suggested by Benjamin Kramer.Argyrios Kyrtzidis2012-10-091-10/+3
| | | | llvm-svn: 165538
* [driver] Remove redundant cases due to overlapping commits between Ted ↵Chad Rosier2012-10-091-2/+0
| | | | | | | | (r165531, 165532) and I (r165534), but leave the test case in place. llvm-svn: 165537
* -fcatch-undefined-behavior: emit calls to the runtime library whenever one ↵Richard Smith2012-10-0913-63/+376
| | | | | | of the checks fails. llvm-svn: 165536
* Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplifiedRafael Espindola2012-10-093-19/+22
| | | | | | the test. llvm-svn: 165535
* [driver] Remove the -W[no-][int-conversion|constant-conversion|enum-conversion]Chad Rosier2012-10-092-0/+6
| | | | | | | options when clang invokes cc1plus for i386 kexts. rdar://12459188 llvm-svn: 165534
* Add a runtime diagnostics library for Clang's -fcatch-undefined-behavior.Richard Smith2012-10-0923-0/+1023
| | | | llvm-svn: 165533
OpenPOWER on IntegriCloud