summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Only do delayed diagnostics if there were no errors when parsing the decl.Argyrios Kyrtzidis2011-06-242-1/+20
| | | | | | Fixes crash in http://llvm.org/PR10109 & rdar://9584039. llvm-svn: 133816
* tidy up whitespace.Jim Grosbach2011-06-241-1/+1
| | | | llvm-svn: 133815
* PTX: Add support for i8 type and introduce associated .b8 registersDan Bailey2011-06-2411-15/+541
| | | | | | The i8 type is required for boolean values, but can only use ld, st and mov instructions. The i1 type continues to be used for predicates. llvm-svn: 133814
* The Neon VCVT (between floating-point and fixed-point, Advanced SIMD) Chad Rosier2011-06-243-1/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | instructions can be used to match combinations of multiply/divide and VCVT (between floating-point and integer, Advanced SIMD). Basically the VCVT immediate operand that specifies the number of fraction bits corresponds to a floating-point multiply or divide by the corresponding power of 2. For example, VCVT (floating-point to fixed-point, Advanced SIMD) can replace a combination of VMUL and VCVT (floating-point to integer) as follows: Example (assume d17 = <float 8.000000e+00, float 8.000000e+00>): vmul.f32 d16, d17, d16 vcvt.s32.f32 d16, d16 becomes: vcvt.s32.f32 d16, d16, #3 Similarly, VCVT (fixed-point to floating-point, Advanced SIMD) can replace a combinations of VCVT (integer to floating-point) and VDIV as follows: Example (assume d17 = <float 8.000000e+00, float 8.000000e+00>): vcvt.f32.s32 d16, d16 vdiv.f32 d16, d17, d16 becomes: vcvt.f32.s32 d16, d16, #3 llvm-svn: 133813
* PTX: Add preliminary support for outputting debug information in the form ofJustin Holewinski2011-06-241-0/+97
| | | | | | | | | | .file and .loc directives. Ideally, we would utilize the existing support in AsmPrinter for this, but I cannot find a way to get .file and .loc directives to print without the rest of the associated DWARF sections, which ptxas cannot handle. llvm-svn: 133812
* Change the chain input of nodes that load the address of a function. This changeAkira Hatanaka2011-06-244-12/+7
| | | | | | | | enables SelectionDAG::getLoad at MipsISelLowering.cpp:1914 to return a pre-existing node instead of redundantly create a new node every time it is called. llvm-svn: 133811
* Add fuzz calls for SBBreakpointLocation.Johnny Chen2011-06-242-0/+30
| | | | llvm-svn: 133810
* Add fuzz calls for SBBreakpoint.Johnny Chen2011-06-242-2/+39
| | | | llvm-svn: 133809
* Fixup info for Thumb2 unconditional branch.Jim Grosbach2011-06-241-0/+1
| | | | | | rdar://9667872 llvm-svn: 133808
* [arcmt] Add test for rdar://9601437.Argyrios Kyrtzidis2011-06-241-0/+13
| | | | llvm-svn: 133807
* objc-arc: Check on a variety of unsafe assignment of retained Fariborz Jahanian2011-06-246-11/+94
| | | | | | objects. // rdar://9495837 llvm-svn: 133806
* Fix comments.Bob Wilson2011-06-241-2/+2
| | | | llvm-svn: 133805
* Allow Lexer::getLocForEndOfToken to return the location just passed the ↵Argyrios Kyrtzidis2011-06-242-2/+15
| | | | | | | | | | macro instantiation if the location given points at the last token of the macro instantiation. Fixes rdar://9045701. llvm-svn: 133804
* Prevent generation of redundant addiu instructions that compute address of Akira Hatanaka2011-06-244-6/+7
| | | | | | static variables or functions. llvm-svn: 133803
* In TextDiagnosticPrinter::EmitCaretDiagnostic, don't always drop fixits if ↵Argyrios Kyrtzidis2011-06-241-2/+3
| | | | | | | | the caret location points to a macro instantiation. llvm-svn: 133802
* Allow the fixit for missing ':' in the ?: ternary operator if it is pointingArgyrios Kyrtzidis2011-06-242-2/+8
| | | | | | at the start of a macro instantiation. llvm-svn: 133801
* SourceManager::isAtStartOfMacroInstantiation should check not only if the ↵Argyrios Kyrtzidis2011-06-241-1/+5
| | | | | | | | location is at the first token but that the location's offset is not inside the token as well. llvm-svn: 133800
* PTX: Re-work target sm/compute selection and add some basic GPUJustin Holewinski2011-06-246-47/+121
| | | | | | targets: g80, gt200, gf100(fermi) llvm-svn: 133799
* SimplifyRafael Espindola2011-06-241-14/+6
| | | | llvm-svn: 133798
* Now that bb with phis are not considered simple, duplicate them even ifRafael Espindola2011-06-241-12/+18
| | | | | | we cannot duplicate to every predecessor. llvm-svn: 133797
* unittests/Basic/FileManagerTest.cpp: Unbreak Win32, mingw and msvc.NAKAMURA Takumi2011-06-241-3/+3
| | | | | | | LLVM_ON_WIN32 is defined in llvm/Config/config.h. IMO, it might be enough with _WIN32 in most cases, LLVM_ON_xxx could be deprecated. llvm-svn: 133794
* Simplify now that blocks with phis are not considered simple.Rafael Espindola2011-06-241-15/+0
| | | | llvm-svn: 133793
* Fix CellSPU CMakeList.txt.Rafael Espindola2011-06-241-1/+1
| | | | llvm-svn: 133792
* Make the generated InitXXXMCRegisterInfo function "static inline", so it ↵Benjamin Kramer2011-06-241-1/+1
| | | | | | | | | doesn't get emitted into multiple object files. This caused linker errors when linking both libLLVMX86Desc and libLLVMX86CodeGen into a single binary (for example when building a monolithic libLLVM shared library). llvm-svn: 133791
* Fix unused label warning.Jay Foad2011-06-241-2/+0
| | | | llvm-svn: 133790
* Fix CellSPU CMakeLists.txtEvan Cheng2011-06-241-2/+3
| | | | llvm-svn: 133787
* Remove an assertion and replace with safe code that emits a warning.Greg Clayton2011-06-241-2/+13
| | | | llvm-svn: 133786
* Fixed SBTarget attach calls to properly deal with being connected to a remotelyGreg Clayton2011-06-243-50/+110
| | | | | | | | | connected process connection. Also added support for more kinds of continue packet when multiple threads need to continue where some want to continue with signals. llvm-svn: 133785
* This patch started as an attempt to fix up the horrid namingAlexis Hunt2011-06-242-40/+36
| | | | | | | | | | | | conventions. I then discovered a typo in the using declaration bit in LookupSpecialMember. This led to discovering [namespace.udecl]p15, which clang implements incorrectly. Thus I've added a comment and implemented the code consistently with the rest of clang - that is incorrectly. And because I don't want to include tests of something incorrect, I've ripped the test out. llvm-svn: 133784
* Starting to refactor Target to separate out code that's needed to fully describeEvan Cheng2011-06-2452-271/+502
| | | | | | | | | | | | target machine from those that are only needed by codegen. The goal is to sink the essential target description into MC layer so we can start building MC based tools without needing to link in the entire codegen. First step is to refactor TargetRegisterInfo. This patch added a base class MCRegisterInfo which TargetRegisterInfo is derived from. Changed TableGen to separate register description from the rest of the stuff. llvm-svn: 133782
* ++ cannot be used to increment an enum, so do it another wayPeter Collingbourne2011-06-241-1/+1
| | | | llvm-svn: 133781
* Add fuzz calls for SBBlock.Johnny Chen2011-06-242-0/+20
| | | | llvm-svn: 133780
* Rename objc_lifetime -> objc_ownership, and modify diagnostics to talk about ↵Argyrios Kyrtzidis2011-06-2432-147/+147
| | | | | | | | 'ownership', not 'lifetime'. rdar://9477613. llvm-svn: 133779
* Start adding API calls to the invalid SB API object after default construction.Johnny Chen2011-06-242-0/+15
| | | | | | | | It should not crash lldb. This checkin adds calls for SBAddress. llvm-svn: 133778
* Calculate backedge probability correctly.Jakub Staszak2011-06-233-38/+13
| | | | llvm-svn: 133776
* When forming a cycle in objc's inheritance hierarchy,Fariborz Jahanian2011-06-235-9/+25
| | | | | | | diagnose it properly and don't throw clang into an infinit loop. // rdar://9653341 llvm-svn: 133773
* Add an initial test file for the newly added data formatter command.Johnny Chen2011-06-234-2/+169
| | | | | | | | main.cpp is contributed from Enrico. Modify CommandObjectType.cpp to set status on the CommandReturnObject when succeeded as well. llvm-svn: 133772
* Tidy up.Jim Grosbach2011-06-231-1/+1
| | | | llvm-svn: 133770
* Unbreak the CMake build.Alexis Hunt2011-06-231-1/+0
| | | | llvm-svn: 133769
* o lldbtest.py:Johnny Chen2011-06-234-32/+45
| | | | | | | | | | | | | | | | | | Assign the test method name to self.testMethodName. This can be useful for the test directory (see test/types for a good example) which houses a bunch of executables compiled from different source files. The default build action is to create a.out as the binary executable, which can confuse the module cacheing mechanism and result in the debugger getting a stale image as the target to be debugged, and chaos ensues. o AbstractBase.py, TestThreadAPI.py: Use self.testMethodName to our advantage. o TestLoadUnload.py: Add expected failure marker to test case test_modules_search_paths(). llvm-svn: 133768
* Missing files for the BlockFrequency analysis added.Jakub Staszak2011-06-233-0/+448
| | | | llvm-svn: 133767
* Introduce BlockFrequency analysis for BasicBlocks.Jakub Staszak2011-06-236-1/+46
| | | | llvm-svn: 133766
* Centralized all of the format to c-string and to format character code insideGreg Clayton2011-06-2312-226/+255
| | | | | | | | | | | | | | | the FormatManager class. Modified the format arguments in any commands to be able to use a single character format, or a full format name, or a partial format name if no full format names match. Modified any code that was displaying formats to use the new FormatManager calls so that our help text and errors never get out of date. Modified the display of the "type format list" command to be a bit more human readable by showing the format as a format string rather than the single character format char. llvm-svn: 133765
* For now, use 'b.out' compiled from main2.cpp as the executable name for ↵Johnny Chen2011-06-231-11/+6
| | | | | | | | test_run_to_address_with_dsym/dwarf() to distinguish between other test cases which use 'a.out' compiled from main.cpp. llvm-svn: 133764
* [arcmt] Fully migrate ObjC++ classes, rdar://9660007.Argyrios Kyrtzidis2011-06-236-28/+70
| | | | llvm-svn: 133763
* [arcmt] Remove rewriteAllocCopyWithZone transformation; not needed anymore.Argyrios Kyrtzidis2011-06-237-404/+0
| | | | llvm-svn: 133762
* Apparently at some point in the past I forgot how 'continue'John McCall2011-06-231-6/+2
| | | | | | | | works in a 'while(false)' loop. Simplify this code; it was complicated only in anticipation of C++0x lambdas, and it can become complicated again when those happen. :) llvm-svn: 133761
* Improve on warning when objc pointer is used inFariborz Jahanian2011-06-232-2/+2
| | | | | | c++ catch in fragile abi - per Eli's request. llvm-svn: 133760
* Add support for movntil/movntiq mnemonics. Reported on llvmdev.Eli Friedman2011-06-233-14/+26
| | | | llvm-svn: 133759
* Remove superfluous commentDouglas Gregor2011-06-231-3/+1
| | | | llvm-svn: 133757
OpenPOWER on IntegriCloud