- Dec 22, 2015
-
-
Chad Rosier authored
llvm-svn: 256242
-
Logan Chien authored
This commit adds SHF_ALLOC and SHF_EXECINSTR section flags to `.text.__cxa_end_cleanup` section. This fixes a link error when we are using integrated-as and `ld.gold` (with `-Wl,--gc-sections` and `-Wl,--fatal-warnings`.) Detailed Explanation: 1. There might be some problem with LLVM integrated-as. It is not emitting any section flags for text sections. (This will be fixed in an independent commit.) 2. `ld.gold` will skip the external symbols in the section without SHF_ALLOC. This is the reason why `.text.__cxa_end_cleanup_impl` section is discarded even though it is referenced by `__cxa_end_cleanup()`. This commit workaround the problem by specifying the section flags explicitly. Fix http://llvm.org/PR21292 llvm-svn: 256241
-
Daniel Sanders authored
This fixes the 'pure virtual function called' failure with ThreadPool in a clang-built clang. This fixes the llvm-mips-linux builder. llvm-svn: 256240
-
Alexey Bataev authored
llvm-svn: 256239
-
Alexey Bataev authored
OpenMP 4.5 adds 'depend(sink:vec)' in 'ordered' directive for doacross loop synchronization. Patch adds parsing and semantic analysis for this clause. llvm-svn: 256238
-
Asaf Badouh authored
Differential Revision: http://reviews.llvm.org/D15414 llvm-svn: 256237
-
Keno Fischer authored
In r256077, I added printing for DIExpressions in DEBUG_VALUE comments, but neglected to handle DW_OP_bit_piece operands. Thanks to Mikael Holmen and Joerg Sonnenberger for spotting this. llvm-svn: 256236
-
Eric Christopher authored
function and use for the targets that can easily support it. llvm-svn: 256230
-
Kostya Serebryany authored
llvm-svn: 256229
-
Eric Christopher authored
llvm-svn: 256228
-
Tobias Grosser authored
llvm-svn: 256227
-
David Majnemer authored
InitMCObjectFileInfo was trying to override the triple in awkward ways. For example, a triple specifying COFF but not Windows was forced as ELF. This makes it easy for internal invariants to get violated, such as those which triggered PR25912. This fixes PR25912. llvm-svn: 256226
-
Kostya Serebryany authored
llvm-svn: 256225
-
Teresa Johnson authored
Use an iterator that handles an empty subprogram list. Fixes PR25915. llvm-svn: 256224
-
Enrico Granata authored
llvm-svn: 256223
-
Easwaran Raman authored
This uses the same criteria used in CFE's CodeGenPGO to identify hot and cold callees and uses values of inlinehint-threshold and inlinecold-threshold respectively as the thresholds for such callees. Differential Revision: http://reviews.llvm.org/D15245 llvm-svn: 256222
-
Evgeniy Stepanov authored
This patch adds an option, -safe-stack-no-tls, for using normal storage instead of thread-local storage for the unsafe stack pointer. This can be useful when SafeStack is applied to an operating system kernel. http://reviews.llvm.org/D15673 Patch by Michael LeMay. llvm-svn: 256221
-
Xinliang David Li authored
The linker requires that a comdat section must be associated with a another comdat section that precedes it. This means the comdat section's name needs to use the profile name var's name. Patch tested by Johan Engelen. llvm-svn: 256220
-
Enrico Granata authored
llvm-svn: 256219
-
Vedant Kumar authored
llvm-svn: 256217
-
Dan Gohman authored
This flag isn't needed, or permitted, with the "ld" flavor of lld. Also, add a basic ld commandline test. llvm-svn: 256216
-
Vedant Kumar authored
llvm-svn: 256215
-
Dylan McKay authored
This commit adds the 'AVRMachineFunctionInfo' class, which simply stores basic properties about generated machine functions. llvm-svn: 256213
-
Enrico Granata authored
llvm-svn: 256212
-
Eric Christopher authored
llvm-svn: 256211
-
Tobias Grosser authored
We clarify that certain code is only executed if LSchedule is != nullptr. Previously some of these functions have been executed, but they only passed a nullptr through. This caused some confusion when reading the code. llvm-svn: 256209
-
Tobias Grosser authored
Besides improving the documentation and the code we now assert in case the input is invalid (N < 0) and also do not any more return a nullptr in case USet is empty. This should make the code more readable. llvm-svn: 256208
-
Evgeniy Stepanov authored
ASan does not really do anything interesting with mincore, but this test verifies that the function still works correctly. llvm-svn: 256207
-
Xinliang David Li authored
llvm-svn: 256206
-
Evgeniy Stepanov authored
This code attempts to truncate IntPtrTy to i32, which may be the same type. llvm-svn: 256205
-
David Majnemer authored
The /Brepro flag controls whether or not the compiler should embed timestamps into the object file. Object files which do not embed timestamps are not suitable for incremental linking but are suitable for hermetic build systems and staged self-hosts of clang. A normal clang spelling of this flag has been added, -mincremental-linker-compatible. llvm-svn: 256204
-
David Majnemer authored
Today, we always take into account the possibility that object files produced by MC may be consumed by an incremental linker. This results in us initialing fields which vary with time (TimeDateStamp) which harms hermetic builds (e.g. verifying a self-host went well) and produces sub-optimal code because we cannot assume anything about the relative position of functions within a section (call sites can get redirected through incremental linker thunks). Let's provide an MCTargetOption which controls this behavior so that we can disable this functionality if we know a-priori that the build will not rely on /incremental. llvm-svn: 256203
-
Jun Bum Lim authored
This is recommit of r256028 with minor fixes in unittests: CodeGen/Mips/eh.ll CodeGen/Mips/insn-zero-size-bb.ll Original commit message: When identifying blocks post-dominated by an unreachable-terminated block in BranchProbabilityInfo, consider only the edge to the normal destination block if the terminator is InvokeInst and let calcInvokeHeuristics() decide edge weights for the InvokeInst. llvm-svn: 256202
-
Xinliang David Li authored
llvm-svn: 256201
-
Rafael Espindola authored
llvm-svn: 256200
-
Tobias Grosser authored
If a loop has a sufficiently large amount of compute instruction in its loop body, it is unlikely that our rewrite of the loop iterators introduces large performance changes. As Polly can also apply beneficical optimizations (such as parallelization) to such loop nests, we mark them as profitable. This option is currently "disabled" by default, but can be used to run experiments. If enabled by setting it e.g. to 40 instructions, we currently see some compile-time increases on LNT without any significant run-time changes. llvm-svn: 256199
-
Xinliang David Li authored
llvm-svn: 256198
-
Rafael Espindola authored
llvm-svn: 256197
-
Rafael Espindola authored
llvm-svn: 256196
-
Rafael Espindola authored
They have a tendency to get out of date and obscure where the value/type is from. llvm-svn: 256195
-