[RFC] Embedding command line options in bitcode (PR21471)

Forwarding this to LLVMDev. I think Mark accidentally hit reply instead of reply all.

From: Mark Schimmel <Mark.Schimmel@synopsys.com>
To: Chris Bieneman <cbieneman@apple.com>
Subject: RE: [LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
Date: November 21, 2014 at 4:00:59 PM PST

I’d like to see per function property metadata. Something like “metadata property A=16”. Think of something like pragma FP Contract. Targets could record anything they want to and query it in their backends. We have a need to add something like this that would inhibit a function being inlined when properties didn’t match. I’m abusing function attributes to get it done at the moment, but would love to have something much more generic.