[llvm] [AMDGPU] Print `workgroup_processor_mode` metadata field as a boolean (PR #135627)
Lucas Ramirez via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 02:52:01 PDT 2025
================
@@ -510,7 +510,7 @@ MetadataStreamerMsgPackV4::getHSAKernelProps(const MachineFunction &MF,
if (CodeObjectVersion >= AMDGPU::AMDHSA_COV5 && STM.supportsWGP())
Kern[".workgroup_processor_mode"] =
- Kern.getDocument()->getNode(ProgramInfo.WgpMode);
+ Kern.getDocument()->getNode((bool)ProgramInfo.WgpMode);
----------------
lucas-rami wrote:
The cast makes this a call to `Document::getNode(bool)` instead of `Document::getNode(int)`, which returns a `DocNode` with the `Type::Boolean` type instead of the `Type::Int` type. That gets printed as false/true instead of 0/1.
https://github.com/llvm/llvm-project/pull/135627
More information about the llvm-commits
mailing list