This is an archive of the discontinued LLVM Phabricator instance.

[asan] Added TargetInstrInfo::isStackAdjustIntrinsic used to identify intrinsics, which adjust the stack when lowered to native.
AbandonedPublic

Authored by kstoimenov on Sep 17 2021, 8:29 AM.

Details

Reviewers
eugenis
Summary

Used in the follow-up ASan patch to identify ASan intrinsics, which adjust the stack.

Diff Detail

Event Timeline

kstoimenov created this revision.Sep 17 2021, 8:29 AM
kstoimenov requested review of this revision.Sep 17 2021, 8:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2021, 8:30 AM

I wonder if it is better to handle it through hasCopyImplyingStackAdjustment. This way it stays within the x86 target.

See how llvm::Intrinsic::x86_flags_write_u64 is done.

kstoimenov abandoned this revision.Sep 17 2021, 3:40 PM