-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[Clang][DirectX] Always use Diagnostic Printer #135655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// RUN: %if clang-dxc %{not %clang_dxc -T lib_6_3 %s 2>&1 | FileCheck %s %} | ||
|
||
// CHECK: error: <unknown>:0:0: in function llvm.vector.reduce.mul.v4i32 i32 (<4 x i32>): Unsupported intrinsic for DXIL lowering | ||
|
||
export int vecReduceMulTest(int4 vec) { | ||
return __builtin_reduce_mul(vec); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
// RUN: not %clang_cc1 %s -o - -S -triple=amdgcn-amd-amdhsa 2>&1 | FileCheck %s | ||
|
||
void test_amdgcn_fence_failure() { | ||
|
||
// CHECK: error: Unsupported atomic synchronization scope | ||
// CHECK: error: <unknown>:0:0: in function _Z25test_amdgcn_fence_failurev void (): Unsupported atomic synchronization scope | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Current diagnostic without debug info:
Current diagnostic with debug info:
The one without debug info could maybe be improved a bit, but throwing away the location info doesn't seem like the right approach. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My change doesn't get rid of the location we still prefix it, but Before change No debug:
Before change debug
After change no debug:
After change debug
|
||
__builtin_amdgcn_fence(__ATOMIC_SEQ_CST, "foobar"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the best location always "unknown"? or are these tests only for cases where the context is null?