[flang-commits] [lld] [lldb] [libcxx] [clang] [libc] [clang-tools-extra] [flang] [llvm] [AMDGPU] Add pal metadata 3.0 support to callable pal funcs (PR #67104)

Piotr Sobczak via flang-commits flang-commits at lists.llvm.org
Mon Feb 5 04:36:22 PST 2024


================
@@ -1025,6 +1025,26 @@ void AMDGPUAsmPrinter::EmitProgramInfoSI(const MachineFunction &MF,
   OutStreamer->emitInt32(MFI->getNumSpilledVGPRs());
 }
 
+// Helper function to add common PAL Metadata 3.0+
+static void EmitPALMetadataCommon(AMDGPUPALMetadata *MD,
+                                  const SIProgramInfo &CurrentProgramInfo,
+                                  CallingConv::ID CC,
+                                  const MCSubtargetInfo &ST) {
+  MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode);
----------------
piotrAMD wrote:

Maybe, but I wasn't sure. Seems we generally do not bother to do gfxip checks for others (e.g., "MemOrdered" is only supported on gfx10 and gfx11).

https://github.com/llvm/llvm-project/pull/67104


More information about the flang-commits mailing list