Issue |
124802
|
Summary |
[AMDGPU] Review intrinsic flags for `int_amdgcn_s_sendmsg`
|
Labels |
new issue
|
Assignees |
|
Reporter |
raiseirql
|
This intrinsic and others in the immediate area are not setting the `IntrNoCallback` flag. Not having this intrinsic prevents `PostOrderFunctionAttrsPass` from marking a function that uses the intrinsic from having the `norecurse` flag applied. Ultimately, that then causes the `amdhsa_uses_dynamic_stack` flag to be set for the kernel.
The use case for this is in our implementation of `print()` for Mojo that uses the intrinsic to build a native `hostcall()` implementation. Fixing the intrinsic to have this flag set fixes the problem locally. Other intrinsics such as `int_amdgcn_s_sleep` do not have the same problem because they derive from `DefaultAttrsIntrinsic`. Other options are likely available in our LLVM pipeline config, but fixing the intrinsic so far has been the easiest path.
cc: @arsenm
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs