summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* R600/SI: rework input interpolation v2Christian Konig2013-03-0712-321/+46
| | | | | | | | v2: update CMakeLists.txt as well Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176626
* R600/SI: remove SI_vs_load_buffer_indexChristian Konig2013-03-072-15/+0
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176625
* R600/SI: remove SGPR address space v2Christian Konig2013-03-075-70/+21
| | | | | | | | v2: fix R600 regressions Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176624
* R600/SI: add proper formal parameter handling for SIChristian Konig2013-03-077-22/+163
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176623
* R600/SI: remove shader type intrinsicChristian Konig2013-03-076-18/+18
| | | | | | | | Just encode the type as target specific attribute. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176622
* R600/SI: switch types of SGPRs to v*i8Christian Konig2013-03-074-11/+24
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176621
* R600/SI: fix unused variable warningChristian Konig2013-03-071-1/+0
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176620
* Fix build with clang, this was supposed to be part of r176617.Nick Lewycky2013-03-071-3/+3
| | | | llvm-svn: 176619
* Take the GCDA version string as an input to llvm_gcda_start_file.Nick Lewycky2013-03-071-8/+5
| | | | llvm-svn: 176618
* Add flags for additional control over coverage generation. Pick the versionNick Lewycky2013-03-075-5/+43
| | | | | | | | | string to be emitted, and two properties about the files themselves. Use $PWD to absolut-ify the path to the coverage file. Yes, this is what GCC does. Reverts my own r175706. llvm-svn: 176617
* Switch from a version 4.2/4.4 switch to a four-byte version string to be putNick Lewycky2013-03-072-24/+27
| | | | | | | | | into the actual gcov file. Instead of using the bottom 4 bytes as the function identifier, use a counter. This makes the identifier numbers stable across multiple runs. llvm-svn: 176616
* No need to go through int64 and APInt when generating a new constant.Nadav Rotem2013-03-071-3/+3
| | | | llvm-svn: 176615
* SDAG: Handle scalarizing an extend of a <1 x iN> vector.Jim Grosbach2013-03-073-0/+40
| | | | | | | | | Just scalarize the element and rebuild a vector of the result type from that. rdar://13281568 llvm-svn: 176614
* Added new properties to lldb.SBModule classes:Greg Clayton2013-03-071-3/+61
| | | | | | | | | | | | | | | | | | "compile_units" returns an array of all compile units in a module as a list() of lldb.SBCompileUnit objects. "compile_unit" returns a compile unit accessor object that allows indexed access, search by full or partial path, or by regex: (lldb) script comp_unit = lldb.target.module['TextEdit'].compile_unit['Document.m'] comp_unit = lldb.target.module['TextEdit'].compile_unit['/path/to/Document.m'] comp_unit = lldb.target.module['TextEdit'].compile_unit[0] comp_unit = lldb.target.module['TextEdit'].compile_unit[1] for comp_unit in lldb.target.module['TextEdit'].compile_unit[re.compile("\.m$")] print comp_unit This helps do quick searches and scripting while debugging. llvm-svn: 176613
* [analyzer] Warn on passing a reference to null pointer as an argument in a callAnna Zaks2013-03-073-29/+141
| | | | | | | | | | | | Warn about null pointer dereference earlier when a reference to a null pointer is passed in a call. The idea is that even though the standard might allow this, reporting the issue earlier is better for diagnostics (the error is reported closer to the place where the pointer was set to NULL). This also simplifies analyzer’s diagnostic logic, which has to track “where the null came from”. As a consequence, some of our null pointer warning suppression mechanisms started triggering more often. TODO: Change the name of the file and class to reflect the new check. llvm-svn: 176612
* Stop the "module" property from throwing an exception when the module name ↵Greg Clayton2013-03-071-6/+9
| | | | | | was not found in the target module list. llvm-svn: 176611
* Added a new module that can dump all line tables for all compile units in ↵Greg Clayton2013-03-071-0/+59
| | | | | | | | any modules that are specified as arguments to the "dump_module_line_tables" command. I used this to verify that the debug map line tables were the same as previous LLDB releases prior to my change in the DWARF in .o file linking. llvm-svn: 176610
* Don't duplicate function names. Thanks to Jordan Rose for pointing it out.Rafael Espindola2013-03-071-4/+4
| | | | llvm-svn: 176609
* Remove GCDAProfiling.c. This copy is old, the copy in compiler-rt is newer andNick Lewycky2013-03-074-225/+0
| | | | | | is the one that should be used. llvm-svn: 176608
* Add a hasExternalLinkage helper. No functionality change.Rafael Espindola2013-03-076-14/+19
| | | | llvm-svn: 176607
* Add a hasExternalStorageAsWritten helper. No functionality change.Rafael Espindola2013-03-072-5/+10
| | | | | | | | It is possible that some of the current uses of "getStorageClassAsWritten() == SC_Extern" should use this but I don't know enough about SC_PrivateExtern to change and test them. llvm-svn: 176606
* Debug Info: store the files and directories for each compile unit.Manman Ren2013-03-0712-46/+87
| | | | | | | | | | | | | | We now emit a line table for each compile unit. To reduce the prologue size of each line table, the files and directories used by each compile unit are stored in std::map<unsigned, std::vector< > > instead of std::vector< >. The prologue for a lto'ed image can be as big as 93K. Duplicating 93K for each compile unit causes a huge increase of debug info. With this patch, each prologue will only emit the files required by the compile unit. rdar://problem/13342023 llvm-svn: 176605
* ArrayRef has a OneElt constructor. Beautify the code.Nadav Rotem2013-03-071-2/+1
| | | | llvm-svn: 176604
* Fix typo.Rafael Espindola2013-03-071-1/+1
| | | | llvm-svn: 176603
* Switch from std::vector to ArrayRef. Speedup FoldBitCast by 5x.Nadav Rotem2013-03-071-3/+3
| | | | llvm-svn: 176602
* [analyzer] Check for returning null references in ReturnUndefChecker.Jordan Rose2013-03-074-35/+210
| | | | | | | | | | | | | | | | | Officially in the C++ standard, a null reference cannot exist. However, it's still very easy to create one: int &getNullRef() { int *p = 0; return *p; } We already check that binds to reference regions don't create null references. This patch checks that we don't create null references by returning, either. <rdar://problem/13364378> llvm-svn: 176601
* [analyzer] Clean up a few doc comments for ProgramState and CallEvent.Jordan Rose2013-03-073-6/+14
| | | | | | No functionality change. llvm-svn: 176600
* SimplifyCFG fix for volatile load/store.Andrew Trick2013-03-072-2/+52
| | | | | | | | | | | | | Fixes rdar:13349374. Volatile loads and stores need to be preserved even if the language standard says they are undefined. "volatile" in this context means "get out of the way compiler, let my platform handle it". Additionally, this is the only way I know of with llvm to write to the first page (when hardware allows) without dropping to assembly. llvm-svn: 176599
* Fix two remaining issue after fixing PR15355 when CMOV is not availableMichael Liao2013-03-073-6/+89
| | | | | | | | | | | - Phi nodes should be replaced/updated after lowering CMOV into branch because 'mainMBB' updating operand in Phi node is changed. - Add EFLAGS in livein before lowering the 2nd CMOV. It's necessary as we will reuse the EFLAGS generated before the 1st lowered CMOV, which won't clobber EFLAGS. However, we need explicitly specify that. - '-attr=-cmov' test case are added. llvm-svn: 176598
* Clean up LLDB CMake build outputDaniel Malea2013-03-071-3/+3
| | | | | | | - remove "-debug" flag from swig scripts - use "echo -n" instead of "echo" in dummy target to avoid printing a useless newline llvm-svn: 176597
* Fix running of LLDB tests with cmake+ninja+ccacheDaniel Malea2013-03-071-1/+3
| | | | | | - Avoid passing 'ccache' as the test compiler. Instead, use first arg after ccache. llvm-svn: 176596
* Fix Linux i386 buildDaniel Malea2013-03-072-0/+13
| | | | | | | - missing definitions were causing different definitions of type 'off_t', resulting in linker errors - fix is to define _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64 llvm-svn: 176595
* <rdar://problem/13119170>Han Ming Ong2013-03-061-0/+30
| | | | | | Reap the child process (debugserver) when it is done. llvm-svn: 176594
* No functionality change at this time. I've split _LIBCPP_VISIBLE up into ↵Howard Hinnant2013-03-0663-777/+784
| | | | | | two flags: _LIBCPP_TYPE_VIS and _LIBCPP_FUNC_VIS. This is in preparation for taking advantage of clang's new __type_visibility__ attribute. llvm-svn: 176593
* <rdar://problem/13362109>Greg Clayton2013-03-062-35/+46
| | | | | | LLDB was not parsing line tables correctly for DWARF in .o files after recent debug map changes. This has now been fixed. llvm-svn: 176592
* Remove some tabs and extraneous space chars from ObjectFileMachO.cpp.Jason Molenda2013-03-061-136/+136
| | | | | | Noticed these while working on the last commit. llvm-svn: 176590
* Retrieve the dyld shared cache mapping offset from the shared cache instead ↵Jason Molenda2013-03-061-14/+64
| | | | | | | | | of hardcoding the value. Read the version number of the dyld shared cache. <rdar://problem/13311882> llvm-svn: 176589
* Ensure that DIType is regenerated after we visit an implementationAdrian Prantl2013-03-067-27/+203
| | | | | | | | | | that adds ivars to an interface. Fixes rdar://13175234 This is an update to r176116 that performs a smart caching of interfaces. llvm-svn: 176584
* [ELF] Order weak symbols properlyShankar Easwaran2013-03-0615-34/+268
| | | | llvm-svn: 176583
* Skipping TestConstVariables on Linux.Andrew Kaylor2013-03-061-1/+1
| | | | | | The test was marked as expectedFailureLinux, but now it passes with gcc and some versions of clang. Newer versions of clang introduce a failure due to bad DWARF information. llvm-svn: 176581
* [mips] Custom-legalize BR_JT.Akira Hatanaka2013-03-063-16/+53
| | | | | | In N64-static, GOT address is needed to compute the branch address. llvm-svn: 176580
* Added tests to test for "settings set" with trailing whitespaces after the ↵Greg Clayton2013-03-061-4/+54
| | | | | | values. llvm-svn: 176579
* Adding support for DW_OP_stack_value in DWARFExpression::EvaluateAndrew Kaylor2013-03-061-0/+12
| | | | llvm-svn: 176578
* [analyzer] Pass the correct Expr to the bug reporter visitors when dealing ↵Anna Zaks2013-03-062-3/+56
| | | | | | | | with CompoundLiteralExpr This allows us to trigger the IDC visitor in the added test case. llvm-svn: 176577
* [analyzer] IDC: Add config option; perform the idc check on first “null ↵Anna Zaks2013-03-064-3/+24
| | | | | | | | | | node” rather than last “non-null”. The second modification does not lead to any visible result, but, theoretically, is what we should have been looking at to begin with since we are checking if the node was assumed to be null in an inlined function. llvm-svn: 176576
* Added a little bit of logging to ClangFunction toSean Callanan2013-03-061-1/+29
| | | | | | make it more obvious what's going on. llvm-svn: 176575
* Add support for non-register scalar values in DoMaterializeOneVariable.Andrew Kaylor2013-03-061-120/+173
| | | | llvm-svn: 176574
* Have basic_istream::read call sgetn intead of sbumpc individual characters. ↵Howard Hinnant2013-03-061-10/+3
| | | | | | This addresses http://llvm.org/bugs/show_bug.cgi?id=15427. llvm-svn: 176573
* Generalize my previous fix for -print-options.Andrew Trick2013-03-062-2/+2
| | | | | | | Always print options that differ from their implicit default. At least for simple option types. llvm-svn: 176572
* Remove tailing whitespacesMichael Liao2013-03-061-14/+14
| | | | llvm-svn: 176570
OpenPOWER on IntegriCloud