1. Jul 05, 2014
    • Saleem Abdulrasool's avatar
      CodeGen: add support for MSBuiltin aliases · 96bfda8d
      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
      96bfda8d
    • Alp Toker's avatar
      Prune some ignored warning options · bc372a3d
      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
      bc372a3d
    • Rafael Espindola's avatar
      Fix a bug in the conversion to ErrorOr. · e6107799
      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
      e6107799
    • Rafael Espindola's avatar
      Revert "Convert a few std::strings to StringRef." · c75c4fad
      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
      c75c4fad
    • Sanjay Patel's avatar
      fixed typos · 69bf48ee
      Sanjay Patel authored
      llvm-svn: 212355
      69bf48ee
    • Rafael Espindola's avatar
      Ignore llvm specific symbols in the LTOModule. · 089a317c
      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
      089a317c
    • Ehsan Akhgari's avatar
      Fix up the test that expects the failure fixed in r212352 · edd82a99
      Ehsan Akhgari authored
      llvm-svn: 212353
      edd82a99
    • Ehsan Akhgari's avatar
      4103da6b
    • Rafael Espindola's avatar
      Ignore llvm.* globals. · 2dc0d9bd
      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
      2dc0d9bd
    • Saleem Abdulrasool's avatar
      TableGen: introduce support for MSBuiltin · 4e63fc49
      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
      4e63fc49
    • Rafael Espindola's avatar
      Implement LTOModule on top of IRObjectFile. · dddd1fd9
      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
      dddd1fd9
    • Rafael Espindola's avatar
      Avoid mangling names twice. No functionality change. · 0972d41c
      Rafael Espindola authored
      llvm-svn: 212348
      0972d41c
  2. Jul 04, 2014