Skip to content
  1. Apr 17, 2010
  2. Apr 15, 2010
  3. Apr 14, 2010
  4. Apr 13, 2010
  5. Apr 09, 2010
  6. Apr 08, 2010
  7. Apr 07, 2010
  8. Apr 06, 2010
    • Stuart Hastings's avatar
      4bd3dd95
    • Stuart Hastings's avatar
      Revise debug info machinery to digest nested functions and classes. · c0671969
      Stuart Hastings authored
      A certain GDB testsuite case (local.cc) has a function nested inside a
      class nested inside another function.  GCC presents the innermost
      function to llvm-convert first.  Heretofore, the debug info mistakenly
      placed the inner function at module scope.  This patch walks the GCC
      context links and instantiates the outer class and function so the
      debug info is properly nested.  Radar 7426545.
      
      llvm-svn: 100530
      c0671969
    • Chris Lattner's avatar
      propagate cookie management out one layer of function calls. · 92aba5a8
      Chris Lattner authored
      llvm-svn: 100510
      92aba5a8
    • Chris Lattner's avatar
      report errors through LLVMContext's inline asm handler if available. · 59126b25
      Chris Lattner authored
      llvm-svn: 100509
      59126b25
    • Devang Patel's avatar
      Remove unnecessary include. · fc4a1db2
      Devang Patel authored
      llvm-svn: 100505
      fc4a1db2
    • Chris Lattner's avatar
      Give AsmParser an option to control whether it finalizes · 3b21e4d4
      Chris Lattner authored
      the stream.  New demo:
      
      $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o
      $ otool -tv t.o
      t.o:
      (__TEXT,__text) section
      _foo:
      0000000000000000	subq	$0x08,%rsp
      0000000000000004	movl	%edi,(%rsp)
      0000000000000007	movl	%edi,%eax
      0000000000000009	incl	%eax
      000000000000000b	movl	%eax,(%rsp)
      000000000000000e	movl	%eax,0x04(%rsp)
      0000000000000012	addq	$0x08,%rsp
      0000000000000016	ret
      
      llvm-svn: 100492
      3b21e4d4
    • Chris Lattner's avatar
      add .o file writing for inline asm in llc. Here's a silly · 8900ef19
      Chris Lattner authored
      demo:
      
      $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o
      <inline asm>:1:2: error: unrecognized instruction
      	abc incl    %eax
      	^
      LLVM ERROR: Error parsing inline asm
      
      Only problem seems to be that the parser finalizes OutStreamer 
      at the end of the first inline asm, which isn't what we want.
      For example:
      
      $ cat asm.c
      int foo(int X) {
       __asm__ ("incl    %0" : "+r" (X));
       return X;
      }
      $ clang asm.c -S -o - -emit-llvm | llc
      ...
      	subq	$8, %rsp
      	movl	%edi, (%rsp)
      	movl	%edi, %eax
      	## InlineAsm Start
      	incl    %eax
      	## InlineAsm End
      	movl	%eax, (%rsp)
      	movl	%eax, 4(%rsp)
      	addq	$8, %rsp
      	ret
      $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o
      $ otool -tv t.o
      t.o:
      (__TEXT,__text) section
      _foo:
      0000000000000000	subq	$0x08,%rsp
      0000000000000004	movl	%edi,(%rsp)
      0000000000000007	movl	%edi,%eax
      0000000000000009	incl	%eax
      $ 
      
      don't stop at inc!
      
      llvm-svn: 100491
      8900ef19
Loading