summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change ARM data layout strings to match llvm-gcc.Bob Wilson2011-04-041-5/+5
| | | | | | | | | Sandeep Patel noticed that the alignment was wrong for Neon vector types, and this change is partly derived from his patch. For the APCS ABI, however, additional changes were required: the maximum ABI alignment is 32 bits and the preferred alignment for i64 and f64 types should be 64 bits. llvm-svn: 128825
* Use array_lengthofJoerg Sonnenberger2011-04-041-2/+3
| | | | llvm-svn: 128823
* Expand Op0Mask by one bit in preparation for the PadLock prefixes.Joerg Sonnenberger2011-04-043-50/+51
| | | | | | | | Define most shift masks incrementally to reduce the redundant hard-coding. Introduce new shift for the VEX flags to replace the magic constant 32 in various places. llvm-svn: 128822
* Stop caching basic block index ranges now that SlotIndexes can keep up.Jakob Stoklund Olesen2011-04-044-30/+43
| | | | llvm-svn: 128821
* Delete leftover data members.Jakob Stoklund Olesen2011-04-041-4/+0
| | | | llvm-svn: 128820
* docs/UsersManual.html: Add cygming notes.NAKAMURA Takumi2011-04-041-1/+41
| | | | llvm-svn: 128819
* Change loops to derive the number of tables automaticallyJoerg Sonnenberger2011-04-041-2/+2
| | | | llvm-svn: 128818
* Dragonegg release notes.Duncan Sands2011-04-041-17/+17
| | | | llvm-svn: 128812
* Remove some support for ReturnInsts with multiple operands, and forJay Foad2011-04-044-49/+5
| | | | | | | returning a scalar value in a function whose return type is a single- element structure or array. llvm-svn: 128810
* PR9585: add __decltype as a keyword. While I'm here, alphabetize the list.Eli Friedman2011-04-042-4/+8
| | | | llvm-svn: 128809
* Region: Allow user control the printing style of the print function.Tobias Grosser2011-04-042-17/+21
| | | | | | Contributed by: etherzhhb@gmail.com llvm-svn: 128808
* Corrected tests for http://llvm.org/bugs/show_bug.cgi?id=9351Howard Hinnant2011-04-044-76/+5
| | | | llvm-svn: 128807
* PR9615: make sure we destroy any temporaries returned by operator->.Eli Friedman2011-04-042-1/+21
| | | | | | | I'm pretty sure this is the right fix, but I would appreciate it if someone else would double-check. llvm-svn: 128806
* IntrusiveRefCntPtr: in RefCountedBase and RefCountedBaseVPTR, makePeter Collingbourne2011-04-041-7/+7
| | | | | | | ref_cnt mutable and Retain/Release const to enable reference counted pointers to const objects llvm-svn: 128804
* Attempt to fix breakage from r128782 reported by Francois Pichet onEli Friedman2011-04-041-0/+3
| | | | | | | llvm-commits. (Not sure why it only breaks on Windows; maybe it has something to do with the iterator representation...) llvm-svn: 128802
* Start migrating mach-o dumping facilities to the object file out of aEric Christopher2011-04-033-2/+50
| | | | | | separate executable. llvm-svn: 128801
* Move Object.cpp out of VMCore and into Object.Eric Christopher2011-04-033-1/+1
| | | | llvm-svn: 128800
* Assorted bugfixes in object file handling:Eric Christopher2011-04-033-2/+34
| | | | | | | | | | | | | | | | | | | | | | | - Adds support for sniffing PE/COFF files on win32 (.exe and .dll) which are COFF files that have an MS-DOS compatibility stub on the front of them. - Fixes a bug in the COFFObjectFile's support for the Microsoft COFF extension for long symbol names, wherein it was attempting to parse the leading '/' in an extended symbol name reference as part of the integer offset. - Fixes bugs in COFFObjectFile and ELFObjectFile wherein section and symbol iterators were being returned with uninitialized bytes; the type DataRefImpl is a union between 2 32-bit words (d.a and d.b) and a single intptr_t word (p). Only p was being initialized, so in 32-bit builds the result would be iterators with random upper 32-bit words in their DataRefImpls. This caused random failures when seeking around in object files. Patch by Graydon Hoare! llvm-svn: 128799
* Add a set of C bindings for the Object interface.Eric Christopher2011-04-033-0/+137
| | | | | | Patch by Patrick Walton! llvm-svn: 128798
* ... And these wonderful tests.Howard Hinnant2011-04-034-0/+96
| | | | llvm-svn: 128797
* Chris Jefferson submitted this patch to fix ↵Howard Hinnant2011-04-031-23/+24
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=9351 llvm-svn: 128796
* Remove the LLVMContext& arguments from *Folder constructors, as they don't ↵Frits van Bommel2011-04-033-10/+6
| | | | | | seem to be used anywhere. llvm-svn: 128793
* Fix typos on LLVM.cmake. Export LLVM_ON_UNIX & LLVM_ON_WIN32.Oscar Fuentes2011-04-031-3/+3
| | | | | | Patch by arrowdodger! llvm-svn: 128789
* clang has had full and tested support for C++0x trailing-return-type and ↵Richard Smith2011-04-032-8/+18
| | | | | | | | auto type deduction since r126166. Update the website to reflect this, and add a __has_feature test. trailing-return-type codegen is not tested yet (name mangling in particular). llvm-svn: 128787
* Refactoring the security checker a little bit so that each CallExpr check ↵Lenny Maiorani2011-04-031-60/+44
| | | | | | doesn't get called for each CallExpr. Instead it does a switch and only runs the check for the proper identifier. Slight speed improvement (probably significant on very large ASTs), and should make it easier and more clear to add more checks for other CallExpr's later. llvm-svn: 128785
* static analyzer: Add a new ProgramPoint PostCondition to represent the post ↵Ted Kremenek2011-04-033-1/+33
| | | | | | | | position of a branch condition, and a new generateNode method to BranchNodeBuilder using PostCondition ProgramPoint. This method generates a new ExplodedNode but not a new block edge. Patch by Lei Zhang! llvm-svn: 128784
* Fix RegionStore bug when doing a field load whose parent is also a field ↵Ted Kremenek2011-04-032-11/+42
| | | | | | assigned a LazyCompoundValue. Fixes <rdar://problem/9163742> and PR 9522. llvm-svn: 128783
* PR9446: RecursivelyDeleteTriviallyDeadInstructions can delete the instructionEli Friedman2011-04-023-5/+36
| | | | | | | | | | | after the given instruction; make sure to handle that case correctly. (It's difficult to trigger; the included testcase involves a dead block, but I don't think that's a requirement.) While I'm here, get rid of the unnecessary warning about SimplifyInstructionsInBlock, since it should work correctly as far as I know. llvm-svn: 128782
* Don't assume something which might be a constant expression is an instruction.Eli Friedman2011-04-021-3/+3
| | | | | | | Based on PR9429, but no testcase because I can't figure out how to trigger it anymore given other changes to the relevant code. llvm-svn: 128781
* Make -Wheader-hygiene not complain about USING_NAMESPACE_THROUGH_MACRO in a ↵Nico Weber2011-04-024-2/+37
| | | | | | non-header file. llvm-svn: 128780
* [analyzer] Simplify CheckerFn template and use it more to reduce ↵Argyrios Kyrtzidis2011-04-021-94/+56
| | | | | | duplication. No functionality change. llvm-svn: 128779
* While SimplifyDemandedBits constant folds this, we can't rely on it here.Benjamin Kramer2011-04-021-2/+7
| | | | | | | | | | It's possible to craft an input that hits the recursion limits in a way that SimplifyDemandedBits doesn't simplify the icmp but ComputeMaskedBits can infer which bits are zero. No test case as it depends on too many other things. Fixes PR9609. llvm-svn: 128777
* Change the return type of CodeGenVTables::getVirtualBaseOffsetOffset() toKen Dyck2011-04-025-15/+19
| | | | | | CharUnits. No change in functionality intended. llvm-svn: 128776
* Use CharUnits for the offsets in the VirtualBaseClassOffsetOffsetsMapTy. NoKen Dyck2011-04-022-6/+6
| | | | | | change in functionality intended. llvm-svn: 128773
* Use CharUnits for the offset type in the ClassNamesAndOffsets map inKen Dyck2011-04-021-4/+4
| | | | | | dumpLayout(). No change in functionality intended. llvm-svn: 128771
* Use CharUnits for the offsets in the VBaseOffsetOffsetsMapTy types. NoKen Dyck2011-04-021-8/+11
| | | | | | change in functionality intended. llvm-svn: 128770
* Handle changing of LLVM_ENABLE_FFI.Oscar Fuentes2011-04-021-0/+4
| | | | | | | | | | | | | | If someone first configure build with LLVM_ENABLE_FFI=1 and then turn it off, the build will fail in lib/ExecutionEngine/Interpreter because Interpreter will try still to #include <ffi/ffi.h>, but there are no include_directories(${FFI_INCLUDE_DIR}) now. This patch unset()'s HAVE_FFI_H and HAVE_FFI_FFI_H from cache file if LLVM_ENABLE_FFI=0. This forces CMake to update config.h. Patch by arrowdodger! llvm-svn: 128769
* Apply a bug-fix patch from Marcin Kowalczyk to the source locations forChandler Carruth2011-04-022-2/+91
| | | | | | | | | | | a couple of operator overloads which form interesting expressions in the AST. I added test cases for both bugs with the c-index-test's token annotation feature. Also, thanks to John McCall for confirming that this is the correct solution. llvm-svn: 128768
* ptx: support setp's 4-operand formatChe-Liang Chiou2011-04-023-35/+111
| | | | llvm-svn: 128767
* Use InterferenceCache in RegAllocGreedy.Jakob Stoklund Olesen2011-04-021-94/+46
| | | | llvm-svn: 128765
* Add an InterferenceCache class for caching per-block interference ranges.Jakob Stoklund Olesen2011-04-025-1/+304
| | | | | | | | When the greedy register allocator is splitting multiple global live ranges, it tends to look at the same interference data many times. The InterferenceCache class caches queries for unaltered LiveIntervalUnions. llvm-svn: 128764
* Use basic block numbers as indexes when mapping slot index ranges.Jakob Stoklund Olesen2011-04-022-41/+28
| | | | | | This is more compact and faster than using DenseMap. llvm-svn: 128763
* Remove a redundant method. We have a const version.Zhongxing Xu2011-04-022-6/+1
| | | | llvm-svn: 128762
* Teach IdempotentOperationsChecker about paths aborted because ExprEngine ↵Ted Kremenek2011-04-026-18/+68
| | | | | | didn't know how to handle a specific Expr type. llvm-svn: 128761
* static analyzer: Rename 'BlocksAborted' to 'BlocksExhausted' to reflect that ↵Ted Kremenek2011-04-024-10/+10
| | | | | | a given CFGBlock was analyzed too many times. llvm-svn: 128760
* Do some peephole optimizations to remove pointless VMOVs from Neon to integerCameron Zwarich2011-04-022-0/+42
| | | | | | | | registers that arise from argument shuffling with the soft float ABI. These instructions are particularly slow on Cortex A8. This fixes one half of <rdar://problem/8674845>. llvm-svn: 128759
* Add a RemoveFromWorklist method to DCI. This is needed to do some complicatedCameron Zwarich2011-04-022-0/+5
| | | | | | | | transformations in target-specific DAG combines without causing DAGCombiner to delete the same node twice. If you know of a better way to avoid this (see my next patch for an example), please let me know. llvm-svn: 128758
* Fixed a bug in disassembly of STR_POST, where the immediate is the second ↵Johnny Chen2011-04-022-5/+16
| | | | | | | | | | operand in am2offset; instead of the second operand in addrmode_imm12. rdar://problem/9225289 llvm-svn: 128757
* Convert BaseOffset::NonVirtualOffset to CharUnits. No change inKen Dyck2011-04-021-12/+12
| | | | | | functionality intended. llvm-svn: 128756
* Add a Python script which launches a program from within lldb and loop until theJohnny Chen2011-04-023-0/+144
| | | | | | | process stops for some reason. main.c (compiled into a.out) is used as an example in the README-run-until-faulted file. llvm-svn: 128755
OpenPOWER on IntegriCloud