summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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-219-21/+239
| | | | | | | | | | | 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
* 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
* [AArch64] Add register constraints to avoid generating STLXR and STXR with ↵Kevin Qin2014-02-211-0/+1
| | | | | | unpredictable behavior. llvm-svn: 201841
* Make DisableIntegratedAS a TargetOption.Rafael Espindola2014-02-211-5/+1
| | | | | | | 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
* 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
* Make sure that value handle users see the transformation of an indirect call ↵Nick Lewycky2014-02-201-0/+2
| | | | | | to a direct call. This is important for the CallGraph iteration. Patch by Björn Steinbrink! llvm-svn: 201822
* Set the SuppressWarnings option on tool level and propagate to the library.Eli Bendersky2014-02-201-12/+13
| | | | | | | | | | | | | The SuppressWarnings flag, unfortunately, isn't very useful for custom tools that want to use the LLVM module linker. So I'm changing it to a parameter of the Linker, and the flag itself moves to the llvm-link tool. For the time being as SuppressWarnings is pretty much the only "option" it seems reasonable to propagate it to Linker objects. If we end up with more options in the future, some sort of "struct collecting options" may be a better idea. llvm-svn: 201819
* cstdint is a C++11 header, LLVM provides its own version of it.Benjamin Kramer2014-02-201-1/+0
| | | | | | Some versions of libstdc++ forbid using cstdint in C++98 mode. llvm-svn: 201812
* [Support] Correctly handle zero length inputs to UTF conversion functions on ↵Michael J. Spencer2014-02-201-32/+30
| | | | | | Windows. llvm-svn: 201811
* Fix build breakage.Rui Ueyama2014-02-201-1/+2
| | | | llvm-svn: 201805
* Object/COFF: Fix possible truncation bug.Rui Ueyama2014-02-201-3/+6
| | | | | | | VA can be 64 bit, as the image base can be larger than 4GB, so we need to handle 64 bit VAs properly. llvm-svn: 201803
* Remove unnecessary copy of array_lengthof.Benjamin Kramer2014-02-201-5/+2
| | | | llvm-svn: 201798
* AArch64: __va_list.__stack must be 8-byte alignedOliver Stannard2014-02-201-1/+3
| | | | | | | | The va_start macro for AArch64 must set va_list.__stack to the address following the last named argument on the stack, rounded up to an alignment of 8 bytes. llvm-svn: 201797
* [AArch64] Add support for TargetTransformInfo Analysis.Chad Rosier2014-02-205-0/+131
| | | | llvm-svn: 201793
* [mips] Make it impossible to have UnknownABI in CodeGen and Integrated ↵Daniel Sanders2014-02-203-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Assembler. Summary: This removes the need to coerce UnknownABI to the default ABI (O32 for MIPS32, N64 for MIPS64 [*]) in both MipsSubtarget and MipsAsmParser. Clang has been updated to disable both possible default ABI's before enabling the ABI it intends to use. [*] N64 being the default for MIPS64 is not actually correct. However N32 is not fully implemented/tested yet. Depends on: D2830 Reviewers: jacksprat, matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D2832 Differential Revision: http://llvm-reviews.chandlerc.com/D2846 llvm-svn: 201792
* [CMake] Move intrinsics_gen to lib/Target out of add_public_tablegen_target.NAKAMURA Takumi2014-02-201-0/+2
| | | | | | add_public_tablegen_target is used somewhere. llvm-svn: 201787
* AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.Benjamin Kramer2014-02-201-3/+3
| | | | | | There is code in the wild that relies on $0 not being expanded. llvm-svn: 201784
* [mips] Make mips64 the default CPU for the mips64 architectureDaniel Sanders2014-02-202-11/+30
| | | | | | | | | | | | | | | | | | | | Summary: This is consistent with the integrated assembler. All mips64 codegen tests previously passed -mcpu. Removed -mcpu from blez_bgez.ll and const-mult.ll to cover the default case. Ideally, the two implementations of selectMipsCPU() will be merged but it's proven difficult to find a home for the function that doesn't cause link errors. For now, we'll hoist the common functionality into a function and mark it with FIXME's. Reviewers: jacksprat, matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D2830 llvm-svn: 201782
* COFFObjectFile.cpp: Appease msvc in r201760.NAKAMURA Takumi2014-02-201-1/+1
| | | | llvm-svn: 201769
* [x86] Switch PAUSE instruction to use XS prefix instead of HasREPPrefix. ↵Craig Topper2014-02-202-1/+2
| | | | | | Remove HasREPPrefix support from disassembler table generator since its now only used by CodeGenOnly instructions. llvm-svn: 201767
* AVX-512: Fixed compilation issueElena Demikhovsky2014-02-201-4/+7
| | | | llvm-svn: 201761
* llvm-objdump/COFF: Print SEH table addresses.Rui Ueyama2014-02-201-3/+9
| | | | | | | SEH table addresses are VA in COFF file. In this patch we convert VA to RVA before printing it, because dumpbin prints them as RVAs. llvm-svn: 201760
* Fix change in behaviour accidentally introduced in r201754.Nick Lewycky2014-02-201-2/+4
| | | | llvm-svn: 201758
* AVX-512: Assembly parsing of broadcast semantic in AVX-512; imlemented by ↵Elena Demikhovsky2014-02-202-66/+107
| | | | | | | | Nis Zinovy (zinovy.y.nis@intel.com) Fixed truncate i32 to i1; a test will be provided in the next commit. llvm-svn: 201757
* Simplify the implementation of getUnderlyingObjectsForInstr, without ↵Nick Lewycky2014-02-201-13/+12
| | | | | | intending to change the semantics at all. llvm-svn: 201754
* Add support for hashing attributes with DW_FORM_block. This requiredEric Christopher2014-02-203-1/+35
| | | | | | | | | | | | | passing down an AsmPrinter instance so we could compute the size of the block which could be target specific. All of the test cases in the unittest don't have any target specific data so we can use a NULL AsmPrinter there. This also depends upon block data being added as integers. We can now hash the entire fission-cu.ll compile unit so turn the flag on there with the hash value. llvm-svn: 201752
* Make DIELoc/DIEBlock's ComputeSize method const. Add a setSizeEric Christopher2014-02-203-18/+30
| | | | | | | method to actually set it in the class to avoid computing it multiple times. llvm-svn: 201751
* Format.Eric Christopher2014-02-201-50/+50
| | | | llvm-svn: 201750
* Add support for hashing DW_FORM_sdata and a small testcase.Eric Christopher2014-02-201-0/+1
| | | | llvm-svn: 201747
* Remove FIXME that had snuck in.Eric Christopher2014-02-201-1/+0
| | | | llvm-svn: 201745
* Make one statement easier to understand from post commmit feedback from aReed Kotler2014-02-191-1/+1
| | | | | | review of the previous patch that introduced this week. llvm-svn: 201723
* Expand 64bit {SHL,SHR,SRA}_PARTS on sparcv9.Roman Divacky2014-02-191-0/+4
| | | | llvm-svn: 201718
* move getNameWithPrefix and getSymbol to TargetMachine.Rafael Espindola2014-02-1912-52/+54
| | | | | | | | | | TargetLoweringBase is implemented in CodeGen, so before this patch we had a dependency fom Target to CodeGen. This would show up as a link failure of llvm-stress when building with -DBUILD_SHARED_LIBS=ON. This fixes pr18900. llvm-svn: 201711
* Add back r201608, r201622, r201624 and r201625Rafael Espindola2014-02-1921-134/+232
| | | | | | | | | | | | | | r201608 made llvm corretly handle private globals with MachO. r201622 fixed a bug in it and r201624 and r201625 were changes for using private linkage, assuming that llvm would do the right thing. They all got reverted because r201608 introduced a crash in LTO. This patch includes a fix for that. The issue was that TargetLoweringObjectFile now has to be initialized before we can mangle names of private globals. This is trivially true during the normal codegen pipeline (the asm printer does it), but LTO has to do it manually. llvm-svn: 201700
* Test commit - remove the new line to ↵Christian Pirker2014-02-191-1/+0
| | | | | | lib/Target/AArch64/AArch64TargetMachine.cpp. llvm-svn: 201698
* [mips] In the integrated assembler, select the default feature bits by ↵Daniel Sanders2014-02-191-27/+8
| | | | | | | | | | changing the CPU value. This is consistent with the way CodeGen acheives this. However, CodeGen always selects mips32 (even when the architecture is mips64). llvm-svn: 201694
* Test commit - added a new line to lib/Target/AArch64/AArch64TargetMachine.cpp.Christian Pirker2014-02-191-0/+1
| | | | llvm-svn: 201692
* [mips] Use llvm::Triple in ParseMipsTriple() instead of manually parsing itDaniel Sanders2014-02-191-14/+4
| | | | | | No functional change. llvm-svn: 201689
* This reverts commit r201625 and r201624.Rafael Espindola2014-02-191-5/+11
| | | | | | | Since r201608 got reverted, it is not safe to use private linkage in these cases until it is committed back. llvm-svn: 201688
* [mips] Remove unused NotN64 predicateDaniel Sanders2014-02-191-2/+0
| | | | llvm-svn: 201682
* Fix AVX512 vector sqrt assembly strings.Cameron McInally2014-02-191-4/+4
| | | | llvm-svn: 201681
OpenPOWER on IntegriCloud