From 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:04:05 +0000 Subject: Vendor import of clang trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/cfe/trunk@351319 --- test/CodeGen/Inputs/code-coverage-filter1.h | 1 + test/CodeGen/Inputs/code-coverage-filter2.h | 1 + test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll | 13 +++++++++++++ test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll | 13 +++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 test/CodeGen/Inputs/code-coverage-filter1.h create mode 100644 test/CodeGen/Inputs/code-coverage-filter2.h create mode 100644 test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll create mode 100644 test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll (limited to 'test/CodeGen/Inputs') diff --git a/test/CodeGen/Inputs/code-coverage-filter1.h b/test/CodeGen/Inputs/code-coverage-filter1.h new file mode 100644 index 000000000000..4c0de6c5e569 --- /dev/null +++ b/test/CodeGen/Inputs/code-coverage-filter1.h @@ -0,0 +1 @@ +void test1() {} diff --git a/test/CodeGen/Inputs/code-coverage-filter2.h b/test/CodeGen/Inputs/code-coverage-filter2.h new file mode 100644 index 000000000000..91e68ccae978 --- /dev/null +++ b/test/CodeGen/Inputs/code-coverage-filter2.h @@ -0,0 +1 @@ +void test2() {} diff --git a/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll b/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll new file mode 100644 index 000000000000..fb5306fc337f --- /dev/null +++ b/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll @@ -0,0 +1,13 @@ +; ModuleID = 'local_name_conflict_var.o' +source_filename = "local_name_conflict_var.c" +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + +@baz = internal global i32 10, align 4 + +; Function Attrs: noinline nounwind uwtable +define i32 @a() { +entry: + %0 = load i32, i32* @baz, align 4 + ret i32 %0 +} diff --git a/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll b/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll new file mode 100644 index 000000000000..bf3c262f180b --- /dev/null +++ b/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll @@ -0,0 +1,13 @@ +; ModuleID = 'local_name_conflict_var.o' +source_filename = "local_name_conflict_var.c" +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + +@baz = internal global i32 10, align 4 + +; Function Attrs: noinline nounwind uwtable +define i32 @b() { +entry: + %0 = load i32, i32* @baz, align 4 + ret i32 %0 +} -- cgit v1.3