summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of an incorrect optimization for shuffles with PALIGNR and simplify ↵Eli Friedman2011-07-252-22/+27
| | | | | | | | isPALIGNRMask. Addresses PR10466, although the crash from that PR only triggers in cases where DAGCombine misses optimizing a shuffle. llvm-svn: 135980
* Fix more MC layering violations.Evan Cheng2011-07-251-2/+9
| | | | llvm-svn: 135979
* More MC layering violations.Evan Cheng2011-07-254-62/+59
| | | | llvm-svn: 135978
* Check in updated CMake dependencies after Evan's latest round ofChandler Carruth2011-07-251-10/+10
| | | | | | | | | refactorings. Several places that shouldn't have dependend on Target no longer do. Also almost all of the CodeGen dependencies have gone away for the MCDisassembler. Others add reasonable dependencies within the target-specific layers. llvm-svn: 135977
* Add a missing enumerator to this switch. Currently its in theChandler Carruth2011-07-251-0/+1
| | | | | | | | | | | | | | assert-path code, as previously we would have fallen off the end of the function, but please review and let me know if this should go somewhere else. This fixes a Clang warning: lib/MC/MCMachOStreamer.cpp:201:11: error: enumeration value 'MCSA_IndirectSymbol' not handled in switch [-Werror,-Wswitch-enum] switch (Attribute) { ^ 1 error generated. llvm-svn: 135976
* Add LLVMAddTargetLibraryInfo to the C API.Rafael Espindola2011-07-252-0/+22
| | | | llvm-svn: 135975
* Separate MCInstPrinter registration from AsmPrinter registration.Evan Cheng2011-07-2516-77/+81
| | | | llvm-svn: 135974
* Add missing space (this line is no longer pushing the 80-column limit).Nick Lewycky2011-07-251-1/+1
| | | | llvm-svn: 135973
* 80 columns.Nick Lewycky2011-07-251-2/+2
| | | | llvm-svn: 135972
* Fix typo.Nick Lewycky2011-07-251-1/+1
| | | | llvm-svn: 135971
* objective-c: Provide a 'fixit' when class was usedFariborz Jahanian2011-07-252-1/+20
| | | | | | to declare a static object. // rdar://9603056 llvm-svn: 135970
* Rename getInstantiationLineNumber to getExpansionLineNumber in bothChandler Carruth2011-07-2517-39/+37
| | | | | | SourceManager and FullSourceLoc. llvm-svn: 135969
* Simply ARM so_reg MIOperandInfo definitions.Jim Grosbach2011-07-251-4/+4
| | | | | | | | The shift immediate encoding, printing, etc. is handled directly by the enclosing operand definition, so it should be a vanilla immediate, not a nested complex operand (shift_imm). llvm-svn: 135968
* Repair some indentation I missed in my previous commit.Chandler Carruth2011-07-251-1/+1
| | | | llvm-svn: 135967
* Add LLVMAddLowerExpectIntrinsicPass to the C API.Rafael Espindola2011-07-252-0/+7
| | | | llvm-svn: 135966
* Rename getInstantiationColumnNumber to getExpansionColumnNumber in bothChandler Carruth2011-07-2512-20/+20
| | | | | | SourceManager and FullSourceLoc. llvm-svn: 135965
* Assembler doesn't need to initialize TargetMachine's anymore.Evan Cheng2011-07-251-2/+0
| | | | llvm-svn: 135964
* Fix last bits of MC layer issues. llvm-mc doesn't need to initialize ↵Evan Cheng2011-07-258-63/+27
| | | | | | TargetMachine's anymore. llvm-svn: 135963
* Rename getDecomposedInstantiationLoc to getDecomposedExpansionLoc.Chandler Carruth2011-07-257-22/+21
| | | | llvm-svn: 135962
* getInstantiationLocSlowCase -> getExpansionLocSlowCaseChandler Carruth2011-07-252-4/+4
| | | | llvm-svn: 135961
* Rename SourceManager::getImmediateInstantiationRange toChandler Carruth2011-07-254-11/+11
| | | | | | getImmediateExpansionRange. llvm-svn: 135960
* ARM asm operand renaming. Make things a bit more explicit.Jim Grosbach2011-07-252-32/+32
| | | | llvm-svn: 135959
* More simple cleanup of ARM asm operand definitions.Jim Grosbach2011-07-252-28/+13
| | | | llvm-svn: 135958
* Refactor of how modules are handled in ASTReader to remove explicit uses of ↵Jonathan D. Turner2011-07-252-40/+89
| | | | | | a chain of AST files, instead redirect calls through a module manager. This should help move toward a DAG and the potential of loading multiple, unrelated PCH files. It's still early in development. llvm-svn: 135957
* Fix some typos.Bill Wendling2011-07-251-4/+6
| | | | llvm-svn: 135956
* An initial description of the compact unwind encoding.Bill Wendling2011-07-251-1/+109
| | | | llvm-svn: 135955
* Code clean up.Evan Cheng2011-07-255-23/+1
| | | | llvm-svn: 135954
* Refactor MBlaze target to separate MC routines from Target routines.Evan Cheng2011-07-2515-190/+216
| | | | llvm-svn: 135953
* While building a LLVM target, put the current source directory on theOscar Fuentes2011-07-251-1/+3
| | | | | | header search path. llvm-svn: 135952
* Update the comment. This feature is available only on Darwin at the moment. ↵Bill Wendling2011-07-251-1/+2
| | | | | | Though it's not Darwin-specific. llvm-svn: 135951
* Make assembly parser method names more consistent.Jim Grosbach2011-07-253-28/+28
| | | | llvm-svn: 135950
* Unbreak the build.Oscar Fuentes2011-07-251-0/+1
| | | | llvm-svn: 135949
* Fix class description.Jakub Staszak2011-07-251-2/+2
| | | | llvm-svn: 135948
* Fix #include guard directive.Jakub Staszak2011-07-251-2/+2
| | | | llvm-svn: 135947
* Tidy up formatting.Jim Grosbach2011-07-251-50/+18
| | | | | | | | Remove some inititalizers that are the same as the default, move defs next to their (singular) uses and generally simplify some formatting of asm operand definitions. llvm-svn: 135946
* Tidy up a bit.Jim Grosbach2011-07-251-8/+2
| | | | llvm-svn: 135945
* Add a stronger assert for the test to ensure that the visited items from ↵Johnny Chen2011-07-251-0/+9
| | | | | | | | iterating through the SBValue.linked_list_iter() API is equal to [1, 2, 4, 5]. llvm-svn: 135944
* Missed a file.Evan Cheng2011-07-251-0/+70
| | | | llvm-svn: 135943
* Refactor PPC target to separate MC routines from Target routines.Evan Cheng2011-07-2514-97/+57
| | | | llvm-svn: 135942
* Allow target to specify about using minimum alignment vs preferred. Takes ↵Chad Rosier2011-07-256-7/+39
| | | | | | | | | care of FIXME: Override "preferred align" for double and long long for ARM apcs-gnu ABI. Also part of rdar://9802874 llvm-svn: 135940
* More refactoring.Evan Cheng2011-07-259-53/+53
| | | | llvm-svn: 135939
* Provide an add-on API to SBValue class by post-processing to provide a wayJohnny Chen2011-07-254-0/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to iterate through an SBValue instance by treating it as the head of a linked list. API program must provide two args to the linked_list_iter() method: the first being the child member name which points to the next item on the list and the second being a Python function which an SBValue (for the next item) and returns True if end of list is reached, otherwise it returns False. For example, suppose we have the following sample program. #include <stdio.h> class Task { public: int id; Task *next; Task(int i, Task *n): id(i), next(n) {} }; int main (int argc, char const *argv[]) { Task *task_head = new Task(-1, NULL); Task *task1 = new Task(1, NULL); Task *task2 = new Task(2, NULL); Task *task3 = new Task(3, NULL); // Orphaned. Task *task4 = new Task(4, NULL); Task *task5 = new Task(5, NULL); task_head->next = task1; task1->next = task2; task2->next = task4; task4->next = task5; int total = 0; // Break at this line Task *t = task_head; while (t != NULL) { if (t->id >= 0) ++total; t = t->next; } printf("We have a total number of %d tasks\n", total); return 0; } The test program produces the following output while exercising the linked_list_iter() SBVAlue API: task_head: TypeName -> Task * ByteSize -> 8 NumChildren -> 2 Value -> 0x0000000106400380 ValueType -> local_variable Summary -> None IsPointerType -> True Location -> 0x00007fff65f06e60 (Task *) next = 0x0000000106400390 (int) id = 1 (Task *) next = 0x00000001064003a0 (Task *) next = 0x00000001064003a0 (int) id = 2 (Task *) next = 0x00000001064003c0 (Task *) next = 0x00000001064003c0 (int) id = 4 (Task *) next = 0x00000001064003d0 (Task *) next = 0x00000001064003d0 (int) id = 5 (Task *) next = 0x0000000000000000 llvm-svn: 135938
* Rename BlockFrequency to BlockFrequencyInfo and MachineBlockFrequency toJakub Staszak2011-07-2510-43/+44
| | | | | | MachineBlockFrequencyInfo. llvm-svn: 135937
* Pick up expected diagnostics not only in the main file but also in the file ↵Axel Naumann2011-07-252-9/+22
| | | | | | | | | where the first diagnostic occurred. Useful if the main file is not relevant (like with cling). By Vassil Vassilev. llvm-svn: 135936
* Fix r135934. Rename was intended, but without additional tests for double.Chad Rosier2011-07-251-13/+1
| | | | llvm-svn: 135935
* Rename an alignment test to be more precise and add another test for the defaultChad Rosier2011-07-253-4/+29
| | | | | | ABI. llvm-svn: 135934
* Python synthetic providers must provide a num_children call; this was not ↵Enrico Granata2011-07-251-4/+5
| | | | | | specified in the docs up to now llvm-svn: 135933
* Update C++0x status for explicit override controls and explicitDouglas Gregor2011-07-251-14/+14
| | | | | | conversion operators, from Jonathan Sauer. llvm-svn: 135932
* Refactor X86 target to separate MC code from Target code.Evan Cheng2011-07-2512-555/+589
| | | | llvm-svn: 135930
* http://llvm.org/bugs/show_bug.cgi?id=10472Howard Hinnant2011-07-251-4/+3
| | | | llvm-svn: 135927
OpenPOWER on IntegriCloud