Skip to content
  1. Apr 21, 2015
  2. Apr 20, 2015
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Fix Kaleidoscope Ch. 8 after r235327 · 3b6f1d57
      Duncan P. N. Exon Smith authored
      Pretty sure the build was broken by r235327 (I updated it there, but
      apparently didn't check if it compiled).
      
      llvm-svn: 235353
      3b6f1d57
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Delete old subclasses of DIType · c6246885
      Duncan P. N. Exon Smith authored
      Delete subclasses of (the already deleted) `DIType` in favour of
      directly using pointers from the `Metadata` hierarchy.
      
      While `DICompositeType` wraps `MDCompositeTypeBase` and `DIDerivedType`
      wraps `MDDerivedTypeBase`, most uses of each really meant the more
      specific `MDCompositeType` and `MDDerivedType`.
      
      llvm-svn: 235351
      c6246885
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Prepare for deletion of subclasses of DIType · c09c548b
      Duncan P. N. Exon Smith authored
      Subclasses of (the already deleted) `DIType` will be deleted by an
      upcoming LLVM commit.  Remove references.
      
      While `DICompositeType` wraps `MDCompositeTypeBase` and `DIDerivedType`
      wraps `MDDerivedTypeBase`, most uses of each really meant the more
      specific `MDCompositeType` and `MDDerivedType`.  I updated accordingly.
      
      llvm-svn: 235350
      c09c548b
    • Duncan P. N. Exon Smith's avatar
      DwarfUnit: Split MDSubroutineType version of constructTypeDIE() · 698df36a
      Duncan P. N. Exon Smith authored
      The version of `constructTypeDIE()` for `MDSubroutineType` is unrelated
      to (and has different callers than) the `MDCompositeType`.  Split the
      two in half.
      
      This simplifies an upcoming patch to delete `DICompositeType`.  There
      shouldn't be any real functionality change here.  `createTypeDIE()` is
      `cast<>`'ing where it didn't need to before, but that function in turn
      is only called for true `MDCompositeType`s.
      
      llvm-svn: 235349
      698df36a
    • Samuel Benzaquen's avatar
      Add conversionDecl matcher for node CXXConversionDecl. · 025f6b19
      Samuel Benzaquen authored
      llvm-svn: 235348
      025f6b19
    • Lang Hames's avatar
      [Orc] Make the makeStub function propagate argument attributes onto the call to · dc4260db
      Lang Hames authored
      the function body.
      
      This is necessary for correctness when lazily compiling.
      
      Also, flesh out the Orc unit test infrastructure slightly, and add a unit test
      for this.
      
      llvm-svn: 235347
      dc4260db
    • Ying Chen's avatar
      Add Makefile for typedef_array · 1ff46f20
      Ying Chen authored
      -Makefile was deleted by r235313 causing test failure of TestTypedefArray.py, add it back
      
      Summary: -Makefile was deleted by r235313 causing test failure of TestTypedefArray.py, add it back
      
      Test Plan: Run lldb test locally with change, TestTypedefArray.py passed and no regression observed.
      
      Reviewers: chaoren, sivachandra, vharron
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D9119
      
      llvm-svn: 235346
      1ff46f20
    • Duncan P. N. Exon Smith's avatar
      DwarfUnit: Cleanup comments · d89ef16a
      Duncan P. N. Exon Smith authored
      Update comment style in `DwarfUnit`.
      
        - Drop duplicated comments at definition, and update the comments at
          the declaration where the definition comments looked newer or more
          complete.
        - Drop the `functionName -` prefix.
        - Add `\brief` in a few places.
        - Remove a few comments entirely that weren't adding value (just
          turned the function name and arguments into a sentence).
      
      llvm-svn: 235345
      d89ef16a
    • Olivier Sallenave's avatar
      Refactoring and enhancement to FMA combine. · b99c2eb0
      Olivier Sallenave authored
      llvm-svn: 235344
      b99c2eb0
    • Duncan P. N. Exon Smith's avatar
      Fix polly build after LLVM r235327 · f06f583f
      Duncan P. N. Exon Smith authored
      llvm-svn: 235343
      f06f583f
    • Andrew Kaylor's avatar
      Fixing line endings · 3ae6251c
      Andrew Kaylor authored
      llvm-svn: 235342
      3ae6251c
    • Pirama Arumuga Nainar's avatar
      [MIPS] OperationAction for FP_TO_FP16, FP16_TO_FP · 34056dea
      Pirama Arumuga Nainar authored
      Summary:
      Set operation action for FP16 conversion opcodes, so the Op legalizer
      can choose the gnu_* libcalls for Mips.
      
      Set LoadExtAction and TruncStoreAction for f16 scalars and vectors to
      prevent (fpext (load )) and (store (fptrunc)) from getting combined into
      unsupported operations.
      
      Added test cases to test that these operations are handled correctly
      for f16 scalars and vectors.  This patch depends on
      http://reviews.llvm.org/D8755.
      
      Reviewers: srhines
      
      Subscribers: llvm-commits, ab
      
      Differential Revision: http://reviews.llvm.org/D8804
      
      llvm-svn: 235341
      34056dea
    • Reid Kleckner's avatar
      Put statement expression decls in the enclosing code DeclContext · b9ece24d
      Reid Kleckner authored
      We already check that statement expressions are in a function or block,
      but we didn't do anything with that information. Now we use that
      DeclContext for the duration of the statement expression. Otherwise,
      we'd treat statement expression locals as static data members and go
      into the weeds.
      
      llvm-svn: 235335
      b9ece24d
    • Tom Stellard's avatar
      DAGCombine: Remove redundant NaN checks around ISD::FSQRT · 69a7b91e
      Tom Stellard authored
      This folds:
      
      (select (setcc x, -0.0, *lt), NaN, (fsqrt x)) -> ( fsqrt x)
      
      llvm-svn: 235333
      69a7b91e
    • Tom Stellard's avatar
      IR: Add ConstantFP::getNaN() · 67246d13
      Tom Stellard authored
      This is a wrapper around APFloat::getNaN().
      
      llvm-svn: 235332
      67246d13
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Remove DIType · 9928a909
      Duncan P. N. Exon Smith authored
      This is the last major parent class, so I'll probably start deleting
      classes in batches now.  Looks like many of the references to the DI*
      hierarchy were updated organically along the way.
      
      llvm-svn: 235331
      9928a909
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Prepare for deletion of DIType · 0b6c3696
      Duncan P. N. Exon Smith authored
      `DIType` is going to be deleted by an upcoming LLVM commit, so replace
      uses with `MDType*`.
      
      llvm-svn: 235330
      0b6c3696
    • Tom Stellard's avatar
      configure: Add --enable-runtime-subnormal option · d9ca1f15
      Tom Stellard authored
      This makes it possible for runtime implementations to disable
      subnormal handling at runtime.
      
      When this flag is enabled, decisions about how to handle subnormals
      in the library will be controlled by an external variable called
      __CLC_SUBNORMAL_DISABLE.
      
      Function implementations should use these new helpers for querying subnormal
      support:
      __clc_fp16_subnormals_supported();
      __clc_fp32_subnormals_supported();
      __clc_fp64_subnormals_supported();
      
      In order for the library to link correctly with this feature,
      users will be required to either:
      
      1. Insert this variable into the module (if using the LLVM/Clang C++/C APIs).
      
      2. Pass either subnormal_disable.bc or subnormal_use_default.bc to the
      linker.  These files are distributed with liblclc and installed to
      $(installdir).  e.g.:
      
      llvm-link -o kernel-out.bc kernel.bc builtins-nosubnormal.bc subnormal_disable.bc
      
      or
      
      llvm-link -o kernel-out.bc kernel.bc builtins-nosubnormal.bc subnormal_use_default.bc
      
      If you do not supply the --enable-runtime-subnormal then the library
      behaves the same as it did before this commit.
      
      In addition to these changes, the patch adds helper functions that
      should be used when implementing library functions that need
      special handling for denormals:
      
      __clc_fp16_subnormals_supported();
      __clc_fp32_subnormals_supported();
      __clc_fp64_subnormals_supported();
      
      llvm-svn: 235329
      d9ca1f15
    • Andrew Kaylor's avatar
      [WinEH] Fix memory leak with catch-all mapping. · f18771bd
      Andrew Kaylor authored
      llvm-svn: 235328
      f18771bd
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Remove DIScope · be9e4fe7
      Duncan P. N. Exon Smith authored
      Replace uses of `DIScope` with `MDScope*`.  There was one spot where
      I've left an `MDScope*` uninitialized (where `DIScope` would have been
      default-initialized to `nullptr`) -- this is intentional, since the
      if/else that follows should unconditional assign it to a value.
      
      llvm-svn: 235327
      be9e4fe7
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Prepare for deletion of DIScope · fc8d9d9a
      Duncan P. N. Exon Smith authored
      An upcoming LLVM commit will delete `DIScope`, so update users to
      `MDScope*`.
      
      llvm-svn: 235326
      fc8d9d9a
    • Lang Hames's avatar
      [Orc] Use the 64-bit versions of FXSAVE/FXRSTOR for JIT reentry. · 67e6e04a
      Lang Hames authored
      llvm-svn: 235325
      67e6e04a
    • Pete Cooper's avatar
      Add targets to cmake for specific target components. · 468d6d7f
      Pete Cooper authored
      This adds the following targets to cmake.  These can be used to build and link only specific parts of a backend, instead of having to link the whole backend.
      
      - AllTargetsAsmPrinters, AllTargetsAsmParsers, AllTargetsDescs, AllTargetsDisassemblers, AllTargetsInfos
      
      A typical use for these is instead of linking ${LLVM_TARGETS_TO_BUILD}.  This commit changes llvm-mc to show how to use the new targets.
      
      Reviewed by Chris Bieneman.
      
      llvm-svn: 235324
      468d6d7f
    • Duncan P. N. Exon Smith's avatar
      DebugInfo: Remove typedefs for DITypeRef, etc. · 848af387
      Duncan P. N. Exon Smith authored
      Remove typedefs for type refs:
      
        - DITypeRef => MDTypeRef
        - DIScopeRef => MDScopeRef
        - DIDescriptorRef => DebugNodeRef
      
      llvm-svn: 235323
      848af387
    • Vince Harron's avatar
      ConnectionFileDescriptor::BytesAvailable reading too many command bytes · b9bd6af2
      Vince Harron authored
      ConnectionFileDescriptor::BytesAvailable was reading multiple command
      bytes from the command pipe but only processing the first. This
      change only allows one byte to be read at a time, ensuring that all
      get handled.
      
      This isn't known to cause any bugs, but it might cause current/future
      bugs.
      
      Differential Revision: http://reviews.llvm.org/D9098
      
      llvm-svn: 235322
      b9bd6af2
    • Jozef Kolek's avatar
      [mips][microMIPSr6] Implement BITSWAP instruction · 207d248e
      Jozef Kolek authored
      Implement BITSWAP instruction using mapping.
      
      Differential Revision: http://reviews.llvm.org/D8857
      
      llvm-svn: 235321
      207d248e
    • Robert Flack's avatar
      Allow specifying tool path/prefix for tests with CROSS_COMPILE. · fa8aa172
      Robert Flack authored
      CROSS_COMPILE environment variable is a common convention to specify the path
      and/or prefix to cross compilation tools (e.g. ar, objcopy).
      
      Test Plan:
      dotest.py $DOTEST_OPTS -t -p 'TestBSDArchives.py|TestBreakpointCommandsFromPython.py|TestFormats.py|TestObjCDynamicValue.py'
      All of these tests now compile successfully and pass running macosx -> linux
      using a cross compilation toolchain prefixed by CROSS_COMPILE without requiring
      changing your PATH. They still pass when run locally on macosx.
      
      Differential Revision: http://reviews.llvm.org/D9072
      
      llvm-svn: 235320
      fa8aa172
    • Vladimir Sukharev's avatar
      [AArch64] LORID_EL1 register must be treated as read-only · bad1d1dc
      Vladimir Sukharev authored
      Patch by: John Brawn
      
      Reviewers: jmolloy
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D9105
      
      llvm-svn: 235314
      bad1d1dc
    • Sean Callanan's avatar
      This patch implements several improvements to the · f0c5aeb6
      Sean Callanan authored
      module-loading support for the expression parser.
      
      - It adds support for auto-loading modules referred
        to by a compile unit.  These references are
        currently in the form of empty translation units.
        This functionality is gated by the setting
      
        target.auto-import-clang-modules (boolean) = false
      
      - It improves and corrects support for loading
        macros from modules, currently by textually
        pasting all #defines into the user's expression.
        The improvements center around including only those
        modules that are relevant to the current context -
        hand-loaded modules and the modules that are imported
        from the current compile unit.
      
      - It adds an "opt-in" mechanism for all of this
        functionality.  Modules have to be explicitly
        imported (via @import) or auto-loaded (by enabling
        the above setting) to enable any of this
        functionality.
      
      It also adds support to the compile unit and symbol
      file code to deal with empty translation units that
      indicate module imports, and plumbs this through to
      the CompileUnit interface.
      
      Finally, it makes the following changes to the test
      suite:
      
      - It adds a testcase that verifies that modules are
        automatically loaded when the appropriate setting
        is enabled (lang/objc/modules-auto-import); and
      
      - It modifies lanb/objc/modules-incomplete to test
        the case where a module #undefs something that is
        #defined in another module.
      
      <rdar://problem/20299554>
      
      llvm-svn: 235313
      f0c5aeb6
    • Akira Hatanaka's avatar
      [InlineFunction] Don't add lifetime markers for zero-sized allocas. · 2cc2b63f
      Akira Hatanaka authored
      This commit fixes the code which adds lifetime markers in InlineFunction to skip
      zero-sized allocas instead of asserting on them.
      
      rdar://problem/20531155
      
      llvm-svn: 235312
      2cc2b63f
    • Brendon Cahoon's avatar
      Recognize n/1 in the SCEV divide function · a57cc8bc
      Brendon Cahoon authored
      n/1 generates a quotient equal to n and a remainder of 0.
      If this case is not recognized, then the SCEV divide() function
      can return a remainder that is greater than or equal to the
      denominator, which means the delinearized subscripts for the
      test case will be incorrect.
      
      Differential Revision: http://reviews.llvm.org/D9003
      
      llvm-svn: 235311
      a57cc8bc
    • Bill Schmidt's avatar
      [PowerPC] Flow oversized lines for r235309 · 6779075c
      Bill Schmidt authored
      llvm-svn: 235310
      6779075c
    • Bill Schmidt's avatar
      1962f709
Loading