Skip to content
  1. Jun 22, 2012
  2. Jun 21, 2012
    • Jack Carter's avatar
      The inline asm operand modifier 'n' is suppose · c457f620
      Jack Carter authored
      to be generic across architectures. It has the
      following description in the gnu sources:
      
          Negate the immediate constant
      
      Several Architectures such as x86 have local implementations
      of operand modifier 'n' which go beyond the above description
      slightly. This won't affect them.
      
      Affected files:
      
          lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
              Added 'n' to the switch cases.
      
          test/CodeGen/Generic/asm-large-immediate.ll
              Generic compiled test (x86 for me)
      
          test/CodeGen/Mips/asm-large-immediate.ll
              Mips compiled version of the generic one
      
      Contributer: Jack Carter
      llvm-svn: 158939
      c457f620
    • Nuno Lopes's avatar
      Add support for invoke to the MemoryBuiltin analysid. · dc6085e5
      Nuno Lopes authored
      Update comments accordingly.
      
      Make instcombine remove useless invokes to C++'s 'new' allocation function (test attached).
      
      llvm-svn: 158937
      dc6085e5
    • Akira Hatanaka's avatar
      1. fix null program output after some other changes · 765c3123
      Akira Hatanaka authored
      2. re-enable null.ll test
      3. fix some minor style violations
      
      Patch by Reed Kotler.
      
      llvm-svn: 158935
      765c3123
    • Hal Finkel's avatar
      Treat TargetGlobalAddress as a constant for the purpose of matching pre-inc stores on PPC. · a86b0f20
      Hal Finkel authored
      Thanks to Tobias von Koch for pointing out this problem.
      
      llvm-svn: 158932
      a86b0f20
    • Nuno Lopes's avatar
      fix build in C++11 mode. · f06b731f
      Nuno Lopes authored
      Thanks to Chandler for pointing out the problem.
      
      llvm-svn: 158928
      f06b731f
    • Pete Cooper's avatar
      Fix potential crash if DAGCombine on stores sees a half type · 5b61422d
      Pete Cooper authored
      llvm-svn: 158927
      5b61422d
    • Jack Carter's avatar
      The inline asm operand modifier 'c' is suppose · b2fd5f66
      Jack Carter authored
      to be generic across architectures. It has the
      following description in the gnu sources:
      
          Substitute immediate value without immediate syntax
      
      Several Architectures such as x86 have local implementations
      of operand modifier 'c' which go beyond the above description
      slightly. To make use of the generic modifiers without overriding
      local implementation one can make a call to the base class method
      for AsmPrinter::PrintAsmOperand() in the locally derived method's 
      "default" case in the switch statement. That way if it is already
      defined locally the generic version will never get called.
      
      This change is needed when test/CodeGen/generic/asm-large-immediate.ll
      failed on a native Mips board. The test was assuming a generic
      implementation was in place.
      
      Affected files:
      
          lib/Target/Mips/MipsAsmPrinter.cpp:
              Changed the default case to call the base method.
          lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
              Added 'c' to the switch cases.
          test/CodeGen/Mips/asm-large-immediate.ll
              Mips compiled version of the generic one
      
      Contributer: Jack Carter
      llvm-svn: 158925
      b2fd5f66
    • Nuno Lopes's avatar
      hopefully fix the buildbots: some tests have wrong definitions of malloc and... · a6aa3d3b
      Nuno Lopes authored
      hopefully fix the buildbots:  some tests have wrong definitions of malloc and were crashing this code on 64 bits machines
      
      llvm-svn: 158923
      a6aa3d3b
    • Nuno Lopes's avatar
      port the BoundsChecking patch to the new MemoryBuiltin API (i.e., remove most... · 0e967e01
      Nuno Lopes authored
      port the BoundsChecking patch to the new MemoryBuiltin API (i.e., remove most of the code from here).
      Remove the alloc_size.ll test until we settle on a metadata format that makes everyone happy..
      
      llvm-svn: 158920
      0e967e01
    • Nuno Lopes's avatar
      refactor the MemoryBuiltin analysis: · 55fff834
      Nuno Lopes authored
       - provide more extensive set of functions to detect library allocation functions (e.g., malloc, calloc, strdup, etc)
       - provide an API to compute the size and offset of an object pointed by
      
      Move a few clients (GVN, AA, instcombine, ...) to the new API.
      This implementation is a lot more aggressive than each of the custom implementations being replaced.
      
      Patch reviewed by Nick Lewycky and Chandler Carruth, thanks.
      
      llvm-svn: 158919
      55fff834
    • Nadav Rotem's avatar
      Add a number of threshold arguments to the SRA pass. · 4e9012c2
      Nadav Rotem authored
      A patch by Tom Stellard with minor changes.
      
      llvm-svn: 158918
      4e9012c2
Loading