Skip to content
  1. Jul 24, 2009
  2. Jul 22, 2009
  3. Jul 21, 2009
  4. Jul 20, 2009
  5. Jul 18, 2009
  6. Jul 16, 2009
  7. Jul 15, 2009
  8. Jul 14, 2009
  9. Jul 13, 2009
  10. Jul 11, 2009
    • Torok Edwin's avatar
      assert(0) -> LLVM_UNREACHABLE. · 56d06597
      Torok Edwin authored
      Make llvm_unreachable take an optional string, thus moving the cerr<< out of
      line.
      LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for
      NDEBUG builds.
      
      llvm-svn: 75379
      56d06597
  11. Jul 10, 2009
  12. Jul 08, 2009
  13. Jul 07, 2009
  14. Jul 06, 2009
  15. Jul 03, 2009
  16. Jul 01, 2009
  17. Jun 26, 2009
    • Devang Patel's avatar
      · 0751a288
      Devang Patel authored
      Remove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprograms
      and llvm.dbg.global_variables.
      
      llvm-svn: 74251
      0751a288
  18. Jun 17, 2009
    • Sanjiv Gupta's avatar
      · 2f2b0a19
      Sanjiv Gupta authored
      >> What if my global variable was into a different address space than stack?
      >>     
      >
      > It doesn't matter in terms of semantics: because AnalyzeGlobal
      > returned false, we're guaranteed the address of the global is never
      > taken.  I wouldn't be surprised if we end up generating invalid IR in
      > some cases, though, because of the semantics of replaceAllUsesWith.
      > Do you have a testcase that breaks?
      >
      >   
      The problem is replaceAllUsesWith asserts for type mismatch here. Try attached .bc with llvm-ld.
      
      assert(New->getType() == getType() &&
              "replaceAllUses of value with new value of different type!");
      
      Since stack is always on address space zero, I don't think that type of GV in a different address space is ever going to match.
      The other way is to allow replaceAllUsesWith to ignore address spaces while comparing types. (do we have  a way to do that ?).
      But then such an optimization may fail the entire idea of user wanting to place a variable into different memory space. The original idea of user might be to save on the stack space (data memory) and hence he asked the variable to be placed into different memory space (program memory). So the best bet here is to deny this optimization by checking
      
      GV->getType()->getAddressSpace() == 0. 
      
      llvm-svn: 73605
      2f2b0a19
  19. Jun 15, 2009
  20. Jun 14, 2009
  21. Jun 13, 2009
  22. Jun 12, 2009
  23. Jun 10, 2009
  24. Jun 09, 2009
  25. Jun 06, 2009
  26. Jun 02, 2009
  27. May 23, 2009
Loading