forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged master:d3dfd8cec440 into amd-gfx:2b82436a5493
Local branch amd-gfx 2b82436 Merged master:bb4b70f79215 into amd-gfx:10744143d422 Remote branch master d3dfd8c Add a setting to force stepping to always run all threads. Also allow ScriptedThreadPlans to set & get their StopOthers state.
- Loading branch information
Showing
162 changed files
with
9,495 additions
and
7,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// RUN: %clang -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s | ||
// RUN: %clang -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
// RUN: %clang -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
// RUN: %clang -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
// RUN: %clang -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
typedef int my_int; | ||
struct foo {}; | ||
enum bar { BAR }; | ||
union baz {}; | ||
|
||
void quux(void) { | ||
typedef int x; | ||
struct y {}; | ||
enum z { Z }; | ||
union w {}; | ||
} | ||
|
||
// Check that debug info is emitted for the typedef, struct, enum, and union | ||
// when -fno-eliminate-unused-debug-types and -g are set. | ||
|
||
// CHECK: !DICompileUnit{{.+}}retainedTypes: [[RETTYPES:![0-9]+]] | ||
// CHECK: [[TYPE0:![0-9]+]] = !DICompositeType(tag: DW_TAG_enumeration_type, name: "bar" | ||
// CHECK: [[TYPE1:![0-9]+]] = !DIEnumerator(name: "BAR" | ||
// CHECK: [[TYPE2:![0-9]+]] = !DICompositeType(tag: DW_TAG_enumeration_type, name: "z" | ||
// CHECK: [[TYPE3:![0-9]+]] = !DIEnumerator(name: "Z" | ||
// CHECK: [[RETTYPES]] = !{[[TYPE4:![0-9]+]], [[TYPE5:![0-9]+]], [[TYPE0]], [[TYPE6:![0-9]+]], !17, [[TYPE7:![0-9]+]], [[TYPE2]], [[TYPE8:![0-9]+]]} | ||
// CHECK: [[TYPE4]] = !DIDerivedType(tag: DW_TAG_typedef, name: "my_int" | ||
// CHECK: [[TYPE5]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "foo" | ||
// CHECK: [[TYPE6]] = distinct !DICompositeType(tag: DW_TAG_union_type, name: "baz" | ||
// CHECK: [[TYPE7]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "y" | ||
// CHECK: [[TYPE8]] = distinct !DICompositeType(tag: DW_TAG_union_type, name: "w" | ||
|
||
// Check that debug info is not emitted for the typedef, struct, enum, and | ||
// union when -fno-eliminate-unused-debug-types and -g are not set. These are | ||
// the same checks as above with `NODBG-NOT` rather than `CHECK`. | ||
|
||
// NODBG-NOT: !DI{{CompositeType|Enumerator|DerivedType}} | ||
|
||
// Check that debug info is not emitted for declarations. Obnoxious | ||
// indentifiers are to avoid collisions with the SHA emittied as debug info. | ||
struct unused_struct; | ||
enum unused_enum; | ||
union unused_union; | ||
void b0(void) { | ||
struct unused_local_struct; | ||
enum unused_local_enum; | ||
union unused_local_union; | ||
} | ||
|
||
// NODBG-NOT: name: "unused_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// RUN: %clang++ -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s | ||
// RUN: %clang++ -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
// RUN: %clang++ -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
// RUN: %clang++ -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
// RUN: %clang++ -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s | ||
using foo = int; | ||
class bar {}; | ||
enum class baz { BAZ }; | ||
|
||
void quux() { | ||
using x = int; | ||
class y {}; | ||
enum class z { Z }; | ||
} | ||
|
||
// CHECK: !DICompileUnit{{.+}}retainedTypes: [[RETTYPES:![0-9]+]] | ||
// CHECK: [[TYPE0:![0-9]+]] = !DICompositeType(tag: DW_TAG_enumeration_type, name: "baz" | ||
// CHECK: [[TYPE1:![0-9]+]] = !DIEnumerator(name: "BAZ" | ||
// CHECK: [[TYPE2:![0-9]+]] = !DICompositeType(tag: DW_TAG_enumeration_type, name: "z" | ||
// CHECK: [[TYPE3:![0-9]+]] = !DIEnumerator(name: "Z" | ||
// CHECK: [[RETTYPES]] = !{[[TYPE4:![0-9]+]], [[TYPE5:![0-9]+]], [[TYPE0]], !5, [[TYPE6:![0-9]+]], [[TYPE2]]} | ||
// CHECK: [[TYPE4]] = !DIDerivedType(tag: DW_TAG_typedef, name: "foo" | ||
// CHECK: [[TYPE5]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "bar" | ||
// CHECK: [[TYPE6]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "y" | ||
|
||
// NODBG-NOT: !DI{{CompositeType|Enumerator|DerivedType}} | ||
|
||
class unused_class; | ||
enum class unused_enum_class; | ||
|
||
// NODBG-NOT: name: "unused_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.