aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorAiden Grossman <aidengrossman@google.com>2025-09-23 06:59:25 -0700
committerGitHub <noreply@github.com>2025-09-23 13:59:25 +0000
commita04d3cab293087ec940127401a738820b2fa960b (patch)
tree90381ae7ab15c28d15639e0a158324136526583a /llvm/lib/Object/COFFObjectFile.cpp
parent05d032aea635398fe564520ba111165f9e1f4fc4 (diff)
downloadllvm-a04d3cab293087ec940127401a738820b2fa960b.zip
llvm-a04d3cab293087ec940127401a738820b2fa960b.tar.gz
llvm-a04d3cab293087ec940127401a738820b2fa960b.tar.bz2
[MCA] Use Bare Reference for InstrPostProcess (#160229)
This patch makes it so that InstrPostProcess::postProcessInstruction takes in a reference to a mca::Instruction rather than a reference to a std::unique_ptr. Without this, InstrPostProcess cannot be used with MCA instruction recycling because it needs to be called on both newly created instructions and instructions that have been recycled. We only have access to a raw pointer for instructions that have been recycled rather than a reference to the std::unique_ptr that owns them. This patch adds a call in the existing instruction recycling unit test to ensure the API remains compatible with this use case.
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions