Skip to content
  1. May 05, 2013
  2. May 01, 2013
    • Filip Pizlo's avatar
      This patch breaks up Wrap.h so that it does not have to include all of · dec20e43
      Filip Pizlo authored
      the things, and renames it to CBindingWrapping.h.  I also moved 
      CBindingWrapping.h into Support/.
      
      This new file just contains the macros for defining different wrap/unwrap 
      methods.
      
      The calls to those macros, as well as any custom wrap/unwrap definitions 
      (like for array of Values for example), are put into corresponding C++ 
      headers.
      
      Doing this required some #include surgery, since some .cpp files relied 
      on the fact that including Wrap.h implicitly caused the inclusion of a 
      bunch of other things.
      
      This also now means that the C++ headers will include their corresponding 
      C API headers; for example Value.h must include llvm-c/Core.h.  I think 
      this is harmless, since the C API headers contain just external function 
      declarations and some C types, so I don't believe there should be any 
      nasty dependency issues here.
      
      llvm-svn: 180881
      dec20e43
    • Rafael Espindola's avatar
      Now that the underlying issue is fixed, revert r180750 and r180722. · cbf5a7ad
      Rafael Espindola authored
      The cause of the windows failures was fixed by r180791. Revert to the state
      after Sabre's original revert.
      
      Original message:
      
      revert r179735, it has no testcases, and doesn't really make sense.
      
      llvm-svn: 180844
      cbf5a7ad
  3. Apr 30, 2013
    • Rafael Espindola's avatar
      Change getSlotIndex to return unsigned. · dd27530a
      Rafael Espindola authored
      The actual storage was already using unsigned, but the interface was using
      uint64_t. This is wasteful on 32 bits and looks to be the root causes of
      a miscompilation on Windows where a value was being sign extended to 64bits
      to compare with the result of getSlotIndex.
      
      Patch by Pasi Parviainen!
      
      llvm-svn: 180791
      dd27530a
    • Bill Wendling's avatar
      Revert the command line option patch. However, keep the part that makes this... · 04945975
      Bill Wendling authored
      Revert the command line option patch. However, keep the part that makes this pass on Windows. I.e., we don't emit the target dependent attributes in a comment before the function.
      
      llvm-svn: 180750
      04945975
  4. Apr 29, 2013
  5. Apr 25, 2013
  6. Apr 23, 2013
  7. Apr 22, 2013
  8. Apr 20, 2013
  9. Apr 19, 2013
  10. Apr 18, 2013
    • Bill Wendling's avatar
      Make the TargetIndependent flag have the right boolean value. · 6a97e89d
      Bill Wendling authored
      llvm-svn: 179798
      6a97e89d
    • Bill Wendling's avatar
      Cleanup patch: · 211316cc
      Bill Wendling authored
      Semantics of parameters named Index and Idx were inconsistent between
      "include/llvm/IR/Attributes.h", "lib/IR/AttributeImpl.h" and
      "lib/IR/Attributes.cpp": sometimes these were fixed 1-based indexes of IR
      parameters (or AttributeSet::ReturnIndex for IR return values or
      AttributeSet::FunctionIndex for IR functions), other times they were the
      internal slot for storage in the underlying AttributeSetImpl. I renamed usage of
      the former to "Index" and usage of the latter to "Slot" ("Slot" was already
      being used consistently for the latter in a subset of cases)
      
      Patch by Stephen Lin!
      
      llvm-svn: 179791
      211316cc
    • Bill Wendling's avatar
      This patch addresses two cleanup issues: · e3a60a9b
      Bill Wendling authored
      1. Verify::VerifyParameterAttrs in "lib/IR/Verifier.cpp" and
         AttrBuilder::removeFunctionOnlyAttrs in "lib/IR/Attributes.cpp" (only called
         by Verify::VerifyFunctionAttrs) separately maintained a list of function-only
         attribute types. I've consolidated the logic into a new function used for
         both cases in "lib/IR/Verifier.cpp", so this logic is in one place (other
         than the AsmParser front-end)
      
      2. Various functions in "lib/IR/Verifier.cpp" passed AttributeSet around by
         reference needlessly, as it's just a handle to an immutable pimpl body.
      
      Patch by Stephen Lin!
      
      llvm-svn: 179790
      e3a60a9b
    • Tom Stellard's avatar
      C API: Fix coding style · 62c03207
      Tom Stellard authored
      llvm-svn: 179785
      62c03207
    • Bill Wendling's avatar
      Add an option `-enable-old-style-attr-syntax' to print out function attributes in the "old" style. · 877cf534
      Bill Wendling authored
      It's sometimes beneficial to emit a testcase with the old style attribute
      syntax. Allow someone to do this.
      <rdar://problem/13563209>
      
      llvm-svn: 179735
      877cf534
  11. Apr 17, 2013
  12. Apr 16, 2013
  13. Apr 13, 2013
    • Benjamin Kramer's avatar
      Fix a scalability issue with complex ConstantExprs. · 89ca4bc6
      Benjamin Kramer authored
      This is basically the same fix in three different places. We use a set to avoid
      walking the whole tree of a big ConstantExprs multiple times.
      
      For example: (select cmp, (add big_expr 1), (add big_expr 2))
      We don't want to visit big_expr twice here, it may consist of thousands of
      nodes.
      
      The testcase exercises this by creating an insanely large ConstantExprs out of
      a loop. It's questionable if the optimizer should ever create those, but this
      can be triggered with real C code. Fixes PR15714.
      
      llvm-svn: 179458
      89ca4bc6
  14. Apr 12, 2013
  15. Apr 03, 2013
  16. Mar 28, 2013
    • David Blaikie's avatar
      Revert "Adding DIImportedModules to DIScopes." · 5692e72f
      David Blaikie authored
      This reverts commit 342d92c7a0adeabc9ab00f3f0d88d739fe7da4c7.
      
      Turns out we're going with a different schema design to represent
      DW_TAG_imported_modules so we won't need this extra field.
      
      llvm-svn: 178215
      5692e72f
Loading