forked from llvm/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.
Merge pull request llvm#105 from AMD-Lightning-Internal/upstream_merg…
…e_202501142308 merge main into amd-staging
- Loading branch information
Showing
128 changed files
with
5,770 additions
and
891 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// RUN: %clang_cc1 -x c++ -std=c++23 -debug-info-kind=limited -emit-llvm < %s | FileCheck %s | ||
|
||
// CHECK: !DISubprogram(name: "bar", | ||
// CHECK-SAME: flags: DIFlagPrototyped | ||
// CHECK: !DIDerivedType(tag: DW_TAG_pointer_type | ||
// CHECK-SAME: flags: DIFlagArtificial | DIFlagObjectPointer | ||
// | ||
// // FIXME: DIFlagObjectPointer not attached to the explicit object | ||
// // argument in the subprogram declaration. | ||
// CHECK: !DISubprogram(name: "explicit_this", | ||
// flags: DIFlagPrototyped | ||
// CHECK-NOT: DIFlagObjectPointer | ||
// CHECK-NOT: DIFlagArtificial | ||
// | ||
// CHECK: !DILocalVariable(name: "this", arg: 1 | ||
// CHECK-SAME: flags: DIFlagArtificial | DIFlagObjectPointer | ||
// | ||
// CHECK-NOT: DIFlagArtificial | ||
// CHECK: !DILocalVariable(arg: 1, {{.*}}, flags: DIFlagObjectPointer) | ||
|
||
struct Foo { | ||
void bar() {} | ||
void explicit_this(this Foo &&) {} | ||
}; | ||
|
||
void f() { | ||
Foo{}.bar(); | ||
Foo{}.explicit_this(); | ||
} |
Oops, something went wrong.