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:49a4f3f7d88 into amd-gfx:9c1698c4caf
Local branch amd-gfx 9c1698c Merged master:bb7fb6d7b2f into amd-gfx:9d914d750a0 Remote branch master 49a4f3f [AArch64][GlobalISel] Add a post-legalizer combiner with a very simple combine.
- Loading branch information
Showing
36 changed files
with
669 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// RUN: %clang_cc1 -S -emit-llvm %s -triple x86_64-unknown-linux-gnu -o - | FileCheck %s | ||
|
||
bool bar(); | ||
void f(bool, bool); | ||
|
||
void foo(int i) { | ||
[[clang::nomerge]] bar(); | ||
[[clang::nomerge]] (i = 4, bar()); | ||
[[clang::nomerge]] (void)(bar()); | ||
[[clang::nomerge]] f(bar(), bar()); | ||
[[clang::nomerge]] [] { bar(); bar(); }(); // nomerge only applies to the anonymous function call | ||
[[clang::nomerge]] for (bar(); bar(); bar()) {} | ||
bar(); | ||
} | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR:[0-9]+]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call void @_Z1fbb({{.*}}) #[[NOMERGEATTR]] | ||
// CHECK: call void @"_ZZ3fooiENK3$_0clEv"(%class.anon* %ref.tmp) #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() #[[NOMERGEATTR]] | ||
// CHECK: call zeroext i1 @_Z3barv() | ||
// CHECK: attributes #[[NOMERGEATTR]] = { nomerge } |
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,17 @@ | ||
// RUN: %clang_cc1 -verify -fsyntax-only %s | ||
|
||
void bar(); | ||
|
||
void foo() { | ||
[[clang::nomerge]] bar(); | ||
[[clang::nomerge(1, 2)]] bar(); // expected-error {{'nomerge' attribute takes no arguments}} | ||
int x; | ||
[[clang::nomerge]] x = 10; // expected-warning {{nomerge attribute is ignored because there exists no call expression inside the statement}} | ||
|
||
[[clang::nomerge]] label: bar(); // expected-error {{'nomerge' attribute cannot be applied to a declaration}} | ||
|
||
} | ||
|
||
int f(); | ||
|
||
[[clang::nomerge]] static int i = f(); // expected-error {{'nomerge' attribute cannot be applied to a declaration}} |
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
Oops, something went wrong.