This is an archive of the discontinued LLVM Phabricator instance.

[VectorUtils] Move ToVectorTy to VectorUtils.h (NFC).
ClosedPublic

Authored by fhahn on Feb 21 2020, 6:19 AM.

Details

Summary

ToVectorTy is defined and used in multiple places. Hoist it to
VectorUtils.h to avoid duplication and improve re-usability.

Diff Detail

Event Timeline

fhahn created this revision.Feb 21 2020, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2020, 6:19 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
fpetrogalli added inline comments.Feb 21 2020, 7:17 AM
llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
64

Could we keep this one and remove the other one?

fhahn updated this revision to Diff 245878.Feb 21 2020, 8:45 AM
fhahn marked an inline comment as done.

Use version with Scalable argument.

llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
64

Ah right, I’ll keep the one with scalable

fpetrogalli accepted this revision.Feb 21 2020, 8:58 AM

LGTM, thank you @fhahn !

This revision is now accepted and ready to land.Feb 21 2020, 8:58 AM
This revision was automatically updated to reflect the committed changes.