This is an archive of the discontinued LLVM Phabricator instance.

[NFC] pull retvec logic to MemoryTaggingSupport.
ClosedPublic

Authored by fmayer on Feb 2 2022, 3:29 PM.

Details

Summary

we will also need this for aarch64 stack tagging.

Diff Detail

Event Timeline

fmayer created this revision.Feb 2 2022, 3:29 PM
fmayer requested review of this revision.Feb 2 2022, 3:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2022, 3:29 PM
eugenis added inline comments.Feb 2 2022, 3:51 PM
llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h
73

That's a very vague function name for the common utils header.

How about getUntagLocationForFunctionExit and return Instruction*?

fmayer updated this revision to Diff 405481.Feb 2 2022, 3:57 PM

change function signature.

llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h
73

Good point. getUntagLocationForFunctionExit is a bit of a mouthfull though, what do you think about this?

eugenis added inline comments.Feb 2 2022, 4:01 PM
llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h
73

I'd expect untagLocationIfFunctionExit to actually emit the untagging code.

fmayer marked 2 inline comments as done.Feb 2 2022, 4:02 PM
eugenis accepted this revision.Feb 2 2022, 4:04 PM

LGTM

This revision is now accepted and ready to land.Feb 2 2022, 4:04 PM
This revision was landed with ongoing or failed builds.Feb 2 2022, 4:06 PM
This revision was automatically updated to reflect the committed changes.