This is an archive of the discontinued LLVM Phabricator instance.

[NFC][clang] Move multiversion resolver code generation to llvm/ subdirectory
Needs ReviewPublic

Authored by a.elovikov on Aug 19 2021, 4:18 PM.

Details

Summary

Some part of the target multiversioning support already resided in
llvm/lib/Support/X86TargetParser.cpp. However, the IR generation could not be
put there because of the component dependencies.

I think Transforms/Utils is a good place to put such kind of utils similar to
AmdGPUEmitPrintf functionality there. The change can allow the use of the
functionality outside clang as it isn't C/C++-specific.

Diff Detail

Event Timeline

a.elovikov created this revision.Aug 19 2021, 4:18 PM
a.elovikov requested review of this revision.Aug 19 2021, 4:18 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 19 2021, 4:18 PM

Fix a bug with not saving builder's insertion point.

Rebase + ping