DanielKristofKiss wrote: RFC as I'm not sure the right approach is to emit that many attribute always. LLVM's Function::createWithDefaultAttr to be extended too with propagation of the module flags to the function. https://github.com/llvm/llvm-project/pull/82819