- Jul 04, 2014
-
-
Rafael Espindola authored
llvm-svn: 212289
-
Rafael Espindola authored
Fixes the build with only the ARM backend enabled. For some reason some other backend was pulling Object and this went unnoticed. llvm-svn: 212288
-
Rafael Espindola authored
This should allow llvm-ar to be used instead of gnu ar + plugin in a LTO build. I will add a release note about it once I finish a LTO bootstrap with it. llvm-svn: 212287
-
Dan Albert authored
Will add support for tests with lit in a later patch. This does not yet support building the unwinder in src/Unwind. llvm-svn: 212286
-
Gerolf Hoflehner authored
llvm-svn: 212285
-
Gerolf Hoflehner authored
Exposes more constant globals that can be removed by the global optimizer. A specific example is the removal of the static global block address array in clang/test/CodeGen/indirect-goto.c. This change impacts only lower optimization levels. With LTO interprocedural const prop runs already before global opt. llvm-svn: 212284
-
Rafael Espindola authored
llvm-svn: 212283
-
Rafael Espindola authored
This also enables it in llvm-nm so that it can be tested. llvm-svn: 212282
-
Benjamin Kramer authored
llvm-svn: 212281
-
Kevin Enderby authored
as darwin’s nm(1) uses -U for this functionality. llvm-svn: 212280
-
Sanjay Patel authored
llvm-svn: 212279
-
David Majnemer authored
This replaces some old-style loops with range-based for. llvm-svn: 212278
-
Yi Kong authored
Adds support for __builtin_arm_isb. Also corrects DSB and ISB instructions modelling by adding has-side-effects property. llvm-svn: 212277
-
Yi Kong authored
Adds support for __builtin_arm_isb. Also corrects DSB and ISB instructions modelling by adding has-side-effects property. llvm-svn: 212276
-
- Jul 03, 2014
-
-
Sanjay Patel authored
This patch sets the 'KeepReg' bit for any tied and live registers during the PrescanInstruction() phase of the dependency breaking algorithm. It then checks those 'KeepReg' bits during the ScanInstruction() phase to avoid changing any tied registers. For more details, please see comments in: http://llvm.org/bugs/show_bug.cgi?id=20020 I added two FIXME comments for code that I think can be removed by using register iterators that include self. I don't want to include those code changes with this patch, however, to keep things as small as possible. The test case is larger than I'd like, but I don't know how to reduce it further and still produce the failing asm. Differential Revision: http://reviews.llvm.org/D4351 llvm-svn: 212275
-
Ulrich Weigand authored
The PowerPC 128-bit long double data type (ppcf128 in LLVM) is in fact a pair of two doubles, where one is considered the "high" or more-significant part, and the other is considered the "low" or less-significant part. When a ppcf128 value is stored in memory or a register pair, the high part always comes first, i.e. at the lower memory address or in the lower-numbered register, and the low part always comes second. This is true both on big-endian and little-endian PowerPC systems. (Similar to how with a complex number, the real part always comes first and the imaginary part second, no matter the byte order of the system.) This was implemented incorrectly for little-endian systems in LLVM. This commit fixes three related issues: - When printing an immediate ppcf128 constant to assembler output in emitGlobalConstantFP, emit the high part first on both big- and little-endian systems. - When lowering a ppcf128 type to a pair of f64 types in SelectionDAG (which is used e.g. when generating code to load an argument into a register pair), use correct low/high part ordering on little-endian systems. - In a related issue, because lowering ppcf128 into a pair of f64 must operate differently from lowering an int128 into a pair of i64, bitcasts between ppcf128 and int128 must not be optimized away by the DAG combiner on little-endian systems, but must effect a word-swap. Reviewed by Hal Finkel. llvm-svn: 212274
-
Evgeniy Stepanov authored
Large part of this change is required due to https://code.google.com/p/android/issues/detail?id=61799 dlsym() crashes when symbol resolution fails, which means we have to limit the interceptor list instead of relying on runtime detection. There are minor differencies in system headers, too. llvm-svn: 212273
-
Evgeniy Stepanov authored
llvm-svn: 212272
-
NAKAMURA Takumi authored
llvm-svn: 212271
-
NAKAMURA Takumi authored
llvm-svn: 212270
-
Tim Northover authored
Unfortunately, the creation of (the default) output file, a.out races with all the other tests in this directory. When the wrong one is read by macho-dump, the test fails. llvm-svn: 212269
-
Evgeniy Stepanov authored
With this change all values passed through blacklisted functions become fully initialized. Previous behavior was to initialize all loads in blacklisted functions, but apply normal shadow propagation logic for all other operation. This makes blacklist applicable in a wider range of situations. It also makes code for blacklisted functions a lot shorter, which works as yet another workaround for PR17409. llvm-svn: 212268
-
Evgeniy Stepanov authored
llvm-svn: 212267
-
Evgeniy Stepanov authored
llvm-svn: 212266
-
Evgeniy Stepanov authored
With this change all values passed through blacklisted functions become fully initialized. Previous behavior was to initialize all loads in blacklisted functions, but apply normal shadow propagation logic for all other operation. This makes blacklist applicable in a wider range of situations. It also makes code for blacklisted functions a lot shorter, which works as yet another workaround for PR17409. llvm-svn: 212265
-
Renato Golin authored
Patch by: Moritz Roth llvm-svn: 212264
-
Robert Lytton authored
Summary: Because a global created by GetOrCreateLLVMGlobal() is not finalised until later viz: extern char a[]; char f(){ return a[5];} char a[10]; Change MangledDeclNames to use a MapVector rather than a DenseMap so that the Metadata is output in order of original declaration, so to make deterministic and improve human readablity. Differential Revision: http://reviews.llvm.org/D4176 llvm-svn: 212263 -
Robert Lytton authored
Differential Revision: http://reviews.llvm.org/D4176 llvm-svn: 212262
-
Christian Pirker authored
Reviewed at http://reviews.llvm.org/D4364 llvm-svn: 212261
-
Simon Atanasyan authored
llvm-svn: 212260
-
Marcello Maggioni authored
llvm-svn: 212259
-
NAKAMURA Takumi authored
llvm-svn: 212258
-
Chandler Carruth authored
This operation was classified as a binary operation in the widening logic for some reason (clearly, untested). It is in fact a unary operation. Add a RUN line to a test to exercise this for x86. Note that again the vector widening strategy doesn't regress anything and in one case removes a totally unecessary instruction that we couldn't avoid when promoting the element type. llvm-svn: 212257
-
David Majnemer authored
The Itanium rules are not appropriate for the MS ABI. RTTI data is _never_ imported and thus is never available_externally. It is either internal (if the type's linkage is internal) or linkonce_odr. This also means that classes which inherit from dllimport'd bases force their translation unit to duplicate the entirety of the RTTI data of that base. Interestingly, the complete object locator can never be referenced by translation units which import the class. This fixes PR20106. llvm-svn: 212256
-
Zachary Turner authored
on Windows. llvm-svn: 212255
-
Chandler Carruth authored
mode. This also runs the test in that mode which would reproduce the crash. What I love is that *every single FIXME* in the test is addressed by switching to widening. llvm-svn: 212254
-
Saleem Abdulrasool authored
This corrects SVN r212196's naming change to use the proper prefix of `__builtin_arm_` instead of `__builtin_`. Thanks to Yi Kong for pointing out the incorrect naming! llvm-svn: 212253
-
Chandler Carruth authored
add it. Sorry about that. llvm-svn: 212251
-
Richard Trieu authored
Differential Revision: http://reviews.llvm.org/D4262 llvm-svn: 212250
-
Chandler Carruth authored
Finkel, Eric Christopher, and a bunch of other people I'm probably forgetting (sorry), add an option to the x86 backend to widen vectors during type legalization rather than promote them. This still would promote vNi1 vectors to get the masks right, but would widen other vectors. A lot of experiments are piling up right now showing that widening should probably be the default legalization strategy outside of vNi1 cases, but it is very hard to test the rammifications of that and fix bugs in widening-based legalization without an option that enables it. I'll be checking in tests shortly that use this option to exercise cases where widening doesn't work well and hopefully we'll be able to switch fully to this soon. llvm-svn: 212249
-