I'm adding ORE to memset/memcpy formation, with tests,
but mainly this is split off from D61144.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Scalar/LoopIdiomRecognize.cpp | ||
---|---|---|
980 | Can we make the function name an argument of the remark? Something like (haven't tried to see if it actually works): ORE.emit([&]() { return OptimizationRemark(DEBUG_TYPE, "ProcessLoopStridedStore", NewCall->getDebugLoc(), Preheader) << "Transformed loop-strided store into a call to " << ore::NV(NewCall->getCalledFunction()) << "() function"; }); And I guess the same applies to the other remark. This way, the diagnostic will still show up in the same way but the serialized version will have the function (with its debug loc if available) as a separate argument. |
Can we make the function name an argument of the remark? Something like (haven't tried to see if it actually works):
And I guess the same applies to the other remark.
This way, the diagnostic will still show up in the same way but the serialized version will have the function (with its debug loc if available) as a separate argument.