Interpret MD_pcsections in AsmPrinter emitting the requested metadata to
the associated sections. Functions and normal instructions are handled.
Depends on D130886
Paths
| Differential D130879
[AsmPrinter] Emit PCs into requested PCSections ClosedPublic Authored by melver on Aug 1 2022, 1:56 AM.
Details Summary Interpret MD_pcsections in AsmPrinter emitting the requested metadata to Depends on D130886
Diff Detail
Unit TestsFailed Event Timelinemelver added a child revision: D130880: [SelectionDAG] Rename CallSiteDbgInfo to NodeExtraInfo.Aug 1 2022, 1:56 AM
melver added inline comments.
Comment Actions I think the patches are overly splitted. I'd merge the 3 patches before [AsmPrinter] Emit PCs into requested PCSections into this patch. Comment Actions
See my proposal. I prefer erring on the side of splitting more, especially independent changes as it helps bisectability.
melver removed a child revision: D130880: [SelectionDAG] Rename CallSiteDbgInfo to NodeExtraInfo.Aug 4 2022, 10:11 AM melver marked 5 inline comments as done. melver added a parent revision: D130886: [GlobalISel] Propagate PCSections metadata to MachineInstr. Comment ActionsAddress comments. Comment Actions
This revision was landed with ongoing or failed builds. Closed by commit rG343700358feb: [AsmPrinter] Emit PCs into requested PCSections (authored by melver). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 456606 llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/include/llvm/MC/MCObjectFileInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/CodeGen/AArch64/pcsections.ll
llvm/test/CodeGen/X86/pcsections.ll
|
If metadata is used, is the SmallVector actually expected to be small (<=8)?
I assume that SmallVector<8> will allocate space for 8 statically and then waste it if the vector is larger.