summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Add addrspacecast instruction.Matt Arsenault2013-11-1551-229/+588
| | | | | | Patch by Michele Scandale! llvm-svn: 194760
* Include raw_ostream.h.Rui Ueyama2013-11-151-2/+2
| | | | | | | | | | | Including only Debug.h did not cause a compilation error, but you couldn't do anything (like writing something with <<) to raw_ostreams returned by llvm::dbgs() or llvm::errs() without including raw_ostream.h. So including it from Debug.h should make sense. Differential Revision: http://llvm-reviews.chandlerc.com/D2183 llvm-svn: 194759
* R600: Fix scheduling of instructions that use the LDS output queueTom Stellard2013-11-1511-54/+220
| | | | | | | | | | | | | | | | | | | | | | | | The LDS output queue is accessed via the OQAP register. The OQAP register cannot be live across clauses, so if value is written to the output queue, it must be retrieved before the end of the clause. With the machine scheduler, we cannot statisfy this constraint, because it lacks proper alias analysis and it will mark some LDS accesses as having a chain dependency on vertex fetches. Since vertex fetches require a new clauses, the dependency may end up spiltting OQAP uses and defs so the end up in different clauses. See the lds-output-queue.ll test for a more detailed explanation. To work around this issue, we now combine the LDS read and the OQAP copy into one instruction and expand it after register allocation. This patch also adds some checks to the EmitClauseMarker pass, so that it doesn't end a clause with a value still in the output queue and removes AR.X and OQAP handling from the scheduler (AR.X uses and defs were already being expanded post-RA, so the scheduler will never see them). Reviewed-by: Vincent Lejeune <vljn at ovi.com> llvm-svn: 194755
* Teach the Makefile build system how to handle SOURCES which includeChandler Carruth2013-11-141-21/+34
| | | | | | | | | | | | | | | | | subdirectories. The only thing needed here is to create the appropriate object file directories and add those as dependencies for the compilation rules. As a consequence, factor the non-source-file-specific dependencies for compilation rules into a helper variable. This fixes an issue where the project makefile wasn't actually a dependency of a bunch of compilation make rules for no apparant reason. This should have no observable effect for current makefile usage, but will simplify how we build other libraries and is something CMake already supports. llvm-svn: 194753
* R600/SI: Add processor type for HawaiiTom Stellard2013-11-141-0/+1
| | | | | | | | Patch by: Alex Deucher Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> llvm-svn: 194752
* When folding memory operands, preserve existing MachineMemOperands.Andrew Trick2013-11-141-3/+14
| | | | | | | | | | This comes into play with patchpoint, which can fold multiple operands. Since the patchpoint is already treated as a call, the machine mem operands won't affect anything, and there's nothing to test. But we still want to do the right thing here to be sure that our MIs obey the rules. llvm-svn: 194750
* R600/SI: Remove redundant legalizeOperands callMatt Arsenault2013-11-141-1/+0
| | | | llvm-svn: 194749
* Simplify testcase.Eric Christopher2013-11-141-1/+1
| | | | llvm-svn: 194748
* Add #include raw_ostream.h in lib/Target/R600/SIFixSGPRCopies.cppHans Wennborg2013-11-141-0/+1
| | | | | | This was casuing my release+asserts build on Windows to fail. llvm-svn: 194747
* R600/SI: Specify S_ADDK/S_MULK set SCC and are commutableMatt Arsenault2013-11-141-2/+5
| | | | llvm-svn: 194738
* DebugInfo: Simplify/narrow null-check for getOrCreateTypeDavid Blaikie2013-11-141-2/+4
| | | | llvm-svn: 194737
* Recognize 0x0000 as a COFF file magic.Rui Ueyama2013-11-144-0/+21
| | | | | | | | | | | | | | | Summary: Some machine-type-neutral object files containing only undefined symbols actually do exist in the Windows standard library. Need to recognize them as COFF files. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2164 llvm-svn: 194734
* [AArch64] Remove redundant Neon_immAllOnes/Neon_immAllZeros leaf patterns.Chad Rosier2013-11-141-25/+9
| | | | llvm-svn: 194733
* DwarfCompileUnit::getOrCreateContext: Return the compile unit DIE rather ↵David Blaikie2013-11-141-11/+4
| | | | | | than null. llvm-svn: 194728
* Remove unnecessary 'else' after return.David Blaikie2013-11-141-4/+3
| | | | llvm-svn: 194724
* Typos. (Test commit.)Paul Robinson2013-11-142-3/+3
| | | | llvm-svn: 194720
* Fix regular expression to work with multiple-digit version numbersDmitri Gribenko2013-11-141-2/+2
| | | | llvm-svn: 194719
* ARM: produce friendly error for invalid inline asmTim Northover2013-11-142-0/+20
| | | | | | | | | We used to perform an invalid operation on an MVT and crash, which wasn't much fun. Patch by Oliver Stannard. llvm-svn: 194714
* Add a triple and switch test to FileCheck.Rafael Espindola2013-11-141-1/+8
| | | | | | | On windows we don't print .weak for function definitions, so count was only finding 1 'weak'. llvm-svn: 194713
* llvm-cov.test: Remove XFAIL:arm. Seems this is passing since my tweaks.NAKAMURA Takumi2013-11-141-1/+1
| | | | llvm-svn: 194712
* Error if we see an alias to a declaration.Rafael Espindola2013-11-1410-26/+75
| | | | | | | | | | | | | | | In ELF and COFF an alias is just another offset in a section. There is no way to represent an alias to something in another file. In MachO, the spec has the N_INDR type which should allow for exactly that, but is not currently implemented. Given that it is specified but not implemented, we error in codegen to avoid miscompiling but don't reject aliases to declarations in the verifier to leave the option open of implementing it. In the past we have used alias to declarations as a way of implementing weakref, which is why it exists in some old tests which this patch updates. llvm-svn: 194705
* [asan] Poor man's coverage that works with ASanKostya Serebryany2013-11-142-0/+65
| | | | llvm-svn: 194701
* [msan] Use CHECK-DAG instead of CHECK where order of instructions does not ↵Evgeniy Stepanov2013-11-141-2/+2
| | | | | | | | matter. This may fix hexagon-elf bots. llvm-svn: 194700
* [msan] Fast path optimization for wrap-indirect-calls feature of ↵Evgeniy Stepanov2013-11-142-14/+80
| | | | | | | | | | | | | | | | | | | MemorySanitizer. Indirect call wrapping helps MSanDR (dynamic instrumentation companion tool for MSan) to catch all cases where execution leaves a compiler-instrumented module by allowing the tool to rewrite targets of indirect calls. This change is an optimization that skips wrapping for calls when target is inside the current module. This relies on the linker providing symbols at the begin and end of the module code (or code + data, does not really matter). Gold linker provides such symbols by default. GNU (BFD) linker needs a link flag: -Wl,--defsym=__executable_start=0. More info: https://code.google.com/p/memory-sanitizer/wiki/MSanDR#Native_exec llvm-svn: 194697
* llvm-cov requires IR and Support as libraries. Instrumentation would be ↵NAKAMURA Takumi2013-11-142-2/+2
| | | | | | overkill. llvm-svn: 194695
* llvm-cov.test: Tweak win32 hosts not confused by \r\n in llvm-cov's stdout.NAKAMURA Takumi2013-11-141-1/+1
| | | | | | "diff -b" -- Ignore space changes. llvm-svn: 194694
* IR/GCOV.cpp: Use PRIu64 as format string with uint64_t.NAKAMURA Takumi2013-11-141-1/+1
| | | | llvm-svn: 194693
* Whitespace.NAKAMURA Takumi2013-11-141-3/+2
| | | | llvm-svn: 194692
* AVX-512: Handled extractelement from mask vector;Elena Demikhovsky2013-11-145-2/+113
| | | | | | Added VMOSHDUP/VMOVSLDUP shuffle instructions. llvm-svn: 194691
* Fix the header comment of the new pass manager stuff to not claim to beChandler Carruth2013-11-141-1/+1
| | | | | | the legacy stuff. =] llvm-svn: 194689
* Indentation fixesMatt Arsenault2013-11-142-3/+2
| | | | llvm-svn: 194688
* Add a commentMatt Arsenault2013-11-141-1/+3
| | | | llvm-svn: 194684
* Fix trailing whitespace in debug printingMatt Arsenault2013-11-141-1/+1
| | | | llvm-svn: 194683
* R600/SI: Add testcase for problem I ran intoMatt Arsenault2013-11-141-0/+18
| | | | | | with the older version of the moveToVALU changes. llvm-svn: 194682
* yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.NAKAMURA Takumi2013-11-141-1/+1
| | | | llvm-svn: 194681
* Whitespace.NAKAMURA Takumi2013-11-141-1/+1
| | | | llvm-svn: 194680
* AArch64DAGToDAGISel::SelectVTBL(): Fix a warning. [-Wunused-variable]NAKAMURA Takumi2013-11-141-3/+1
| | | | llvm-svn: 194679
* Minor extension to llvm.experimental.patchpoint: don't require a call.Andrew Trick2013-11-143-12/+33
| | | | | | | | If a null call target is provided, don't emit a dummy call. This allows the runtime to reserve as little nop space as it needs without the requirement of emitting a call. llvm-svn: 194676
* Add test case for AArch64 NEON instruction set misc.Kevin Qin2013-11-142-0/+2255
| | | | llvm-svn: 194673
* [OCaml] Build stub OCaml libraries for all configured targetsPeter Zotov2013-11-146-0/+195
| | | | | | | | | | | | This allows to only link in the needed targets, reducing binary size and more importantly link time. Note that this is an incomplete implementation: currently, LLVM does not have the plumbing which would allow to conditionally link in AsmPrinter, AsmParser and Disassembler for the targets which support them. This should be improved in the future. llvm-svn: 194670
* [OCaml] Expose LLVM's fatal error and stacktrace APIsPeter Zotov2013-11-143-0/+47
| | | | llvm-svn: 194669
* Don't mangle \n and "Rafael Espindola2013-11-143-38/+21
| | | | | | | | | | There is nothing special about quotes and newlines from the object file point of view, only the assembler has to worry about expanding the \n and \". This patch then removes the special handling from the Mangler. llvm-svn: 194667
* Add external project LDC to release notes.Kai Nacke2013-11-141-0/+15
| | | | | | LDC, the LLVM-based D compiler, is already using LLVM 3.4. llvm-svn: 194665
* R600/SIFixSGPRCopies.cpp: Fix \param to \return. [-Wdocumentation]NAKAMURA Takumi2013-11-141-1/+1
| | | | llvm-svn: 194662
* Whitespace.NAKAMURA Takumi2013-11-141-4/+4
| | | | llvm-svn: 194661
* [AArch64 neon] support poly64 and relevant intrinsic functions.Kevin Qin2013-11-142-0/+12
| | | | llvm-svn: 194659
* remove extra semicolonNick Kledzik2013-11-141-1/+1
| | | | llvm-svn: 194658
* Implement aarch64 neon instruction class SIMD misc.Kevin Qin2013-11-146-129/+2080
| | | | llvm-svn: 194656
* Add dyn_cast<> support to YAML I/O's IO classNick Kledzik2013-11-143-5/+80
| | | | llvm-svn: 194655
* Added BlockFrequencyInfo::view for displaying the block frequency ↵Michael Gottesman2013-11-142-0/+105
| | | | | | | | | | propagation graph via graphviz. This is useful for debugging issues in the BlockFrequency implementation since one can easily visualize where probability mass and other errors occur in the propagation. llvm-svn: 194654
OpenPOWER on IntegriCloud