summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* SLPVectorizer: Try vectorizing 'splat' storesArnold Schwaighofer2014-02-242-3/+22
| | | | | | | | | Vectorize sequential stores of a broadcasted value. 5% on eon. radar://16124699 llvm-svn: 202067
* [X86][SchedModel] Add missing scheduling model for SSE related instructions.Quentin Colombet2014-02-244-279/+754
| | | | | | | | | | The patch defines new or refines existing generic scheduling classes to match the behavior of the SSE instructions. It also maps those scheduling classes on the related SSE instructions. <rdar://problem/15607571> llvm-svn: 202065
* Add a dwarf number to the Y register.Roman Divacky2014-02-241-1/+1
| | | | llvm-svn: 202057
* Replace the F_Binary flag with a F_Text one.Rafael Espindola2014-02-2435-48/+50
| | | | | | | | | After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052
* LTO: Add the loop vectorizer to the LTO pipeline.Arnold Schwaighofer2014-02-241-0/+3
| | | | | | | | | | | | | During the LTO phase LICM will move loop invariant global variables out of loops (informed by GlobalModRef). This makes more loops countable presenting opportunity for the loop vectorizer. Adding the loop vectorizer improves some TSVC benchmarks and twolf/ref dataset (5%) on x86-64. radar://15970632 llvm-svn: 202051
* Fix windows unittest I missed in the raw_fd_ostream constructor change.Rafael Espindola2014-02-241-1/+1
| | | | llvm-svn: 202050
* For lcov tests, don't Xfail mips littl endian (mipsel-... and mip64el-...)Reed Kotler2014-02-241-1/+1
| | | | | | targets. Just big endian (mips-... and mips64-...) llvm-svn: 202049
* Don't make F_None the default.Rafael Espindola2014-02-2411-15/+15
| | | | | | This will make it easier to switch the default to being binary files. llvm-svn: 202042
* [CMake] Remove dependency on non-existing profile_rt-shared. Patch by Brad King.Alexey Samsonov2014-02-241-1/+0
| | | | llvm-svn: 202041
* [asan] remove test that should have been removed in r202033Kostya Serebryany2014-02-241-41/+0
| | | | llvm-svn: 202034
* [asan] simplify the code that compute the shadow offset; get rid of two ↵Kostya Serebryany2014-02-241-46/+26
| | | | | | internal flags that allowed to override it. The tests pass, but still this change might break asan on some platform not covered by tests. If you see this, please submit a fix with a test. llvm-svn: 202033
* Add AArch64 big endian Target (aarch64_be)Christian Pirker2014-02-2416-112/+219
| | | | llvm-svn: 202024
* AVX-512: Fixed encoding of VPCMPEQ and VPCMPGTElena Demikhovsky2014-02-241-4/+8
| | | | llvm-svn: 202015
* Share a createUniqueEntity implementation between unix and windows.Rafael Espindola2014-02-244-206/+94
| | | | | | | The only extra bit of functionality that had to be exposed for this be be implemented in Path.cpp is opening a file in rw mode. llvm-svn: 202005
* Delete dead code.Rafael Espindola2014-02-243-15/+2
| | | | llvm-svn: 202001
* Asm Parser: support .error directiveSaleem Abdulrasool2014-02-233-10/+62
| | | | | | | | The .error directive is similar to .err in that it will halt assembly if it is evaluated for assembly. However, it permits a user supplied message to be rendered. llvm-svn: 201999
* AsmParser: support .ifeqs directiveSaleem Abdulrasool2014-02-232-2/+64
| | | | | | | The .ifeqs directive assembles the following code if the quoted string parameters are equal. The strings must be quoted using double quotes. llvm-svn: 201998
* SPARC: Implement TRAP lowering. Matches what GCC emits.Benjamin Kramer2014-02-233-0/+16
| | | | llvm-svn: 201994
* ARMAsmParser: whitespaceSaleem Abdulrasool2014-02-231-4/+4
| | | | llvm-svn: 201989
* ARM IAS: support .align without parametersSaleem Abdulrasool2014-02-232-0/+48
| | | | | | | | .align is handled specially on certain targets. .align without any parameters on ARM indicates a default alignment (4). Handle the special case in the target parser, but fall back to the generic parser for the normal version. llvm-svn: 201988
* MCAsmParser: support .ifneSaleem Abdulrasool2014-02-232-3/+16
| | | | | | | The .ifne directive assembles the following section of code if the argument expression is non-zero. Effectively, it is equivalent to if. llvm-svn: 201986
* MCAsmParser: handle space properly for .ifc/.ifncSaleem Abdulrasool2014-02-232-1/+7
| | | | | | | | If the strings are not quoted, the first string stops at the first comma, and the second string stops at the end of the line. Strings which contain whitespace should be quoted. Unquoted space is to be discarded. llvm-svn: 201985
* MCAsmParser: add support for .err directiveSaleem Abdulrasool2014-02-232-0/+35
| | | | | | | The .err directive produces an error whenever it is assembled. This can be useful for preventing assembly when an unexpected condition occurs. llvm-svn: 201984
* Use static instead of an anonymous namespace.Rafael Espindola2014-02-232-35/+31
| | | | llvm-svn: 201983
* AVX-512: Fixed encoding of VPTESTMQElena Demikhovsky2014-02-232-8/+25
| | | | llvm-svn: 201980
* Simplify remove, create_directory and create_directories.Rafael Espindola2014-02-236-106/+74
| | | | | | | | | | | | | | | Before this patch they would take an boolean argument to say if the path already existed. This was redundant with the returned error_code which is able to represent that. This allowed for callers to incorrectly check only the existed flag instead of first checking the error code. Instead, pass in a boolean flag to say if the previous (non-)existence should be an error or not. Callers of the of the old simple versions are not affected. They still ignore the previous (non-)existence as they did before. llvm-svn: 201979
* Use simpler form of llvm::sys::fs::remove.Rafael Espindola2014-02-231-2/+1
| | | | llvm-svn: 201975
* LocalStackSlotAllocation: Turn one-iteration loop into if.Benjamin Kramer2014-02-231-12/+5
| | | | | | No functionality change. llvm-svn: 201974
* TableGen.cmake: Functionalize and reformat.NAKAMURA Takumi2014-02-231-16/+17
| | | | llvm-svn: 201972
* Simplify linking to system librariesNAKAMURA Takumi2014-02-235-50/+34
| | | | | | | | | | | | | | | | | | | | | | | | | The LLVMSupport library implementation consolidates all dependencies on system libraries. Move the logic gathering system libraries out of 'cmake/modules/LLVM-Config.cmake' and into 'lib/Support/CMakeLists.txt'. Use the target_link_libraries() command there to tell CMake about the link dependencies of the LLVMSupport implementation. CMake will automatically propagate this to all targets that link LLVMSupport directly or indirectly. We still need to build knowledge of system library dependencies into 'llvm-config'. Store the list of libraries needed in a property on LLVMSupport and teach 'tools/llvm-config/CMakeLists.txt' to retrieve it from there. Drop all calls to 'link_system_libs' and 'get_system_libs' from our CMake code. Replace their implementations with a warning that explains the calls are no longer necessary. Also drop from 'LLVMConfig.cmake' the HAVE_* and related variables that were published there only to allow 'get_system_libs' to run outside our build process. Contributed by Brad King. llvm-svn: 201969
* ARM IAS: support .short and .hwordSaleem Abdulrasool2014-02-233-11/+35
| | | | | | | | This adds support for the .short and its alias .hword for adding literal values into the object file. This is similar to the .word directive, however, rather than inserting a value of 4 bytes, adds a 2-byte value. llvm-svn: 201968
* [python-bindings] Remove some cruft that snuck in.Michael Gottesman2014-02-231-4/+2
| | | | llvm-svn: 201966
* Make test more resilient against scheduling decisions.Benjamin Kramer2014-02-221-3/+3
| | | | | | Should bring the atom buildbots back to life. llvm-svn: 201951
* Fix typoManman Ren2014-02-221-1/+1
| | | | llvm-svn: 201944
* MC: Support COFF string tables larger than 10MBNico Rieck2014-02-223-3/+95
| | | | | | | | Offsets past the range of single-slash encoding are encoded as base64, padded to 6 characters, and prefixed with two slashes. This encoding is undocumented but used by MSVC. llvm-svn: 201940
* Don't inline get[S|U]LEB128Size() until they are proved to be hot.Logan Chien2014-02-223-21/+47
| | | | llvm-svn: 201939
* Move get[S|U]LEB128Size() to LEB128.h.Logan Chien2014-02-2210-66/+364
| | | | | | | | | | This commit moves getSLEB128Size() and getULEB128Size() from MCAsmInfo to LEB128.h and removes some copy-and-paste code. Besides, this commit also adds some unit tests for the LEB128 functions. llvm-svn: 201937
* Revert "Revert "Use relative rpath so that the installation and build dirs ↵Rafael Espindola2014-02-221-3/+7
| | | | | | | | | | are relocatable."" This reverts commit r201934. Polly has been fixed to work with this. llvm-svn: 201936
* Revert "Use relative rpath so that the installation and build dirs are ↵Rafael Espindola2014-02-221-7/+3
| | | | | | | | | | | relocatable." This reverts commit r201921. This should bring the polly bots back. I will try to build it locally to understand how cmake was setting the rpath of LLVMPolly.so. llvm-svn: 201934
* Add const to some member functions of SuccIterator.Logan Chien2014-02-221-3/+3
| | | | | | | | The operator+() and operator-() do not change the member variables of SuccIterator. This CL will qualify the *this* pointer with const. llvm-svn: 201933
* Prune debug message in AddLLVM.cmake.NAKAMURA Takumi2014-02-221-1/+0
| | | | llvm-svn: 201932
* llvm/test/CodeGen/X86/shift-pcmp.ll: Tweak to appease FileCheck. ↵NAKAMURA Takumi2014-02-221-1/+1
| | | | | | | | | | | | | | | | "CHECK-LABEL" doesn't identify labels magically and CHECK-LABEL behaves free from other contexts. For targeting pecoff, ".def foo" appears before ".short 32". .def foo; ... .LCPI0_0: .short 32 foo: CHECK-LABEL seeks not from ".short 32" but from the top of the input. llvm-svn: 201931
* Include <cctype> for isdigit().Logan Chien2014-02-221-0/+1
| | | | llvm-svn: 201930
* [python-bindings] Added OpCode like support for all enumerations with unittests.Michael Gottesman2014-02-222-37/+139
| | | | | | Also fixed some trailing whitespace issues. llvm-svn: 201929
* [CodeGenPrepare] Fix the check of the legality of an instruction.Quentin Colombet2014-02-222-5/+13
| | | | | | | | | The API expects an ISD opcode, not an IR opcode. Fixes a regression for R600. Related to <rdar://problem/15519855>. llvm-svn: 201923
* Use relative rpath so that the installation and build dirs are relocatable.Rafael Espindola2014-02-221-3/+7
| | | | | | | | | This works by asking cmake to use the "install rpath", but setting that rpath to be relative. Thanks a lot to Brad King for the help with CMake! llvm-svn: 201921
* Switch the LLVM error reporting on the new diagnostic system.Quentin Colombet2014-02-221-18/+4
| | | | | | | | | | The LLVM diagnostic are now wired-up in clang (since r200931), thus the user experience will not be impacted by this change anymore. Related to <rdar://problem/15886697> llvm-svn: 201915
* [CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen.Quentin Colombet2014-02-2214-13/+17
| | | | | | | | | | | | CodeGenPrepare uses extensively TargetLowering which is part of libLLVMCodeGen. This is a layer violation which would introduce eventually a dependence on CodeGen in ScalarOpts. Move CodeGenPrepare into libLLVMCodeGen to avoid that. Follow-up of <rdar://problem/15519855> llvm-svn: 201912
* [DAGCombiner] PCMP* sets its result to all ones or zeros so we can AND with theQuentin Colombet2014-02-212-0/+48
| | | | | | | | | | | | | | shifted mask rather than masking and shifting separately. The patch adds this transformation to the DAGCombiner:   (shl (and (setcc:i8v16 ...) N01C) N1C) -> (and (setcc:i8v16 ...) N01C<<N1C) <rdar://problem/16054492> Patch by Adam Nemet <anemet@apple.com> llvm-svn: 201906
* [Stackmaps] Move the target-independent frame index elimination for ↵Juergen Ributzka2014-02-212-9/+15
| | | | | | | | | | | | stackmaps and patchpoints into target-specific code. The lowering of the frame index for stackmaps and patchpoints requires some target-specific magic and should therefore be handled in the target-specific eliminateFrameIndex method. This is related to <rdar://problem/16106219> llvm-svn: 201904
OpenPOWER on IntegriCloud