1. Jun 09, 2014
  2. Jun 08, 2014
    • Simon Atanasyan's avatar
      8804e5cb
    • Alp Toker's avatar
      Revert "Do materialize for floating point" · 267d1f1c
      Alp Toker authored
      1) The commit was made despite profound lack of understanding:
      
         "I did not understand the comment about using dyn_cast instead of isa. I will
         commit as is and make the update after. You can explain what you meant to me."
      
         Commit first, understand later isn't OK.
      
      2) Review comments were simply ignored:
      
         "Can you edit the summary to describe what the patch is for? It appears to be
         a list of commits at the moment."
      
      3) The patch got LGTM'd off-list without any indication of readiness.
      
      4) The public mailing list was excluded from patch review so all of this was
         hidden from the community.
      
      This reverts commit r210414.
      
      llvm-svn: 210424
      267d1f1c
    • Craig Topper's avatar
      [C++11] Use 'nullptr'. Unittests edition. · 416fa34b
      Craig Topper authored
      llvm-svn: 210423
      416fa34b
    • Craig Topper's avatar
      [C++11] Use 'nullptr'. Tools edition. · 69186e73
      Craig Topper authored
      llvm-svn: 210422
      69186e73
    • Alp Toker's avatar
      Remove outdated CMake MSVC workaround · 71e07869
      Alp Toker authored
      llvm-svn: 210421
      71e07869
    • Alp Toker's avatar
      Split out inline asm parsing into ParseStmtAsm.cpp · 1b935a88
      Alp Toker authored
      This change isolates various llvm/MC headers from the rest of the parser and
      better aligns with the existing SemaStmtAsm.cpp.
      
      No change in functionality, code move only.
      
      llvm-svn: 210420
      1b935a88
    • Alp Toker's avatar
      Remove redundant typedef from MCAsmParserSemaCallback · 4700163b
      Alp Toker authored
      The last use has been removed in clang r210418.
      
      llvm-svn: 210419
      4700163b
    • Alp Toker's avatar
      Don't include llvm/MC/MCParser throughout all of Sema · 10399278
      Alp Toker authored
      Requires LLVM r210417.
      
      llvm-svn: 210418
      10399278
    • Alp Toker's avatar
      Make InlineAsmIdentifierInfo forward-declarable · f945e7b6
      Alp Toker authored
      This helps localize header inclusion in the frontend.
      
      llvm-svn: 210417
      f945e7b6
    • David Majnemer's avatar
      MS ABI: Simplify microsoft mangling of template instantiations · c986fcc9
      David Majnemer authored
      Use mangled template instantiation name as key for back references.
      Templates have their own context for back references, so their mangling
      is always the same regardless of context. This avoids mangling template
      instantiations twice.
      
      Patch by Agustín Bergé!
      
      llvm-svn: 210416
      c986fcc9
    • Saleem Abdulrasool's avatar
      MC: fix text section characteristics for WoA · 70a0206e
      Saleem Abdulrasool authored
      link.exe requires that the text section has the IMAGE_SCN_MEM_16BIT flag set.
      Otherwise, it will treat the function as ARM.  If this occurs, then jumps to the
      function will fail, switching from thumb to ARM mode execution.
      
      With this change, it is possible to link using the MSVC linker as well.
      
      llvm-svn: 210415
      70a0206e
    • Reed Kotler's avatar
      Do materialize for floating point · 491c33e9
      Reed Kotler authored
      Summary:
      start to do simple constants
      
      finish simplestore
      
      add test case
      
      format
      
      Merge branch 'master' into 1756_8
      
      Add basic functionality for assignment of ints. This creates a lot of core infrastructure in which to add, with little effort, quite a bit more to mips fast-isel
      
      Merge branch 'master' into 1756_8
      
      Add basic functionality for assignment of ints. This creates a lot of core infrastructure in which to add, with little effort, quite a bit more to mips fast-isel
      
      in progress
      
      finish integer materialize
      
      test cases
      
      test cases
      
      in progress
      
      Finish up fast-isel materialize for ints.
      
      Finish materialize for ints
      
      test cases
      
      simplestorei.ll
      
      Merge branch 'master' into 1756_8
      
      fix fp constants for fast-isel
      
      Merge branch '1758_1' of dmz-portal.mips.com:llvm into 1758_1
      
      in progress
      
      lastest for fp materialization
      
      clean up
      
      Merge branch 'master' into 1758_1
      
      formatting
      
      add test case
      
      finish test case
      
      Merge branch 'master' into 1758_2
      
      Test Plan:
      simplestore.ll
      
      simplestore.ll
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Differential Revision: http://reviews.llvm.org/D3659
      
      llvm-svn: 210414
      491c33e9
    • Reed Kotler's avatar
      start to clean up buildMI calls in mips fast-isel · fb77bc98
      Reed Kotler authored
      Summary: Merge branch 'master' into 1758_6
      
      Test Plan:
      No functionality change. Run "make check" and run test-suite.
      Because our servers are not yet running again I have not yet run test-suite.
      I will further review myself before submission.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Differential Revision: http://reviews.llvm.org/D3819
      
      llvm-svn: 210413
      fb77bc98
    • Alp Toker's avatar
      Re-enable ARM ELF tests · 6de91b56
      Alp Toker authored
      r210408 inadvertently disabled them when X86 is not selected.
      
      llvm-svn: 210412
      6de91b56
    • Alp Toker's avatar
      Fix build when no native target is enabled · 7bfa48b1
      Alp Toker authored
      The JITTests and MCJITTests unit test targets require a native arch with JIT
      support, otherwise fail to link.
      
      llvm-svn: 210411
      7bfa48b1
    • Reed Kotler's avatar
      include MipsGenFastISel.inc · 9fe25f35
      Reed Kotler authored
      Summary:
      Included this file which is needed to enable tablegen generated functionality
      for fast mips-isel
      
      Test Plan:
      This has no visible functionality by itself but just adding the include
      file creates some issues so I have it as a separate patch.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Differential Revision: http://reviews.llvm.org/D3812
      
      llvm-svn: 210410
      9fe25f35
    • Saleem Abdulrasool's avatar
      test: add test case for SVN r210406 · f0806cd7
      Saleem Abdulrasool authored
      Add missing test case for constructor section selection.  Thanks David Blaikie!
      
      llvm-svn: 210409
      f0806cd7
    • Saleem Abdulrasool's avatar
      test: move some tests into ARM directory · 46f1d9fb
      Saleem Abdulrasool authored
      Rather than requiring ARM support for the ELF tests (which is odd), move the
      tests that require ARM into a subdirectory to use lit to disable them if the
      support is not present.  Play this game to prevent disabling the ELF tests on
      the Windows build bots as they have caught issues in the past with interactions
      between various platforms.
      
      llvm-svn: 210408
      46f1d9fb
    • Saleem Abdulrasool's avatar
      MC: make ELF .type handling more GNU AS compatible · 13b414a3
      Saleem Abdulrasool authored
      GAS documents the .type directive as having an optional comma following the key
      symbol name when using the STT_<TYPE_IN_UPPER_CASE> form.  However, it treats
      the comma as optional in all cases.  This makes the IAS support both forms of
      inputs.  Furthermore, the prefixed forms take either the upper case name or the
      lower case alias.
      
      The tests are split into two separate sets as the hash character serves as a
      comment character on x86, which is tested in the second set by using arm-elf
      which uses the at symbol as a comment character.
      
      llvm-svn: 210407
      13b414a3
    • Saleem Abdulrasool's avatar
      MC: fix ctor/dtor section for windows-itanium · ed7fc4b7
      Saleem Abdulrasool authored
      This adjusts the section setup for the windows-itanium environment.  This
      environment does not report to be a known windows msvc environment, even though
      it is (nearly) identical to the MSVC environment for C code.
      
      llvm-svn: 210406
      ed7fc4b7
    • Saleem Abdulrasool's avatar
      MC: whitespace, grouping for COFF section setup · a35f04aa
      Saleem Abdulrasool authored
      Add some whitespace, combine two sequential conditionals into a single one.
      Reformat some section definitions to maintain uniformity in the function.
      NFC.
      
      llvm-svn: 210405
      a35f04aa
    • Alp Toker's avatar
      DeclObjC: Fix comments about bad API · 84c42408
      Alp Toker authored
      What's going on here isn't overriding but rather the sketchy practice of member
      hiding (shadowing of base members).
      
      llvm-svn: 210404
      84c42408
    • Alp Toker's avatar
      Avoid dubious IdentifierInfo::getNameStart() uses · 541d5070
      Alp Toker authored
      These cases in particular were incurring an extra strlen() when we already knew
      the length. They appear to be leftovers from when the interfaces worked with C
      strings that have continued to compile due to the implicit StringRef ctor.
      
      llvm-svn: 210403
      541d5070
    • Alp Toker's avatar
      StringRefize TargetInfo::getABI() · 4925ba7f
      Alp Toker authored
      llvm-svn: 210402
      4925ba7f
    • Alp Toker's avatar
      Fix typos · 5c536394
      Alp Toker authored
      llvm-svn: 210401
      5c536394
    • Alp Toker's avatar
      Build fix: remove initializeJumpInstrTablesPass() call from LTO · 17dd8efe
      Alp Toker authored
      This was incurring an unsatisfied dependency on CodeGen from LTO breaking
      shared builds:
      
      Undefined symbols for architecture x86_64:
        "llvm::initializeJumpInstrTablesPass(llvm::PassRegistry&)", referenced from:
            llvm::LTOCodeGenerator::initializeLTOPasses() in LTOCodeGenerator.cpp.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
      Removed as a temporary measure pending feedback from the author.
      
      llvm-svn: 210400
      17dd8efe
    • Saleem Abdulrasool's avatar
      ARM: correct assertion for long-calls on WoA · 90386ad6
      Saleem Abdulrasool authored
      COFF/PE, so the relocation model is never static.  Loosen the assertion
      accordingly.  The relocation can still be emitted properly, as it will be
      converted to an IMAGE_REL_ARM_ADDR32 which will be resolved by the loader
      taking the base relocation into account.  This is necessary to permit the
      emission of long calls which can be controlled via the -mlong-calls option in
      the driver.
      
      llvm-svn: 210399
      90386ad6