summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* More prefixing of error_code.Rafael Espindola2014-06-1221-82/+84
| | | | llvm-svn: 210831
* Delete trailing whitespace.Matt Arsenault2014-06-121-1/+1
| | | | | | Hopefully this forces cmake to re-run. llvm-svn: 210830
* Update test case to use "not" instead of "XFAIL".Juergen Ributzka2014-06-121-2/+1
| | | | llvm-svn: 210829
* GVN: Enable value forwarding for callocDuncan P. N. Exon Smith2014-06-122-0/+41
| | | | | | | | | | | | | | | | | | | | | Enable value forwarding for loads from `calloc()` without an intervening store. This change extends GVN to handle the following case: %1 = tail call noalias i8* @calloc(i64 1, i64 4) %2 = bitcast i8* %1 to i32* ; This load is trivially constant zero %3 = load i32* %2, align 4 This is analogous to the handling for `malloc()` in the same places. `malloc()` returns `undef`; `calloc()` returns a zero value. Note that it is correct to return zero even for out of bounds GEPs since the result of such a GEP would be undefined. Patch by Philip Reames! llvm-svn: 210828
* R600: Mostly remove remaining AMDIL intrinsics.Matt Arsenault2014-06-129-250/+54
| | | | | | | | | Delete all unused ones, and add new AMDGPU named intrinsics for the ones that are. Handle the old AMDIL names for comptability (although remove their GCCBuiltin names) and add tests since there weren't any for these before. llvm-svn: 210827
* Tweak documentation.Nico Weber2014-06-122-6/+9
| | | | | | | | | | 1. Having "get started", "get involved", and "hacking" makes it hard to find how to send patches, so add a link from "get involved" to "hacking". 2. Remove an almost 5 year old note on the test running meachanism changing soon. 3. Let "hacking" link to the LLVM developer policy. llvm-svn: 210826
* Remove unused include which breaks build after r210803Jeroen Ketema2014-06-121-1/+0
| | | | | | Tested with llvm 3.4 and trunk. llvm-svn: 210825
* Move DataLayout from the PPCTargetMachine to the subtarget.Eric Christopher2014-06-124-40/+46
| | | | llvm-svn: 210824
* Objective-C ARC. Blocks that strongly capture themselvesFariborz Jahanian2014-06-122-5/+36
| | | | | | | | | | | to call themselves will get the warning: "Capturing <itself> strongly in this block is likely to lead to a retain cycle". Cut down on the amount of noise by noticing that user at some point sets the captured variable to null in order to release it (and break the cycle). // rdar://16944538 llvm-svn: 210823
* Move PPCFrameLowering into PPCSubtarget from PPCTargetMachine. UseEric Christopher2014-06-126-196/+211
| | | | | | | | the initializeSubtargetDependencies code to obtain an initialized subtarget and migrate a couple of subtarget using functions to the .cpp file to avoid circular includes. llvm-svn: 210822
* Fix up extra whitespace from previous commit.Todd Fiala2014-06-122-5/+5
| | | | llvm-svn: 210821
* Refer to error_code with an std prefix.Rafael Espindola2014-06-123-16/+17
| | | | llvm-svn: 210820
* LangRef: clarify that global declarations can have section and alignment info.Bob Wilson2014-06-121-4/+6
| | | | | | | | I'm not sure what it means to set a section for a declaration in another translation unit, but there are some tests in the tree that do it so it seems to be legal now regardless. llvm-svn: 210819
* Added gdb-remote P/p thread suffix test.Todd Fiala2014-06-122-21/+191
| | | | | | | | | | | | Improved the P writes all GPR register values test. It now limits itself to GPR registers that are not containers for other registers. Pulled in improvements from the llgs branch. Note on Linux llgs I'm able to write a much wider range of registers successfully with $P using the bitflip test than I am able to write with debugserver. Might be worth drilling into. llvm-svn: 210818
* Refer to error_code with the std prefix.Rafael Espindola2014-06-126-56/+60
| | | | llvm-svn: 210817
* [FastISel][X86] Argument lowering test caseJuergen Ributzka2014-06-121-0/+10
| | | | | | | This test case is supposed to xfail, because we do not handle structs or byval arguments. llvm-svn: 210816
* [FastIsel][X86] Add support for lowering the first 8 floating-point arguments.Juergen Ributzka2014-06-122-20/+65
| | | | | | | Recommit with fixed argument attribute checking code, which is required to bail out of all the cases we don't handle yet. llvm-svn: 210815
* CodeGen: enable mov.w/mov.t pairs with minsize for WoASaleem Abdulrasool2014-06-122-1/+22
| | | | | | | | | Windows on ARM uses COFF/PE which is intrinsically position independent. For the case of 32-bit immediates, use a pair-wise relocation as otherwise we may exceed the range of operators. This fixes a code generation crash when using -Oz when targeting Windows on ARM. llvm-svn: 210814
* MS ABI: Fix forming pointers to members of a base classReid Kleckner2014-06-122-32/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously we would calculate the inheritance model of a class when requiring a pointer to member type of that class to be complete. The inheritance model is used to figure out how many fields are used by the member pointer. However, once we require a pointer to member of a derived class type to be complete, we can form pointers to members of bases without calculating the inheritance model for those bases. This was causing crashes on this simple test case: struct A { void f(); void f(int); }; struct B : public A {}; void g() { void (B::*a)() = &B::f; } Now we calculate the inheritance models of all base classes when completing a member pointer type. Fixes PR2007. llvm-svn: 210813
* Permit -Wswitch coverage for enumerations.Saleem Abdulrasool2014-06-122-2/+2
| | | | | | | | Thanks to David Blakie and Richard Smith for pointing out that we can retain the -Wswitch coverage while avoiding the warning from GCC by pushing the unreachable outside of the switch! llvm-svn: 210812
* Try to fix the polly build.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210811
* Revert "[FastIsel][X86] Add support for lowering the first 8 floating-point ↵Juergen Ributzka2014-06-122-60/+19
| | | | | | | | arguments." Reverting it because it breaks several tests. llvm-svn: 210810
* [llvm-symbolizer] Fix parsing DW_AT_ranges in Fission skeleton compile unit ↵Alexey Samsonov2014-06-124-3/+30
| | | | | | | | | | | | | DIEs. Turns out that DW_AT_ranges_base attribute sets the offset for DW_AT_ranges values specified in the .dwo file, but not for DW_AT_ranges specified in the skeleton compile unit DIE in the main executable. This is extremely confusing, and would hopefully be fixed in DWARF-5 when it's finalized. For now this behavior makes sense, as otherwise Fission would break DWARF consumers who doesn't know anything about DW_AT_ranges_base. llvm-svn: 210809
* Add missing "InitializerConstant" to global variable syntax in LangRef.Bob Wilson2014-06-121-2/+2
| | | | | | | | | | The syntax for Global Variables in LangRef is missing the initializer. This syntax section was added in r199218 along with changes to the dllexport/dllimport handling, and I guess it was just an oversight to omit the initializer values. I’ve marked the initializer as optional because this syntax is used for both declarations and definitions. llvm-svn: 210808
* Revert r210721 as it causes breakage in internal builds (and possibly GDB).Eli Bendersky2014-06-122-394/+6
| | | | llvm-svn: 210807
* X86: stifle GCC warningSaleem Abdulrasool2014-06-121-1/+3
| | | | | | | | | | lib/Target/X86/X86TargetTransformInfo.cpp: In member function ‘virtual unsigned int {anonymous}::X86TTI::getIntImmCost(unsigned int, unsigned int, const llvm::APInt&, llvm::Type*) const’: lib/Target/X86/X86TargetTransformInfo.cpp:920:60: warning: enumeral and non-enumeral type in conditional expression [enabled by default] This seems like an unhelpful warning, but there doesnt seem to be a controlling flag, so add an explicit cast to silence the warning. llvm-svn: 210806
* Trying to fix the windows build.Rafael Espindola2014-06-121-4/+3
| | | | llvm-svn: 210805
* Basic: fix warnings from GCCSaleem Abdulrasool2014-06-122-0/+2
| | | | | | | | | | | | tools/clang/lib/Basic/DiagnosticIDs.cpp: In function ‘clang::DiagnosticIDs::Level toLevel(clang::diag::Severity)’: tools/clang/lib/Basic/DiagnosticIDs.cpp:382:1: warning: control reaches end of non-void function [-Wreturn-type] tools/clang/lib/Format/Format.cpp: In member function ‘virtual std::string clang::format::ParseErrorCategory::message(int) const’: tools/clang/lib/Format/Format.cpp:282:1: warning: control reaches end of non-void function [-Wreturn-type] Add a default cases that asserts that we handle the severity, parse error. llvm-svn: 210804
* Remove system_error.h.Rafael Espindola2014-06-1258-91/+73
| | | | | | | This is a minimal change to remove the header. I will remove the occurrences of "using std::error_code" in a followup patch. llvm-svn: 210803
* Include system_error directly.Rafael Espindola2014-06-1215-16/+15
| | | | llvm-svn: 210802
* include system_error directly.Rafael Espindola2014-06-1215-15/+15
| | | | llvm-svn: 210801
* Run llvm/utils/sort_includes.py in a few files.Rafael Espindola2014-06-1215-48/+11
| | | | | | This will reduce the noise in a followup patch. llvm-svn: 210800
* Uses #include "..." instead of #include <...> for llvm headers.Rafael Espindola2014-06-123-6/+6
| | | | llvm-svn: 210799
* More tests for // rdar://17259812Fariborz Jahanian2014-06-122-0/+21
| | | | llvm-svn: 210798
* include system_error directly.Rafael Espindola2014-06-126-6/+6
| | | | llvm-svn: 210797
* [Mips] Make exe-dynamic.test test case independent from external input files.Simon Atanasyan2014-06-121-16/+76
| | | | llvm-svn: 210796
* Objective-C. Use isObjCRetainableType in my lastFariborz Jahanian2014-06-121-5/+3
| | | | | | patch. NFC. llvm-svn: 210795
* adding re-include guards into lib/Support/reg*.hArtyom Skrobov2014-06-124-0/+20
| | | | llvm-svn: 210794
* Remove pimpl class from PassRegistry.Zachary Turner2014-06-125-216/+198
| | | | | | | | | | | | | | | | | | | Since removeRegistrationListener is no longer called during static destruction, we can get rid of the pimpl in PassRegistry. This should clean up the code somewhat, increase clarity, and also allows us to put the Lock as a member of the class, instead of as a ManagedStatic. As part of this change, the PassInfo class is moved from PassSupport.h to its own file, to eliminate the otherwise circular header dependency between PassRegistry.h and PassSupport.h Reviewed by: rnk, dblaikie Differential Revision: http://reviews.llvm.org/D4107 llvm-svn: 210793
* Revert "SelectionDAG: Enable (and (setcc x), (setcc y)) -> (setcc (and x, ↵Tom Stellard2014-06-123-4/+52
| | | | | | | | | y)) for vectors" This reverts commit r210540, adds a testcase for the regression it caused, and marks the R600 test it was supposed to fix as XFAIL. llvm-svn: 210792
* Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.Eli Bendersky2014-06-121-5/+6
| | | | llvm-svn: 210791
* Disable the load/store optimization pass for Thumb-1.James Molloy2014-06-125-7/+13
| | | | | | | | Moritz's changes have improved codegen a lot, but further testing showed significant correctness problems. Disable by default until these have been worked out. Patch by Moritz Roth! llvm-svn: 210789
* [mips][mips64r6] bc1[tf] are not available on MIPS32r6/MIPS64r6Daniel Sanders2014-06-1224-76/+285
| | | | | | | | | | | | | | | | | | | | Summary: Also tightened up the acceptable condition operand for these instructions on MIPS-I to MIPS-III. Support for $fcc[1-7] was added in MIPS-IV. Prior to that only $fcc0 is acceptable. We currently don't optimize (BEQZ (NOT $a), $target) and similar. It's probably best to do this in InstCombine. Depends on D4111 Reviewers: jkolek, zoran.jovanovic, vmedic Reviewed By: vmedic Differential Revision: http://reviews.llvm.org/D4112 llvm-svn: 210787
* [mips][mips64r6] bc2[ft] are not available on MIPS32r6/MIPS64r6Daniel Sanders2014-06-125-2/+28
| | | | | | | | | | | | | | | | Summary: These instructions are not implemented for any MIPS ISA so we only need testcases. Depends on D4110 Reviewers: jkolek, zoran.jovanovic, vmedic Reviewed By: vmedic Differential Revision: http://reviews.llvm.org/D4111 llvm-svn: 210786
* Don't import error_code into the lld namespace.Rafael Espindola2014-06-1240-344/+350
| | | | llvm-svn: 210785
* [mips][mips64r6] [sl][duw]xc1 are not available on MIPS32r6/MIPS64r6Daniel Sanders2014-06-1211-210/+454
| | | | | | | | | | | | | | | | | Summary: Folded mips64-fp-indexed-ls.ll into fp-indexed-ls.ll. To do so, the zext's in mips64-fp-indexed-ls.ll were changed to implicit sign extensions (performed by getelementptr). This does not affect the purpose of the test. Depends on D4004 Reviewers: zoran.jovanovic, jkolek, vmedic Reviewed By: vmedic Differential Revision: http://reviews.llvm.org/D4110 llvm-svn: 210784
* Replace llvm::error_code with std::error_code.Rafael Espindola2014-06-125-12/+12
| | | | llvm-svn: 210783
* This removes TODO added in http://reviews.llvm.org/D3658Dinesh Dwivedi2014-06-122-2/+489
| | | | | | | | | | | The patch transforms ABS(NABS(X)) -> ABS(X) NABS(ABS(X)) -> NABS(X) Differential Revision: http://reviews.llvm.org/D4040 llvm-svn: 210782
* replace llvm::error_code with std::error_code.Rafael Espindola2014-06-126-21/+20
| | | | llvm-svn: 210781
* Replace llvm::error_code with std::error_code.Rafael Espindola2014-06-1226-78/+76
| | | | llvm-svn: 210780
OpenPOWER on IntegriCloud