summaryrefslogtreecommitdiffstats
path: root/llvm/test/LTO/Resolution
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-08-11 13:03:56 +0000
committerTeresa Johnson <tejohnson@google.com>2016-08-11 13:03:56 +0000
commitcbf684e6c66d392dbe5254443a10c04dd09863c7 (patch)
tree3c80c62be9a2eaf1c09f4662ff7011f17809add4 /llvm/test/LTO/Resolution
parentf99573b3ee6009494d431348ec92dcab7b6a218b (diff)
downloadbcm5719-llvm-cbf684e6c66d392dbe5254443a10c04dd09863c7.tar.gz
bcm5719-llvm-cbf684e6c66d392dbe5254443a10c04dd09863c7.zip
Revert "Resolution-based LTO API."
This reverts commit r278330. I made a change to the save temps output that is causing issues with the bots. Didn't realize this because I had older output files sitting on disk in my test output directory. llvm-svn: 278331
Diffstat (limited to 'llvm/test/LTO/Resolution')
-rw-r--r--llvm/test/LTO/Resolution/X86/Inputs/alias-1.ll4
-rw-r--r--llvm/test/LTO/Resolution/X86/Inputs/comdat.ll28
-rw-r--r--llvm/test/LTO/Resolution/X86/alias.ll22
-rw-r--r--llvm/test/LTO/Resolution/X86/comdat.ll86
-rw-r--r--llvm/test/LTO/Resolution/X86/lit.local.cfg2
5 files changed, 0 insertions, 142 deletions
diff --git a/llvm/test/LTO/Resolution/X86/Inputs/alias-1.ll b/llvm/test/LTO/Resolution/X86/Inputs/alias-1.ll
deleted file mode 100644
index 01c9987fd3f..00000000000
--- a/llvm/test/LTO/Resolution/X86/Inputs/alias-1.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-@a = global i32 42
diff --git a/llvm/test/LTO/Resolution/X86/Inputs/comdat.ll b/llvm/test/LTO/Resolution/X86/Inputs/comdat.ll
deleted file mode 100644
index ca4bbb4bf81..00000000000
--- a/llvm/test/LTO/Resolution/X86/Inputs/comdat.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-$c2 = comdat any
-$c1 = comdat any
-
-; This is only present in this file. The linker will keep $c1 from the first
-; file and this will be undefined.
-@will_be_undefined = global i32 1, comdat($c1)
-
-@v1 = weak_odr global i32 41, comdat($c2)
-define weak_odr protected i32 @f1(i8* %this) comdat($c2) {
-bb20:
- store i8* %this, i8** null
- br label %bb21
-bb21:
- ret i32 41
-}
-
-@r21 = global i32* @v1
-@r22 = global i32(i8*)* @f1
-
-@a21 = alias i32, i32* @v1
-@a22 = alias i16, bitcast (i32* @v1 to i16*)
-
-@a23 = alias i32(i8*), i32(i8*)* @f1
-@a24 = alias i16, bitcast (i32(i8*)* @f1 to i16*)
-@a25 = alias i16, i16* @a24
diff --git a/llvm/test/LTO/Resolution/X86/alias.ll b/llvm/test/LTO/Resolution/X86/alias.ll
deleted file mode 100644
index bd3fcb381b3..00000000000
--- a/llvm/test/LTO/Resolution/X86/alias.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: llvm-as %s -o %t1.o
-; RUN: llvm-as %p/Inputs/alias-1.ll -o %t2.o
-; RUN: llvm-lto2 -o %t3.o %t2.o %t1.o -r %t2.o,a,px -r %t1.o,a, -r %t1.o,b,px -save-temps
-; RUN: llvm-dis < %t3.o.0.preopt.bc -o - | FileCheck %s
-; RUN: FileCheck --check-prefix=RES %s < %t3.o.resolution.txt
-
-; CHECK-NOT: alias
-; CHECK: @a = global i32 42
-; CHECK-NEXT: @b = global i32 1
-; CHECK-NOT: alias
-
-; RES: 2.o{{$}}
-; RES: {{^}}-r={{.*}}2.o,a,px{{$}}
-; RES: 1.o{{$}}
-; RES: {{^}}-r={{.*}}1.o,b,px{{$}}
-; RES: {{^}}-r={{.*}}1.o,a,{{$}}
-
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-@a = weak alias i32, i32* @b
-@b = global i32 1
diff --git a/llvm/test/LTO/Resolution/X86/comdat.ll b/llvm/test/LTO/Resolution/X86/comdat.ll
deleted file mode 100644
index 29bdcc325f3..00000000000
--- a/llvm/test/LTO/Resolution/X86/comdat.ll
+++ /dev/null
@@ -1,86 +0,0 @@
-; RUN: llvm-as %s -o %t.o
-; RUN: llvm-as %p/Inputs/comdat.ll -o %t2.o
-; RUN: llvm-lto2 -save-temps -o %t3.o %t.o %t2.o \
-; RUN: -r=%t.o,f1,plx \
-; RUN: -r=%t.o,v1,px \
-; RUN: -r=%t.o,r11,px \
-; RUN: -r=%t.o,r12,px \
-; RUN: -r=%t.o,a11,px \
-; RUN: -r=%t.o,a12,px \
-; RUN: -r=%t.o,a13,px \
-; RUN: -r=%t.o,a14,px \
-; RUN: -r=%t.o,a15,px \
-; RUN: -r=%t2.o,f1,l \
-; RUN: -r=%t2.o,will_be_undefined, \
-; RUN: -r=%t2.o,v1, \
-; RUN: -r=%t2.o,r21,px \
-; RUN: -r=%t2.o,r22,px \
-; RUN: -r=%t2.o,a21,px \
-; RUN: -r=%t2.o,a22,px \
-; RUN: -r=%t2.o,a23,px \
-; RUN: -r=%t2.o,a24,px \
-; RUN: -r=%t2.o,a25,px
-; RUN: llvm-dis %t3.o.2.internalize.bc -o - | FileCheck %s
-
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-$c1 = comdat any
-
-@v1 = weak_odr global i32 42, comdat($c1)
-define weak_odr i32 @f1(i8*) comdat($c1) {
-bb10:
- br label %bb11
-bb11:
- ret i32 42
-}
-
-@r11 = global i32* @v1
-@r12 = global i32 (i8*)* @f1
-
-@a11 = alias i32, i32* @v1
-@a12 = alias i16, bitcast (i32* @v1 to i16*)
-
-@a13 = alias i32 (i8*), i32 (i8*)* @f1
-@a14 = alias i16, bitcast (i32 (i8*)* @f1 to i16*)
-@a15 = alias i16, i16* @a14
-
-; CHECK: $c1 = comdat any
-; CHECK: $c2 = comdat any
-
-; CHECK-DAG: @v1 = weak_odr global i32 42, comdat($c1)
-
-; CHECK-DAG: @r11 = global i32* @v1{{$}}
-; CHECK-DAG: @r12 = global i32 (i8*)* @f1{{$}}
-
-; CHECK-DAG: @r21 = global i32* @v1{{$}}
-; CHECK-DAG: @r22 = global i32 (i8*)* @f1{{$}}
-
-; CHECK-DAG: @v1.1 = internal global i32 41, comdat($c2)
-
-; CHECK-DAG: @a11 = alias i32, i32* @v1{{$}}
-; CHECK-DAG: @a12 = alias i16, bitcast (i32* @v1 to i16*)
-
-; CHECK-DAG: @a13 = alias i32 (i8*), i32 (i8*)* @f1{{$}}
-; CHECK-DAG: @a14 = alias i16, bitcast (i32 (i8*)* @f1 to i16*)
-
-; CHECK-DAG: @a21 = alias i32, i32* @v1.1{{$}}
-; CHECK-DAG: @a22 = alias i16, bitcast (i32* @v1.1 to i16*)
-
-; CHECK-DAG: @a23 = alias i32 (i8*), i32 (i8*)* @f1.2{{$}}
-; CHECK-DAG: @a24 = alias i16, bitcast (i32 (i8*)* @f1.2 to i16*)
-
-; CHECK: define weak_odr i32 @f1(i8*) comdat($c1) {
-; CHECK-NEXT: bb10:
-; CHECK-NEXT: br label %bb11{{$}}
-; CHECK: bb11:
-; CHECK-NEXT: ret i32 42
-; CHECK-NEXT: }
-
-; CHECK: define internal i32 @f1.2(i8* %this) comdat($c2) {
-; CHECK-NEXT: bb20:
-; CHECK-NEXT: store i8* %this, i8** null
-; CHECK-NEXT: br label %bb21
-; CHECK: bb21:
-; CHECK-NEXT: ret i32 41
-; CHECK-NEXT: }
diff --git a/llvm/test/LTO/Resolution/X86/lit.local.cfg b/llvm/test/LTO/Resolution/X86/lit.local.cfg
deleted file mode 100644
index afde89be896..00000000000
--- a/llvm/test/LTO/Resolution/X86/lit.local.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-if not 'X86' in config.root.targets:
- config.unsupported = True
OpenPOWER on IntegriCloud