FailedChanges

Summary

  1. [Diagnostics] Allow emitting analysis and missed remarks on functions (details)
Commit 2db182ff8d0c0d50155bf70d1db60b4e78c348ca by jhuber6
[Diagnostics] Allow emitting analysis and missed remarks on functions

Summary:
Currently, only `OptimizationRemarks` can be emitted using a Function.
Add constructors to allow this for `OptimizationRemarksAnalysis` and
`OptimizationRemarkMissed` as well.

Reviewed By: jdoerfert thegameg

Differential Revision: https://reviews.llvm.org/D102784
The file was modifiedclang/test/OpenMP/remarks_parallel_in_target_state_machine.c
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedllvm/include/llvm/IR/DiagnosticInfo.h
The file was modifiedclang/test/OpenMP/remarks_parallel_in_multiple_target_state_machines.c
The file was modifiedllvm/test/Transforms/OpenMP/deduplication_remarks.ll
The file was modifiedllvm/test/Transforms/OpenMP/icv_remarks.ll
The file was modifiedllvm/test/Transforms/OpenMP/gpu_kernel_detection_remarks.ll
The file was modifiedllvm/lib/IR/DiagnosticInfo.cpp