- Sep 25, 2014
-
-
Aaron Ballman authored
Since the DisasmMemoryObject only operates on const data, it now only accepts a const data pointer. This silences a -Wcast-qual warning. llvm-svn: 218454
-
Sid Manning authored
These instructions do not indicate they are extendable or the number of bits in the extendable operand. Rename to match architected names. Add a testcase for the intrinsics. llvm-svn: 218453
-
Daniel Sanders authored
llvm-svn: 218452
-
Daniel Sanders authored
[mips] Add CCValAssign::[ASZ]ExtUpper and CCPromoteToUpperBitsInType and handle struct's correctly on big-endian N32/N64 return values. Summary: The N32/N64 ABI's require that structs passed in registers are laid out such that spilling the register with 'sd' places the struct at the lowest address. For little endian this is trivial but for big-endian it requires that structs are shifted into the upper bits of the register. We also require that structs passed in registers have the 'inreg' attribute for big-endian N32/N64 to work correctly. This is because the tablegen-erated calling convention implementation only has access to the lowered form of struct arguments (one or more integers of up to 64-bits each) and is unable to determine the original type. Reviewers: vmedic Reviewed By: vmedic Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5286 llvm-svn: 218451
-
Renato Golin authored
On ARM NEON, VAND with immediate (16/32 bits) is an alias to VBIC ~imm with the same type size. Adding that logic to the parser, and generating VBIC instructions from VAND asm files. This patch also fixes the validation routines for NEON splat immediates which were wrong. Fixes PR20702. llvm-svn: 218450
-
Chandler Carruth authored
v4f64 and v8f32 shuffles when they are lane-crossing. We have fully general lane-crossing permutation functions in AVX2 that make this easy. Part of this also changes exactly when and how these vectors are split up when we don't have AVX2. This isn't always a win but it usually is a win, so on the balance I think its better. The primary regressions are all things that just need to be fixed anyways such as modeling when a blend can be completely accomplished via VINSERTF128, etc. Also, this highlights one of the few remaining big features: we do a really poor job of inserting elements into AVX registers efficiently. This completes almost all of the big tricks I have in mind for AVX2. The only things left that I plan to add: 1) element insertion smarts 2) palignr and other fairly specialized lowerings when they happen to apply llvm-svn: 218449
-
Sylvestre Ledru authored
llvm-svn: 218448
-
Sylvestre Ledru authored
llvm-svn: 218447
-
Chandler Carruth authored
256-bit vectors with lane-crossing. Rather than immediately decomposing to 128-bit vectors, try flipping the 256-bit vector lanes, shuffling them and blending them together. This reduces our worst case shuffle by a pretty significant margin across the board. llvm-svn: 218446
-
Oliver Stannard authored
The Thumb2 BXJ instruction (Branch and Exchange Jazelle) is not defined for v7M or v8A. It is defined for all other Thumb2-supporting architectures (v6T2, v7A and v7R). llvm-svn: 218445
-
Alexander Potapenko authored
Patch by Kuba Brecka (kuba.brecka@gmail.com) llvm-svn: 218444
-
Alexander Kornienko authored
testing::Unused parameters. Reviewers: bkramer, klimek Reviewed By: klimek Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5479 llvm-svn: 218443
-
Chandler Carruth authored
lowering where it only used the mask of the low 128-bit lane rather than the entire mask. This allows the new lowering to correctly match the unpack patterns for v8i32 vectors. For reference, the reason that we check for the the entire mask rather than checking the repeated mask is because the repeated masks don't abide by all of the invariants of normal masks. As a consequence, it is safer to use the full mask with functions like the generic equivalence test. llvm-svn: 218442
-
Chandler Carruth authored
reduce the amount of checking we do here. The first realization is that only non-crossing cases between 128-bit lanes are handled by almost the entire function. It makes more sense to handle the crossing cases first. THe second is that until we actually are going to generate fancy shared lowering strategies that use the repeated semantics of the v8i16 lowering, we should waste time checking for repeated masks. It is simplest to directly test for the entire unpck masks anyways, so we gained nothing from this. This also matches the structure of v32i8 more closely. No functionality changed here. llvm-svn: 218441
-
Chandler Carruth authored
lowering. This completes the basic AVX2 feature support, but there are still some improvements I'd like to do to really get the last mile of performance here. llvm-svn: 218440
-
Chandler Carruth authored
I made a mistake in the previous commit and produced the wrong pattern. Fix that. Also make one more shuffle pattern byte-based rather than word-based, and add two more blend patterns. llvm-svn: 218439
-
Chandler Carruth authored
shuffles rather than word shuffles. As you might guess, these were built starting from the word shuffle test cases and I failed to properly port a bunch of them and left them as widened word shuffle test cases. We still have a couple of tests that check our ability to widen shuffles, but now we will test the actual byte shuffle quite a bit better. llvm-svn: 218438
-
Reid Kleckner authored
Nico Rieck added support for this 32-bit COFF relocation some time ago for Win64 stuff. It appears that as an oversight, the assembly output used "foo"@IMGREL32 instead of "foo"@IMGREL, which is what we can parse. Sadly, there were actually tests that took in IMGREL and put out IMGREL32, and we didn't notice the inconsistency. Oh well. Now LLVM can assemble it's own output with slightly more fidelity. llvm-svn: 218437
-
Chandler Carruth authored
for this now. Should prevent folks from running afoul of this and not knowing why their code won't instruction select the way I just did... llvm-svn: 218436
-
Richard Trieu authored
uninitialized checkers that did not have them before. llvm-svn: 218435
-
Chandler Carruth authored
missing test cases for it. Unsurprisingly, without test cases, there were bugs here. Surprisingly, this bug wasn't caught at compile time. Yep, there is an X86ISD::BLENDV. It isn't wired to anything. Oops. I'll fix than next. llvm-svn: 218434
-
Rui Ueyama authored
Previously we emit two or more identical definitions for an exported symbol if the same /export option is given more than once. This patch fixes that bug. llvm-svn: 218433
-
Justin Bogner authored
If we have multiple coverage counts for the same segment, we need to add them up rather than arbitrarily choosing one. This fixes that and adds a test with template instantiations to exercise it. llvm-svn: 218432
-
Akira Hatanaka authored
This fixes PR21050 and rdar://problem/18434607. llvm-svn: 218431
-
Chandler Carruth authored
lowering. This also implements the fancy blend lowering for v16i16 using AVX2 and teaches the X86 backend to print shuffle masks for 256-bit PSHUFB and PBLENDW instructions. It also makes the mask decoding correct for PBLENDW instructions. The yaks, they are legion. Tests are updated accordingly. There are some missing tests for the VBLENDVB lowering, but I'll add those in a follow-up as this commit has accumulated enough cruft already. llvm-svn: 218430
-
Nick Kledzik authored
Take opporunity to clean up test to only run llvm-objdump once now that llvm-objdump can disassemble mixed thumb and arm code. llvm-svn: 218429
-
Richard Smith authored
we were failing to find that bit-field when performing integer promotions. This brings us closer to following the standard, and closer to GCC. In C, this change is technically a regression: we get bit-field promotions completely wrong in C, promoting cases that are categorically not bit-field designators. This change makes us do so slightly more consistently, though. llvm-svn: 218428
-
Kostya Serebryany authored
[asan] make sanitizer tests depend on libclang_rt.profile since we now have a test that uses -coverage llvm-svn: 218427
-
Todd Fiala authored
See http://reviews.llvm.org/D5486 for more details. I was tracking a problem where llgs on linux would not pick up any environment variables. On OSX there is a virtual function PlatformDarwin::GetEnvironment() which correctly sets up the list of environment variables. On linux llgs it defaults to a base class default implementation which clears the list. I moved the OSX implementation down to PlatformPOSIX. This fixes my problem on linux still works properly on OSX. Change by Shawn Best. Slight tweak to convert 'virtual' to 'override' in PlatformDarwin.h virtual method override by Todd. Tested: Ubuntu 14.04 x86_64, cmake/ninja build + tests. MacOSX 10.9.5 x86_64, Xcode 6.1 Beta build + tests. llvm-svn: 218424
-
Kevin Enderby authored
get the literal string “Hello world” printed as a comment on the instruction that loads the pointer to it. For now this is just for x86_64. So for object files with relocation entries it produces things like: leaq L_.str(%rip), %rax ## literal pool for: "Hello world\n" and similar for fully linked images like executables: leaq 0x4f(%rip), %rax ## literal pool for: "Hello world\n" Also to allow testing against darwin’s otool(1), I hooked up the existing -no-show-raw-insn option to the Mach-O parser code, added the new Mach-O only -full-leading-addr option to match otool(1)'s printing of addresses and also added the new -print-imm-hex option. llvm-svn: 218423
-
Todd Fiala authored
Makes use of LLVM gtest support. This does *not* run as part of the lldb test suite. I'm using it to start testing some components that I'll be adding to the inner guts of NativeThreadLinux to more maintainably handle thread states and deferred thread state notification. Runs with default Makefile target "test" using gmake within a given test directory (currently only test/c++/native_process/thread_state_coordinator). The Makefile.rules currently assume it is using the LLVM gtest. It works on a canonical MacOSX dir structture (i.e. lldb, lldb/llvm, lldb/llvm/tools/clang). It also works on Ubuntu assuming the standard dir layout of llvm, llvm/tools/clang, llvm/tools/lldb. In this case, it expects a directory called build-debug parallel to the llvm source dir. All directory assumptions can be overridden with environment variables. See test/c++/make/Makefile.rules for details. We'll want to make this smarter in the future, particularly around finding the LLVM build output dir. llvm-svn: 218422
-
Kostya Serebryany authored
[asan] don't instrument module CTORs that may be run before asan.module_ctor. This fixes asan running together -coverage llvm-svn: 218421
-
DeLesley Hutchins authored
The attribute documentation now conforms to Aaron Ballman's renaming of the thread safety attributes, as well as the new paper that is due to be published in the conference on Source Code Analysis and Manipulation (SCAM 2014) later this week. In addition, recent changes to the analysis, such as checking of references and negative capabilities, are now documented. llvm-svn: 218420
-
Renato Golin authored
llvm-svn: 218419
-
Chad Rosier authored
This patch is difficult to test in isolation, so a subsequent patch will test further. Patch by Daniel Stewart <stewartd@codeaurora.org>! Phabricator Revision: http://reviews.llvm.org/D5377 llvm-svn: 218418
-
Renato Golin authored
llvm-svn: 218417
-
Renato Golin authored
llvm-svn: 218416
-
Renato Golin authored
llvm-svn: 218415
-
Renato Golin authored
llvm-svn: 218414
-
Renato Golin authored
llvm-svn: 218413
-