- Mar 04, 2014
-
-
Chandler Carruth authored
name might indicate, it is an iterator over the types in an instruction in the IR.... You see where this is going. Another step of modularizing the support library. llvm-svn: 202815
-
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
-
Dmitry Vyukov authored
llvm-svn: 202813
-
Tim Northover authored
Since these are primarily useful for deeply embedded targets where code size is very important, they are each in a separate file making use of infrastructure in sync-ops.h. This allows a linker to include just the functions that are actually used. rdar://problem/14736665 llvm-svn: 202812
-
Chandler Carruth authored
llvm-svn: 202811
-
Chandler Carruth authored
a missing include from CLog.h. CLog.h referenced most of the core libclang types but never directly included Index.h that provides them. Previously it got lucky and other headers were always included first but with the sorting it ended up first in one case and stopped compiling. Adding the Index.h include fixes it right up. llvm-svn: 202810
-
Chandler Carruth authored
llvm-svn: 202809
-
Timur Iskhodzhanov authored
llvm-svn: 202808
-
Vladimir Medic authored
This patch implements .set mips32r2 directive and sets appropriate feature bits. It also introduces helper functions that are used to set and clear feature bits as necessary. This directive is a counterpart of -mips32r2 command line options with the exception that it does not influence elf header flags. The usage example is gives in test file. llvm-svn: 202807
-
Yaron Keren authored
llvm-svn: 202806
-
Chandler Carruth authored
out-of-line so that it can refer to the methods on User. As a consequence, this removes the need to define one template method if value_use_iterator in the extremely strange User.h header (!!!). This makse Use.h slightly less peculiar. The only remaining real peculiarity is the definition of Use::set in Value.h llvm-svn: 202805
-
Yaron Keren authored
llvm-svn: 202804
-
NAKAMURA Takumi authored
llvm-svn: 202803
-
Chandler Carruth authored
swap implementation. llvm-svn: 202802
-
Alexey Samsonov authored
Patch by Viktor Kutuzov! llvm-svn: 202801
-
Patrik Hagglund authored
llvm-svn: 202800
-
Chandler Carruth authored
inconsistent both with itself and with LLVM at large with formatting. The *s were on the wrong side, the indent was off, etc etc. This is much cleaner. Also, go clang-format laying out the array of tags in nice columns. llvm-svn: 202799
-
Chandler Carruth authored
the Use class. More cleanups to come here. This class just needs some TLC. llvm-svn: 202798
-
Alexey Samsonov authored
Patch by Brad King. Our add_sanitizer_rt_symbols macro reads the LOCATION property of a library to compute the location of the "lib<name>.a.syms" file to generate next to the corresponding "lib<name>.a" library file. CMake 3.0 introduces policy CMP0026 to disallow reading of the LOCATION target property from non-imported targets in favor of the more powerful $<TARGET_FILE> generator expression. Teach add_sanitizer_rt_symbols to use the $<TARGET_FILE> generator expression to compute the location of the symbols file to generate with a custom command. CMake 3.0 also adds support for generator expressions to install(FILES) so use it when available to simplify installation of the symbols file of the proper configuration. llvm-svn: 202797
-
Alexey Samsonov authored
Patch by Brad King. When using a multi-config generator with CMake, such as for VS or Xcode, the LOCATION target property value contains a placeholder such as "$(Configuration)" that is meant for substitution by the native build tool. The install(FILES) command does not understand this name and will not install the symbols file correctly when using these generators. Teach add_sanitizer_rt_symbols to read the more-specific target property LOCATION_<CONFIG> that has a per-configuration value and no placeholder. On single-configuration generators (Makefile, Ninja), CMAKE_BUILD_TYPE contains the name of the one configuration to be built. On multi-config generators (VS, Xcode), CMAKE_CONFIGURATION_TYPES contains the list of possible configurations. In the latter case, loop over the configs and add a configuration-specific install(FILES) rule for each one. Place the code block inside an if(TRUE) block so it can be made conditional in a following change without updating indentation. llvm-svn: 202796
-
NAKAMURA Takumi authored
llvm-svn: 202795
-
NAKAMURA Takumi authored
llvm-svn: 202794
-
Evgeniy Stepanov authored
Mirror recent cmake changes in the configure/make build system. llvm-svn: 202793
-
Argyrios Kyrtzidis authored
llvm-svn: 202792
-
Craig Topper authored
llvm-svn: 202791
-
David Majnemer authored
Move some c++11 specific tests to mangle-ms-cxx11 llvm-svn: 202790
-
David Majnemer authored
We wouldn't recognize variable templates as being templates leading us to leave the template arguments off of the mangled name. This would allow two unrelated templates to map to the same mangled name. N.B. While MSVC doesn't support variable templates as of this date, this mangling is the most likely thing they will choose to use. Their demangler can successfully demangle our manglings with the template arguments shown. llvm-svn: 202789
-
Todd Fiala authored
Modified some test annotations so that tests on Linux that should be skipped don't show up as XFAIL. The following two tests showed up as XFAIL even though they should always be skipped on Linux, due to the @unittest2.expectedFailure annotation appearing above the @dsym_test annotation: TestObjCNewSyntax.ObjCNewSyntaxTestCase.test_expr_with_dsym TestBlocks.BlocksTestCase.test_expr_with_dsym. For those two, I simply moved the @dsym_test annotation to the top so that it would be marked for skip ahead of being marked for XFAIL. TestObjCNewSyntax.ObjCNewSyntaxTestCase.test_expr_with_dwarf I marked as @skipIfLinux since my understanding is that isn't a valid test to run on Linux. So rather than categorize as a fail (i.e. something wrong to be fixed), just skip it. (My recent changes to Linux tests have been following that model: if it could never work, skip; if it's broken, mark XFAIL so we can easily track, fix, notice the fix and adjust accordingly). TestDeadStrip.DeadStripTestCase.test_with_dwarf I had previously marked as XFAIL but this would never work on Linux with the current linker AFAICT. Marked it as skip. llvm-svn: 202788
-
Rui Ueyama authored
llvm-svn: 202787
-
Rui Ueyama authored
llvm-svn: 202786
-
Rui Ueyama authored
The original code does not work correctly on executable files because the code is written in such a way that only object files are assumed to be given to llvm-objdump. Contents of RuntimeFunction are different between executables and objects. In executables, fields in RuntimeFunction have actual addresses to unwind info structures. On the other hand, in object files, the fields have zero value, but instead there are relocations pointing to the fields, so that Linker will fill them at link-time. So, when we are reading an object file, we need to use relocation info to find the location of unwind info. When executable, we should just look at the values in RuntimeFunction. llvm-svn: 202785
-
Alexey Bataev authored
llvm-svn: 202784
-
Rui Ueyama authored
llvm-svn: 202783
-
Jim Ingham authored
llvm-svn: 202782
-
Rui Ueyama authored
No functionality change. llvm-svn: 202781
-
David Blaikie authored
DebugInfo: Make test (introduced in r202769) resilient to platforms that default to -fstandalone-debug llvm-svn: 202780
-
David Blaikie authored
DebugInfo: Improvements/corrections to conservative emission of types in explicit template instantiation declarations * detect out of line definitions correctly * detect member function explicit specializations correctly llvm-svn: 202779
-
Alexey Bataev authored
llvm-svn: 202778
-
Pete Cooper authored
llvm-svn: 202777
-
Jason Molenda authored
Temporarily revert part of Greg's changes in r202738 which are causing problems with the testsuite and SBDebugger::CreateTarget(). llvm-svn: 202776
-