This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-linux-gnu -emit-llvm -o - -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb %s | FileCheck %s --check-prefixes=CHECK,LIN
|
|
// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-windows-pc -emit-llvm -o - -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb %s | FileCheck %s --check-prefixes=CHECK,WIN
|
|
|
|
// LIN: @[[S1_NAME:.+]].ifunc = weak_odr ifunc void (%struct.S1*), void (%struct.S1*)* ()* @[[S1_NAME]].resolver
|
|
// LIN: @[[S2_NAME:.+]].ifunc = weak_odr ifunc void (%struct.S2*), void (%struct.S2*)* ()* @[[S2_NAME]].resolver
|
|
// WIN: $"[[S1_NAME:.+]]" = comdat any
|
|
// WIN: $"[[S2_NAME:.+]]" = comdat any
|
|
|
|
struct S1 {
|
|
void foo();
|
|
void mv();
|
|
};
|
|
|
|
void S1::foo(){}
|
|
|
|
__attribute__((cpu_dispatch(ivybridge, generic)))
|
|
void S1::mv() {}
|
|
// LIN: define weak_odr void (%struct.S1*)* @[[S1_NAME]].resolver
|
|
// WIN: define weak_odr dso_local void @"[[S1_NAME]]"(%struct.S1*
|
|
__attribute__((cpu_specific(generic)))
|
|
void S1::mv() {}
|
|
// CHECK: define dso_local {{.*}}void @{{\"?}}[[S1_NAME]].S{{\"?}}
|
|
// CHECK: define dso_local {{.*}}void @{{\"?}}[[S1_NAME]].A{{\"?}}
|
|
__attribute__((cpu_specific(ivybridge)))
|
|
void S1::mv() {}
|
|
|
|
struct S2 {
|
|
void foo();
|
|
void mv();
|
|
};
|
|
|
|
void S2::foo(){}
|
|
|
|
__attribute__((cpu_specific(generic)))
|
|
void S2::mv() {}
|
|
// CHECK: define dso_local {{.*}}void @{{\"?}}[[S2_NAME]].A{{\"?}}
|
|
__attribute__((cpu_dispatch(ivybridge, generic)))
|
|
void S2::mv() {}
|
|
// LIN: define weak_odr void (%struct.S2*)* @[[S2_NAME]].resolver
|
|
// WIN: define weak_odr dso_local void @"[[S2_NAME]]"(%struct.S2*
|
|
__attribute__((cpu_specific(ivybridge)))
|
|
void S2::mv() {}
|
|
// CHECK: define dso_local {{.*}}void @{{\"?}}[[S2_NAME]].S{{\"?}}
|