- Mar 04, 2014
-
-
Chandler Carruth authored
instructions. llvm-svn: 202834
-
Chandler Carruth authored
directly care about the Value class (it is templated so that the key can be any arbitrary Value subclass), it is in fact concretely tied to the Value class through the ValueHandle's CallbackVH interface which relies on the key type being some Value subclass to establish the value handle chain. Ironically, the unittest is already in the right library. llvm-svn: 202824
-
Chandler Carruth authored
Move the test for this class into the IR unittests as well. This uncovers that ValueMap too is in the IR library. Ironically, the unittest for ValueMap is useless in the Support library (honestly, so was the ValueHandle test) and so it already lives in the IR unittests. Mmmm, tasty layering. llvm-svn: 202821
-
Chandler Carruth authored
obviously is coupled to the IR. llvm-svn: 202818
-
Chandler Carruth authored
business. This header includes Function and BasicBlock and directly uses the interfaces of both classes. It has to do with the IR, it even has that in the name. =] Put it in the library it belongs to. This is one step toward making LLVM's Support library survive a C++ modules bootstrap. llvm-svn: 202814
-
Chandler Carruth authored
llvm-svn: 202811
-
Yaron Keren authored
llvm-svn: 202806
-
- Mar 02, 2014
-
-
Benjamin Kramer authored
The interaction between defaulted operators and move elision isn't totally obvious, add a unit test so it doesn't break unintentionally. llvm-svn: 202662
-
Chandler Carruth authored
access to it on all host toolchains. llvm-svn: 202642
-
Benjamin Kramer authored
Remove the old functions. llvm-svn: 202636
-
Craig Topper authored
llvm-svn: 202621
-
Chandler Carruth authored
directly, and remove the macro. llvm-svn: 202612
-
Chandler Carruth authored
std::unique_ptr<T>. Patch by Ahmed Charles! llvm-svn: 202609
-
Chandler Carruth authored
it interoperate (minimally) with std::unique_ptr<T>. This is part of my plan to migrate LLVM to use std::unique_ptr with a minimal impact on out-of-tree code. Patch by Ahmed Charles with some minor cleanups (and bool casts) by me. llvm-svn: 202608
-
- Mar 01, 2014
-
-
Chandler Carruth authored
llvm-svn: 202587
-
Chandler Carruth authored
llvm-svn: 202583
-
- Feb 28, 2014
-
-
Rafael Espindola authored
llvm-svn: 202510
-
Rafael Espindola authored
This lets us run the unittest from the command line without setting LD_LIBRARY_PATH. llvm-svn: 202509
-
- Feb 26, 2014
-
-
David Blaikie authored
llvm-svn: 202286
-
Duncan P. N. Exon Smith authored
Prevent a crash in the SmallDenseMap copy constructor whenever the other map is not in small mode. <rdar://problem/14292693> llvm-svn: 202206
-
- Feb 25, 2014
-
-
Rafael Espindola authored
No tool does this currently, but as everything else in a module we should be able to change its DataLayout. Most of the fix is in DataLayout to make sure it can be reset properly. The test uses Module::setDataLayout since the fact that we mutate a DataLayout is an implementation detail. The module could hold a OwningPtr<DataLayout> and the DataLayout itself could be immutable. Thanks to Philip Reames for pushing me in the right direction. llvm-svn: 202198
-
Rafael Espindola authored
Instead, have a DataLayoutPass that holds one. This will allow parts of LLVM don't don't handle passes to also use DataLayout. llvm-svn: 202168
-
Renato Golin authored
llvm-svn: 202127
-
- Feb 24, 2014
-
-
Andrew Trick authored
See <rdar://16149106> [MCJIT] provide a platform-independent way to communicate callee-save frame info. <rdar://16149279> [MCJIT] get the host OS version from a runtime check, not a configure-time check. llvm-svn: 202082
-
Rafael Espindola authored
After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052
-
Rafael Espindola authored
llvm-svn: 202050
-
- Feb 23, 2014
-
-
Rafael Espindola authored
Before this patch they would take an boolean argument to say if the path already existed. This was redundant with the returned error_code which is able to represent that. This allowed for callers to incorrectly check only the existed flag instead of first checking the error code. Instead, pass in a boolean flag to say if the previous (non-)existence should be an error or not. Callers of the of the old simple versions are not affected. They still ignore the previous (non-)existence as they did before. llvm-svn: 201979
-
- Feb 22, 2014
-
-
Logan Chien authored
This commit moves getSLEB128Size() and getULEB128Size() from MCAsmInfo to LEB128.h and removes some copy-and-paste code. Besides, this commit also adds some unit tests for the LEB128 functions. llvm-svn: 201937
-
- Feb 21, 2014
-
-
Filip Pizlo authored
Disable it on non-X86-64 platforms and add a comment. llvm-svn: 201838
-
Filip Pizlo authored
should not be marked nounwind. Marking them nounwind caused crashes in the WebKit FTL JIT, because if we enable sufficient optimizations, LLVM starts eliding compact_unwind sections (or any unwind data for that matter), making deoptimization via stackmaps impossible. This changes the stackmap intrinsic to be may-throw, adds a test for exactly the sympton that WebKit saw, and fixes TableGen to handle un-attributed intrinsics. Thanks to atrick and philipreames for reviewing this. llvm-svn: 201826
-
- Feb 20, 2014
-
-
Eric Christopher authored
passing down an AsmPrinter instance so we could compute the size of the block which could be target specific. All of the test cases in the unittest don't have any target specific data so we can use a NULL AsmPrinter there. This also depends upon block data being added as integers. We can now hash the entire fission-cu.ll compile unit so turn the flag on there with the hash value. llvm-svn: 201752
-
Eric Christopher authored
llvm-svn: 201749
-
Eric Christopher authored
llvm-svn: 201748
-
Eric Christopher authored
llvm-svn: 201747
-
Eric Christopher authored
llvm-svn: 201746
-
- Feb 15, 2014
-
-
Lang Hames authored
llvm-svn: 201451
-
- Feb 13, 2014
-
-
Reid Kleckner authored
In theory, Clang should figure out how to parse this correctly without typename, but since this is the last TU that Clang falls back on in the self-host, I'm going to compromise and check for __clang__. And now Clang can self-host on -win32 without fallback! The 'check' and 'check-clang' targets both pass. llvm-svn: 201358
-
Lang Hames authored
llvm-svn: 201279
-
Lang Hames authored
sections, at least on MachO. Relax expectations to keep the bots green while I investigate. llvm-svn: 201277
-
- Feb 12, 2014
-
-
Lang Hames authored
required for all sections in a module. This can be useful when targets or code-models place strict requirements on how sections must be laid out in memory. If RTDyldMemoryManger::needsToReserveAllocationSpace() is overridden to return true then the JIT will call the following method on the memory manager, which can be used to preallocate the necessary memory. void RTDyldMemoryManager::reserveAllocationSpace(uintptr_t CodeSize, uintptr_t DataSizeRO, uintptr_t DataSizeRW) Patch by Vaidas Gasiunas. Thanks very much Viadas! llvm-svn: 201259
-