summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Shankar kindly pointed out that I wasn't following the coding convention ↵Aaron Ballman2014-02-211-1/+1
| | | | | | properly, so moving raw_ostream.h above system_error.h. llvm-svn: 201885
* Fixing the MSVC build by including a file.Aaron Ballman2014-02-211-0/+1
| | | | llvm-svn: 201884
* llvm-objdump/COFF: LoadConfiguration does not exist in object file.Rui Ueyama2014-02-211-0/+7
| | | | llvm-svn: 201883
* Add missing include.Rafael Espindola2014-02-211-0/+1
| | | | | | Should fix the bots. llvm-svn: 201882
* Add a SymbolicFile interface between Binary and ObjectFile.Rafael Espindola2014-02-2121-281/+676
| | | | | | | | | | | This interface allows IRObjectFile to be implemented without having dummy methods for all section and segment related methods. Both llvm-ar and llvm-nm are changed to use it. Unfortunately the mangler is still not plugged in since it requires some refactoring to make a Module hold a DataLayout. llvm-svn: 201881
* DebugInfo: Remove the empty macinfo section.David Blaikie2014-02-211-3/+0
| | | | | | | | | | | We were just emitting a label for this section for no real reason - this caused us to emit the section even though we never put anything in it. Not bothering with a test (though not adamantly anti-test) because it seems somewhat arbitrary to test for the absence of this section anymore than the absence of any other section. llvm-svn: 201876
* Rename a few more DataLayout variables from TD to DL.Rafael Espindola2014-02-214-41/+41
| | | | llvm-svn: 201870
* add -da-delinearize runs and checks to MIV testcasesSebastian Pop2014-02-212-2/+188
| | | | llvm-svn: 201869
* fix a corner case in delinearizationSebastian Pop2014-02-211-24/+15
| | | | | | handle special cases Step==1, Step==-1, GCD==1, and GCD==-1 llvm-svn: 201868
* normalize the last delinearized dimensionSebastian Pop2014-02-211-2/+17
| | | | | | | | | | | | | | | | in the dependence test, we used to discard some information that the delinearization provides: the size of the innermost dimension of an array, i.e., the size of scalars stored in the array, and the remainder of the delinearization that provides the offset from which the array reads start, i.e., the base address of the array. To avoid losing this data in the rest of the data dependence analysis, the fix is to multiply the access function in the last delinearized dimension by its size, effectively making the size of the last dimension to always be in bytes, and then add the remainder of delinearization to the last subscript, effectively making the last subscript start at the base address of the array. llvm-svn: 201867
* fail delinearization when the size of subscripts differsSebastian Pop2014-02-211-1/+14
| | | | | | | | | | | Because the delinearization is not a global analysis pass, it will compute the delinearization independently of knowledge about the way the delinearization happened for other data accesses to the same array: the dependence analysis will only trigger the delinearization on a tuple of access functions, and thus delinearization may compute different subscripts sizes for a same array. When that happens the safest is to discard the delinearized information. llvm-svn: 201866
* Remove dead declarationSylvestre Ledru2014-02-211-1/+0
| | | | llvm-svn: 201863
* [CMake] llvm-c/lto.h should be installed if libLTO.a is built.NAKAMURA Takumi2014-02-211-4/+2
| | | | llvm-svn: 201859
* [CMake] libLTO: Use (SHARED|STATIC) to build both shared LTO and LTO_static.NAKAMURA Takumi2014-02-211-15/+3
| | | | llvm-svn: 201856
* [CMake] llvm_add_library: Add dependencies also to objlibs as workaround of ↵NAKAMURA Takumi2014-02-211-0/+13
| | | | | | | | CMake issue 14747. http://www.cmake.org/Bug/view.php?id=14747 llvm-svn: 201855
* [CMake] Introduce "llvm_add_library(SHARED STATIC)" to build both shared lib ↵NAKAMURA Takumi2014-02-211-2/+36
| | | | | | | | | | | | | | and static lib simulataneously. llvm_add_library(foo SHARED STATIC DEPENDS <dependent targets...> LINK_LIBS <required libraries...> ) It generates both foo (foo.so) and foo_static(foo.a) and both of them depend on DEPENDS and LINK_LIBS. Then, also obj.foo is generated. obj.foo depends on DEPENDS, but doesn't depend on LINK_LIBS. llvm-svn: 201854
* Teach LLVM-Config to use logical target names (2/2)NAKAMURA Takumi2014-02-214-8/+11
| | | | | | | | | | | | | The module still needs to collect the list of all available libraries in order to satisfy the 'all' component. Provide this in the package configuration file, 'LLVMConfig.cmake', as a LLVM_AVAILABLE_LIBS variable. (A variable is scoped better than a global property.) Since this won't be set for our own build, fall back to looking up the LLVM_LIBS property to get the value when it is not set. Contributed by Brad King. llvm-svn: 201853
* Teach LLVM-Config to use logical target names (1/2)NAKAMURA Takumi2014-02-211-15/+7
| | | | | | | | | | | LLVM library names are now available as logical CMake targets both to our own build and to application CMake code. Replace use of 'list(FIND)' with a simple 'if(TARGET)' to determine whether a library is available. Contributed by Brad King. llvm-svn: 201852
* [AArch64] Add register constraints to avoid generating STLXR and STXR with ↵Kevin Qin2014-02-212-0/+82
| | | | | | unpredictable behavior. llvm-svn: 201841
* This test was failing on non-X86-64 platforms because stackmaps only work on ↵Filip Pizlo2014-02-211-0/+9
| | | | | | | | X86-64. Disable it on non-X86-64 platforms and add a comment. llvm-svn: 201838
* Make DisableIntegratedAS a TargetOption.Rafael Espindola2014-02-214-16/+21
| | | | | | | This replaces the old NoIntegratedAssembler with at TargetOption. This is more flexible and will be used to forward clang's -no-integrated-as option. llvm-svn: 201836
* One last pass of DataLayout variable renaming.Rafael Espindola2014-02-212-9/+9
| | | | llvm-svn: 201834
* Rename a few more DataLayout variables.Rafael Espindola2014-02-218-30/+30
| | | | llvm-svn: 201833
* Rename many DataLayout variables from TD to DL.Rafael Espindola2014-02-2138-924/+924
| | | | | | | | | I am really sorry for the noise, but the current state where some parts of the code use TD (from the old name: TargetData) and other parts use DL makes it hard to write a patch that changes where those variables come from and how they are passed along. llvm-svn: 201827
* Stackmaps are used for OSR exits, which is a custom kind of unwinding. ↵Filip Pizlo2014-02-205-2/+95
| | | | | | | | | | | | | | | | | Hence, they should not be marked nounwind. Marking them nounwind caused crashes in the WebKit FTL JIT, because if we enable sufficient optimizations, LLVM starts eliding compact_unwind sections (or any unwind data for that matter), making deoptimization via stackmaps impossible. This changes the stackmap intrinsic to be may-throw, adds a test for exactly the sympton that WebKit saw, and fixes TableGen to handle un-attributed intrinsics. Thanks to atrick and philipreames for reviewing this. llvm-svn: 201826
* Make sure that value handle users see the transformation of an indirect call ↵Nick Lewycky2014-02-202-0/+25
| | | | | | to a direct call. This is important for the CallGraph iteration. Patch by Björn Steinbrink! llvm-svn: 201822
OpenPOWER on IntegriCloud