- Oct 24, 2016
-
-
Justin Bogner authored
The installhdrs target was inconsistently named and would behave differently depending on whether or not you ran a build first. This renames it to install-llvm-headers to match other target names and adds a dependency on intrinsics_gen so that it will always install the same set of things. llvm-svn: 285035
-
Eli Friedman authored
There are two fixes here: one, AnalyzeUsesOfPointer can't return false until it has checked all the uses of the pointer. Two, if a global uses another global, we have to assume the address of the first global escapes. Fixes https://llvm.org/bugs/show_bug.cgi?id=30707 . Differential Revision: https://reviews.llvm.org/D25798 llvm-svn: 285034
-
Simon Pilgrim authored
Use isConstOrConstSplat helper. Also use APInt instead of getZExtValue directly to avoid out of range issues. llvm-svn: 285033
-
Todd Fiala authored
Fixes: rdar://27792848 llvm-svn: 285032
-
Akira Hatanaka authored
by blocks. Add a new warning "-Wblock-capture-autoreleasing". The warning warns about implicitly autoreleasing out-parameters captured by blocks which can introduce use-after-free bugs that are hard to debug. rdar://problem/15377548 Differential Revision: https://reviews.llvm.org/D25844 llvm-svn: 285031
-
Justin Bogner authored
Add a cmake-exports install component and appropriate targets for LLVM_DISTRIBUTION_COMPONENTS to work with. llvm-svn: 285030
-
Matthias Braun authored
(Const)?MIOperands is equivalent to the C++ style MachineInstr::mop_iterator. Use the latter for consistency except for a few callers of MIOperands::analyzePhysReg(). llvm-svn: 285029
-
Saleem Abdulrasool authored
Twines should not be stack allocated. This somehow managed to get past me. llvm-svn: 285028
-
Mehdi Amini authored
This is a fixup for r285019, adding an `#ifdef __x86_64__` since the os_log builtin is platform specific. llvm-svn: 285027
-
Kevin Enderby authored
when contained in a Mach-O universal file and the cputypes in both headers don’t match. llvm-svn: 285026
-
Simon Pilgrim authored
llvm-svn: 285025
-
Vedant Kumar authored
Suggested by David Blaikie. llvm-svn: 285024
-
Saleem Abdulrasool authored
Move all the label construction for the various method list emission into EmitMethodList. Rather than have all the names be constructed in pieces in all of the callers of EmitMethodList, have this occur in one site. This also makes the calls much easier to understand as we simplify identify the type of the method list being emitted and the interface name for which it is being emitted. NFC. llvm-svn: 285023
-
Richard Smith authored
to emit the <template-args> portion. Refactor so that mangleUnresolvedName actually emits the entire <unresolved-name>, so this mistake is harder to make again. llvm-svn: 285022
-
Peter Collingbourne authored
We were previously using the (static) addSynthetic function to create *_start/*_end symbols. This function was doing almost the same thing as addOptionalSynthetic, except that it would also create the symbol in the case where it is unreferenced. Because the symbol has hidden visibility, creating it in that case would have no effect other than adding another entry to the static symbol table. Remove addSynthetic and change callers to use addOptionalSynthetic instead. Differential Revision: https://reviews.llvm.org/D25545 llvm-svn: 285021
-
Eric Fiselier authored
llvm-svn: 285020
-
Mehdi Amini authored
This reverts commit r285007 and reapply r284990, with a fix for the opencl test that I broke. Original commit message follows: These new builtins support a mechanism for logging OS events, using a printf-like format string to specify the layout of data in a buffer. The _buffer_size version of the builtin can be used to determine the size of the buffer to allocate to hold the data, and then __builtin_os_log_format can write data into that buffer. This implements format checking to report mismatches between the format string and the data arguments. Most of this code was written by Chris Willmore. Differential Revision: https://reviews.llvm.org/D25888 llvm-svn: 285019
-
Vedant Kumar authored
I took the opportunity to replace some copy|move constructors|assignment operators with default implementations. As a follow-up, I plan on threading unique_ptr<T []> through a few areas per David Blaikie's advice. Differential Revision: https://reviews.llvm.org/D24424 llvm-svn: 285018
-
Dan Gohman authored
llvm-svn: 285017
-
Dan Gohman authored
CFGStackify differentiates between END_LOOP and END_BLOCK, but wasm itself doesn't. For now, just use the same opcode for both. llvm-svn: 285016
-
Richard Smith authored
rather than including an extra one for each level of 'operator->()' invoked. llvm-svn: 285015
-
Dan Gohman authored
This corresponds to the "0xd" opcode renumbering. llvm-svn: 285014
-
Peter Collingbourne authored
Reviewers: eugenis, vitalybuka Subscribers: llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D25846 llvm-svn: 285013
-
Eric Fiselier authored
llvm-svn: 285012
-
Eric Fiselier authored
llvm-svn: 285011
-
Bob Haarman authored
Summary: Newer versions of clang complain that __asan_schedule_unregister_globals is unused. Moving it outside the anonymous namespace gets rid of that warning. Reviewers: rnk, timurrrr Subscribers: kubabrecka, dberris Differential Revision: https://reviews.llvm.org/D25921 llvm-svn: 285010
-
Dan Gohman authored
This patch adds a pass, controlled by an option and off by default for now, for making implicit get_local/set_local explicit. This simplifies emitting wasm with MC. Differential Revision: https://reviews.llvm.org/D25836 llvm-svn: 285009
-
Davide Italiano authored
llvm-svn: 285008
-
Mehdi Amini authored
This reverts commit r284990, two opencl test are broken llvm-svn: 285007
-
Peter Collingbourne authored
These functions are about classifying a global which will actually be emitted, so it does not make sense for them to take a GlobalValue which may for example be an alias. Change the Mach-O object writer and the Hexagon, Lanai and MIPS backends to look through aliases before using TargetLoweringObjectFile interfaces. These are functional changes but all appear to be bug fixes. Differential Revision: https://reviews.llvm.org/D25917 llvm-svn: 285006
-
Sanjay Patel authored
llvm-svn: 285005
-
Tim Northover authored
Darwin's implementation of strstr seems to trigger slightly different failure modes from Linux since it calls strncmp. All messages seem about equally useful and correct, so I relaxed the tests so Darwin can pass. llvm-svn: 285004
-
Mandeep Singh Grang authored
Reviewers: MatzeB, mcrosier, rengolin Differential Revision: https://reviews.llvm.org/D25894 llvm-svn: 285003
-
Peter Collingbourne authored
It is already part of the type (which is part of the global, which is already being added), so there's no need to do it. llvm-svn: 285002
-
Mandeep Singh Grang authored
Reviewers: mkuper, rengolin, hans Subscribers: cfe-commits Tags: #clang-c Differential Revision: https://reviews.llvm.org/D25893 llvm-svn: 285001
-
Artem Dergachev authored
Found by the UBSan buildbot. llvm-svn: 285000
-
Richard Smith authored
resolved the -> to a call to a specific operator-> function. The particular test case added here is actually being mishandled: the implicit member access should not be type-dependent (because it's accessing a non-type-dependent member of the current instantiation), but calls to a type-dependent operator-> that is a member of the current instantiation would be liable to hit the same codepath. llvm-svn: 284999
-
Adrian Prantl authored
This fixes a bug in the handling of lexical scopes, when more than one scope is defined on the same line or functions are inlined into call sites that are on the same line as the function definition. This situation can easily happen in macro expansions. The problem is solved by introducing a SmallDenseMap<DIScope *, DILexicalBlockFile *, 1> that keeps track of all the different lexical scopes that share a line/file location. Fixes PR30681. llvm-svn: 284998
-
Benjamin Kramer authored
llvm-svn: 284997
-
Krzysztof Parzyszek authored
David Blaikie pointed out that we get them for free without having to write anything. llvm-svn: 284996
-