Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLVM] VectorType::get with two parameters is deprecated in LLVM 11+ #5984

Merged
merged 1 commit into from Jul 3, 2020
Merged

[LLVM] VectorType::get with two parameters is deprecated in LLVM 11+ #5984

merged 1 commit into from Jul 3, 2020

Conversation

kparzysz-quic
Copy link
Contributor

In LLVM 11+ the distinction between fixed and scalable vector types has become more explicit. Before the introduction of scalable vector types VectorType::get(e,n) created what is now a fixed vector type. With the addition of scalable types, it is recommended to use FixedVectorType and ScalableVectorType classes directly. Alternatively, there is a VectorType::get that accepts a 3rd parameter indicating whether the type should be fixed or scalable.
Using the older VectorType::get that implicitly assumes the fixed type is deprecated and LLVM now generates a warning.

Change calls to VectorType::get to FixedVectorType::get to avoid compilation warnings.

In LLVM 11+ the distinction between fixed and scalable vector types
has become more explicit. Before the introduction of scalable vector
types VectorType::get(e,n) created what is now a fixed vector type.
With the addition of scalable types, it is recommended to use
FixedVectorType and ScalableVectorType classes directly. Alternatively,
there is a VectorType::get that accepts a 3rd parameter indicating
whether the type should be fixed or scalable.
Using the older VectorType::get that implicitly assumes the fixed type
is deprecated and LLVM now generates a warning.

Change calls to VectorType::get to FixedVectorType::get to avoid
compilation warnings.
@tqchen tqchen merged commit 5248c14 into apache:master Jul 3, 2020
@tqchen
Copy link
Member

tqchen commented Jul 3, 2020

Thanks @kparzysz-quic @junrushao1994 !

@kparzysz-quic kparzysz-quic deleted the fixed-vector branch July 3, 2020 00:31
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jul 14, 2020
…pache#5984)

In LLVM 11+ the distinction between fixed and scalable vector types
has become more explicit. Before the introduction of scalable vector
types VectorType::get(e,n) created what is now a fixed vector type.
With the addition of scalable types, it is recommended to use
FixedVectorType and ScalableVectorType classes directly. Alternatively,
there is a VectorType::get that accepts a 3rd parameter indicating
whether the type should be fixed or scalable.
Using the older VectorType::get that implicitly assumes the fixed type
is deprecated and LLVM now generates a warning.

Change calls to VectorType::get to FixedVectorType::get to avoid
compilation warnings.
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jul 14, 2020
…pache#5984)

In LLVM 11+ the distinction between fixed and scalable vector types
has become more explicit. Before the introduction of scalable vector
types VectorType::get(e,n) created what is now a fixed vector type.
With the addition of scalable types, it is recommended to use
FixedVectorType and ScalableVectorType classes directly. Alternatively,
there is a VectorType::get that accepts a 3rd parameter indicating
whether the type should be fixed or scalable.
Using the older VectorType::get that implicitly assumes the fixed type
is deprecated and LLVM now generates a warning.

Change calls to VectorType::get to FixedVectorType::get to avoid
compilation warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants