[MachineInstr] Allow setting PCSections in ExtraInfo
authorMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:48:41 +0000 (15:48 +0200)
committerMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:52:44 +0000 (15:52 +0200)
commit42836e283fc58d5cebbcbb2e8eb7619d92fb9c2d
tree11548affdf88abaec2dabced3769d71681e86751
parentc70f6e1362e38f36dceca0342490d659aa45a1a5
[MachineInstr] Allow setting PCSections in ExtraInfo

Provide MachineInstr::setPCSection(), to propagate relevant metadata
through the backend. Use ExtraInfo to store the metadata.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D130876
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/MachineInstr.cpp
llvm/unittests/CodeGen/MachineInstrTest.cpp