How to pass custom metadata from IR module pass to backend MF pass?

Hi Christopher,

unfortunately, there still no facility/api able to support propagation of
IR Metadata down to the backend.

Nonetheless, I and another guy are working on a draft of proposal addressing
specifically this need. Here you find the link to the last message of the
on-going thread:

http [://] lists [.] llvm [.] org/pipermail/llvm-dev/2020-November/146387.html

Feel free to join the discussion!

However, do not despair: a short-term solution is to creatively employ ad-hoc
intrinsics, which carry the metadata you require. The backend won't touch such
elements, since it does not know how to operate on them.

Clearly, it may come with several important drawbacks.

Have a nice day :slight_smile:
-- Lorenzo