[SVE] Break dependency of Type.h on DerivedTypes.h
authorChristopher Tetreault <ctetreau@quicinc.com>
Fri, 12 Jun 2020 18:02:07 +0000 (11:02 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Fri, 12 Jun 2020 19:43:33 +0000 (12:43 -0700)
commit339177d1da0c6f0cf181ba987836148acb526926
tree0f62f9211b97daf4aac7e7904fa926914b7d6c79
parent5146fc15fceabf238f4a9617160001248c56a796
[SVE] Break dependency of Type.h on DerivedTypes.h

Summary:
Inline functions in Type.h depended upon inline functions isVectorTy and
getScalarType defined in DerivedTypes.h. Reimplement these functions in
Type.h in terms of Type

Reviewers: rengolin, efriedma, echristo, c-rhodes, david-arm

Reviewed By: echristo

Subscribers: tschuett, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81684
llvm/include/llvm/IR/DerivedTypes.h
llvm/include/llvm/IR/Type.h