mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	This conversion was done with the following bash script:
  find test/Transforms -name "*.ll" | \
  while read NAME; do
    echo "$NAME"
    if ! grep -q "^; *RUN: *llc" $NAME; then
      TEMP=`mktemp -t temp`
      cp $NAME $TEMP
      sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \
      while read FUNC; do
        sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP
      done
      mv $TEMP $NAME
    fi
  done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			468 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			468 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: opt < %s -globalopt -S | FileCheck %s
 | |
| 
 | |
| @G1 = internal global i32 123            ; <i32*> [#uses=1]
 | |
| 
 | |
| ; CHECK-NOT: @G1
 | |
| ; CHECK: @G2
 | |
| ; CHECK-NOT: @G3
 | |
| 
 | |
| define void @foo1() {
 | |
| ; CHECK: define void @foo
 | |
| ; CHECK-NEXT: ret
 | |
|         store i32 1, i32* @G1
 | |
|         ret void
 | |
| }
 | |
| 
 | |
| @G2 = linkonce_odr constant i32 42
 | |
| 
 | |
| define void @foo2() {
 | |
| ; CHECK-LABEL: define void @foo2(
 | |
| ; CHECK-NEXT: store
 | |
|         store i32 1, i32* @G2
 | |
|         ret void
 | |
| }
 | |
| 
 | |
| @G3 = linkonce_odr constant i32 42
 |