Also lowercase the message to start since that seems to be the
prevailing convention for error messages.
if (K.second.size() == 1) {
KernelAccessVariables.insert(GV);
} else {
- report_fatal_error("Cannot lower LDS to kernel access as it is "
- "reachable from multiple kernels");
+ report_fatal_error(
+ "cannot lower LDS '" + GV->getName() +
+ "' to kernel access as it is reachable from multiple kernels");
}
break;
;; Function accesses variable, reachable from two kernels, can't use kernel lowering for either
;; Hybrid can put it in module lds without cost as the first variable is free
-; KERNEL: LLVM ERROR: Cannot lower LDS to kernel access as it is reachable from multiple kernels
+; KERNEL: LLVM ERROR: cannot lower LDS 'function.lds' to kernel access as it is reachable from multiple kernels
@function.lds = addrspace(3) global i16 undef
define void @f0() {