[flang-commits] [llvm] [flang] [LLVM] only add exclude metadata to ELF and COFF only (PR #80722)

Joseph Huber via flang-commits flang-commits at lists.llvm.org
Mon Feb 5 11:22:35 PST 2024


jhuber6 wrote:

> Is there a specific advantage to adding the exclude metadata to the IR in all targets even though does nothing to targets like MACH-O and XCOFF?

The tests aren't divergent and if support ever gets added it will happen automatically. It's an attribute in LLVM-IR, so it's perfectly legal to have in LLVM-IR. I was mulling over whether or not it should get a warning or something if it's present on an unsupported platform when we do the lowering.

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


More information about the flang-commits mailing list