- Jul 06, 2014
-
-
Rafael Espindola authored
llvm-svn: 212403
-
Rafael Espindola authored
llvm-svn: 212402
-
Rafael Espindola authored
llvm-svn: 212401
-
Alp Toker authored
Looks like the casts are needed there after all. llvm-svn: 212399
-
Alp Toker authored
Use 0 for the invalid buffer instead of -1/~0 and switch to unsigned representation to enable more idiomatic usage. Also introduce a trivial SourceMgr::getMainFileID() instead of hard-coding 0/1 to identify the main file. llvm-svn: 212398
-
Alp Toker authored
And also remove some redundant casts from r212371. llvm-svn: 212397
-
Alp Toker authored
It was deprecated in r212366 and all uses have been switched to get(). llvm-svn: 212382
-
- Jul 05, 2014
-
-
Matt Arsenault authored
llvm-svn: 212380
-
Matt Arsenault authored
llvm-svn: 212379
-
Saleem Abdulrasool authored
A number of the ARM intrinsics are aliased with alternative names in MSVC compatibility mode. This change indicates those intrinsics to permit tablegen to construct an appropriate list of MSBuiltins. With the corresponding change in clang, these intrinsics can then be mapped from the frontend. The tests to validate the intrinsics are aliased correctly will be added with the corresponding clang change. llvm-svn: 212377
-
Ehsan Akhgari authored
llvm-svn: 212376
-
Ehsan Akhgari authored
llvm-svn: 212375
-
Simon Atanasyan authored
llvm-svn: 212374
-
Rafael Espindola authored
llvm-svn: 212371
-
David Majnemer authored
The slice(N, M) interface is powerful but not concise when wanting to drop a few elements off of an ArrayRef, fix this by adding a drop_back method. llvm-svn: 212370
-
Alp Toker authored
This better aligns with other LLVM-specific and C++ standard library smart pointer types. In particular there are at least a few uses of intrusive refcounting in the frontend where it's worth investigating std::shared_ptr as a more appropriate alternative. llvm-svn: 212366
-
David Majnemer authored
This just lets us dump a const MCSymbolData object, no functionality changed. llvm-svn: 212365
-
Rafael Espindola authored
llvm-svn: 212364
-
David Majnemer authored
No functionality changed, just make it so that the code _could_ be uncommented. llvm-svn: 212363
-
David Majnemer authored
Switch a normal for-loop to a range-based for. No functionality changed. llvm-svn: 212362
-
Rafael Espindola authored
llvm-svn: 212361
-
David Majnemer authored
A GEP of a non-weak global variable will not be equivalent to another non-weak global variable or a GEP of such a variable. Differential Revision: http://reviews.llvm.org/D4238 llvm-svn: 212360
-
- Jul 04, 2014
-
-
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
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
-
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
-
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
-