efriedma-quic wrote: For the question about querying module flags, we do that in a few different places in codegen; grep for "getModuleFlag". Not sure if there's anything specifically in TargetLowering. https://github.com/llvm/llvm-project/pull/76558