- Jul 05, 2014
-
-
Saleem Abdulrasool authored
This completes the infrastructure for the new MSBuiltin aliases in the instruction definitions. These behave similar to the GCCBuiltin in that they can be implicitly constructed without special handling unless needed. With this change it is possible to annotate an LLVM intrinsic in the backend instruction definitions and indicate it as a builtin in the Builtin*.def files in clang via LANGBUILTIN. That will automatically pass through the instruction much as a GCCBuiltin. Note that there is no need for the special handling for ensuring that the compatibility flag is enabled since the filtering on the LANGBUILTIN will automatically prevent the intrinsic from bleeding into non-MS compatible compiler invocations. llvm-svn: 212359
-
Alp Toker authored
These are forms that have either slipped in without being requested for compatibility or that GCC doesn't support in the first place. llvm-svn: 212358
-
Rafael Espindola authored
The regular end of the bitcode parsing is in the BitstreamEntry::EndBlock case. Should fix the LTO bootstrap on OS X (this function is only used by ld64). llvm-svn: 212357
-
Rafael Espindola authored
This reverts commit r212342. We can get a StringRef into the current Record, but not one in the bitcode itself since the string is compressed in it. llvm-svn: 212356
-
Sanjay Patel authored
llvm-svn: 212355
-
Rafael Espindola authored
These are the llvm.* globals and functions. I don't think it is possible to test this directly since llvm-lto is not a full linker and will not report duplicated symbols, but this fixes bootstrap with gold and lto enabled. llvm-svn: 212354
-
Ehsan Akhgari authored
llvm-svn: 212353
-
Ehsan Akhgari authored
This fixes http://llvm.org/PR20202 llvm-svn: 212352
-
Rafael Espindola authored
It is not clear if llvm.global_ctors should or should not be in llvm.metadata, but in practice it is not and we need to ignore it for LTO. llvm-svn: 212351
-
Saleem Abdulrasool authored
Add MSBuiltin which is similar in vein to GCCBuiltin. This allows for adding intrinsics for Microsoft compatibility to individual instructions. This is needed to permit the creation of ARM specific MSVC extensions. This is not currently in use, and requires an associated change in clang to enable use of the intrinsics defined by this new class. This merely sets the LLVM portion of the infrastructure in place to permit the use of this functionality. A separate set of changes will enable the new intrinsics. llvm-svn: 212350
-
Rafael Espindola authored
IRObjectFile provides all the logic for producing mangled names and getting symbols from inline assembly. LTOModule then adds logic for linking specific tasks, like constructing llvm.compiler_user or extracting linker options from the bitcode. The rule of the thumb is that IRObjectFile has the functionality that is needed by both LTO and llvm-ar. llvm-svn: 212349
-
Rafael Espindola authored
llvm-svn: 212348
-
- Jul 04, 2014
-
-
Rafael Espindola authored
llvm-svn: 212347
-
Daniel Sanders authored
Differential Revision: http://reviews.llvm.org/D4386 llvm-svn: 212346
-
Daniel Sanders authored
Summary: The tests in this directory are intended to test a single IR instruction with as few dependencies on other instructions as possible. The aim is to be very confident that each LLVM-IR instruction is implemented correctly and with the optimal sequence of instructions, as well as to make it easy to tell what is tested, and make it easier to bring up new ISA revisions in the future. This gives us a good foundation on which to test bigger things. These particular tests will allow testing that MIPS32r6/MIPS64r6 generate the correct return instruction for returns, calls, and indirect branches. This will be a bit tricky since the assembly text is identical but the instruction is actually different. On MIPS32r6/MIPS64r6 'jr $rs' has been removed in favour of the equivalent 'jalr $zero, $rs'. 'jr $rs' remains as an alias for 'jalr $zero, $rs'. Differential Revision: http://reviews.llvm.org/D4266 llvm-svn: 212345
-
Rafael Espindola authored
llvm-svn: 212344
-
Rafael Espindola authored
llvm-svn: 212343
-
Rafael Espindola authored
llvm-svn: 212342
-
Rafael Espindola authored
llvm-svn: 212341
-
Rafael Espindola authored
If needed, an ErrorOr should be used. llvm-svn: 212340
-
Simon Atanasyan authored
llvm-svn: 212339
-
Simon Atanasyan authored
llvm-svn: 212338
-
Benjamin Kramer authored
GlobalDCE: Delete available_externally initializers if it allows removing the value the initializer is referring to. This is useful for functions that are not actually available externally but referenced by a vtable of some kind. Clang emits functions like this for the MS ABI. PR20182. llvm-svn: 212337
-
Simon Atanasyan authored
Cpp11 standard since r202637. llvm-svn: 212336
-
NAKAMURA Takumi authored
llvm-svn: 212335
-
NAKAMURA Takumi authored
This doesn't pass if stack alignment is not 16, like cygming, *bsd. llvm-svn: 212334
-
Tim Northover authored
The linker relies on relocation type info (e.g. is it a branch?) to perform the correct actions, so we should keep that even when we end up using a scattered relocation for whatever reason. rdar://problem/17553104 llvm-svn: 212333
-
Tim Northover authored
There were two issues here: 1. At the very least, scattered relocations cannot use the same code to determine the corresponding symbol being referred to. For some reason we pretend there is no symbol, even when one actually exists in the symtab, so to match this behaviour getRelocationSymbol should simply return symbols_end for scattered relocations. 2. Printing "-" when we can't get a symbol (including the scattered case, but not exclusively), isn't that helpful. In both cases there *is* interesting information in that field, so we should print it. As hex will do. Small part of rdar://problem/17553104 llvm-svn: 212332
-
Benjamin Kramer authored
InstCombine: Strength reduce sadd.with.overflow into a regular nsw add if we can prove that it cannot overflow. PR20194 llvm-svn: 212331
-
Daniel Sanders authored
We have detected a documentation bug in the encoding tables of the released MIPS64r6 specification that has resulted in the wrong encodings being used for these instructions in LLVM. This commit corrects them. llvm-svn: 212330
-
Evgeniy Stepanov authored
llvm-svn: 212329
-
Sylvestre Ledru authored
llvm-svn: 212328
-
Sylvestre Ledru authored
Reviewers: rafael, rnk Reviewed By: rnk Subscribers: rnk, cfe-commits Differential Revision: http://reviews.llvm.org/D4357 llvm-svn: 212327
-
Chandler Carruth authored
I still don't love testing the comments, but its the only sane way to check shuffle instructions... llvm-svn: 212326
-
Chandler Carruth authored
(meant to put this cleanup in the previous patch, sorry) llvm-svn: 212325
-
Chandler Carruth authored
any constant, constant FP, or undef splat and to tolerate any undef lanes in a splat, then replace all uses of isSplatVector in X86's lowering with it. This fixes issues where undef lanes in an otherwise splat vector would prevent the splat logic from firing. It is a touch more awkward to use this interface, but it is much more accurate. Suggestions for better interface structuring welcome. With this fix, the code generated with the widening legalization strategy for widen_cast-4.ll is *dramatically* improved as the special lowering strategies for a v16i8 SRA kick in even though the high lanes are undef. We also get a slightly different choice for broadcasting an aligned memory location, and use vpshufd instead of vbroadcastss. This looks like a minor win for pipelining and domain crossing, but a minor loss for the number of micro-ops. I suspect its a wash, but folks can easily tweak the lowering if they want. llvm-svn: 212324
-
Chandler Carruth authored
a non-null node. In particular, this makes it easier to use condition variables with SDValues, etc. llvm-svn: 212323
-
Kostya Serebryany authored
llvm-svn: 212322
-
Alexey Volkov authored
Silvermont can only decode one instruction per cycle if the instruction exceeds 8 bytes. Also in Silvermont instructions with more than 3 prefixes will cause 3 cycle penalty. Maximum nop length is limited to 7 bytes when used for padding on Silvermont. For other x86 processors max nop length remains unchanged 15 bytes. Differential Revision: http://reviews.llvm.org/D4374 llvm-svn: 212321
-
Todd Fiala authored
This change removes the ScriptInterpreter::TerminateInterpreter() call which ended up endlessly calling itself as things currently stand. It also cleans up some other Windows-related cmake changes. See http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140630/011544.html for more details. Change by Zachary Turner llvm-svn: 212320
-